@@ -1351,19 +1351,19 @@ void convert_yuv_to_planarrgb_avx2(BYTE* (&dstp)[3], int(&dstPitch)[3], const BY
13511351 // limited/full is handled automatically through scaling and offsets
13521352 // lessthan16bit_target is still important due to clamping
13531353 if (bits_per_pixel_target == 8 ) {
1354- convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, false /* lessthan16bit for input is n/a in forced float mode */ , true , uint8_t , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
1354+ convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, lessthan16bit, true , uint8_t , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
13551355 }
13561356 else if (bits_per_pixel_target < 16 ) {
13571357 // lessthan16bit_target is false. Need signed pack and clamping
1358- convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, false /* lessthan16bit for input is n/a in forced float mode */ , true , uint16_t , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
1358+ convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, lessthan16bit, true , uint16_t , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
13591359 }
13601360 else if (bits_per_pixel_target == 16 ) { // == 16
1361- convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, false /* lessthan16bit for input is n/a in forced float mode */ , false , uint16_t , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
1361+ convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, lessthan16bit, false , uint16_t , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
13621362 }
13631363 else { // 32 bit float target
13641364 // limited/full is handled automatically through scaling and offsets
13651365 // lessthan16bit_target doesn't matter since float output has no clamping
1366- convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, false /* lessthan16bit for input is n/a in forced float mode */ , false , float , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
1366+ convert_yuv_to_planarrgb_avx2_internal<direction, pixel_t_src, lessthan16bit, false , float , YuvRgbConversionType::FORCE_FLOAT >(dstp, dstPitch, srcp, srcPitch, width, height, m, bits_per_pixel, bits_per_pixel_target);
13671367 }
13681368 return ;
13691369 }
0 commit comments