@@ -340,8 +340,8 @@ static void copy_convert_yv12_to_bgr(const VAImage& image, const unsigned char*
340
340
1 .5959997177f
341
341
};
342
342
343
- CV_CheckEQ (image.format .fourcc , VA_FOURCC_YV12, " Unexpected image format" );
344
- CV_CheckEQ (image.num_planes , 3 , " " );
343
+ CV_CheckEQ (( size_t ) image.format .fourcc , ( size_t ) VA_FOURCC_YV12, " Unexpected image format" );
344
+ CV_CheckEQ (( size_t ) image.num_planes , ( size_t ) 3 , " " );
345
345
346
346
const size_t srcOffsetY = image.offsets [0 ];
347
347
const size_t srcOffsetV = image.offsets [1 ];
@@ -417,8 +417,8 @@ static void copy_convert_bgr_to_yv12(const VAImage& image, const Mat& bgr, unsig
417
417
-0 .2909994125f , 0 .438999176f , -0 .3679990768f , -0 .0709991455f
418
418
};
419
419
420
- CV_CheckEQ (image.format .fourcc , VA_FOURCC_YV12, " Unexpected image format" );
421
- CV_CheckEQ (image.num_planes , 3 , " " );
420
+ CV_CheckEQ (( size_t ) image.format .fourcc , ( size_t ) VA_FOURCC_YV12, " Unexpected image format" );
421
+ CV_CheckEQ (( size_t ) image.num_planes , ( size_t ) 3 , " " );
422
422
423
423
const size_t dstOffsetY = image.offsets [0 ];
424
424
const size_t dstOffsetV = image.offsets [1 ];
0 commit comments