Frank Barchard 20bf569a04 Fix ConvertToI420() for odd crop_y
The original src_u calculation of FOURCC_I420 shifted half width if
crop_y is odd.
This CL fixs the problem and also add a test case for it.

Bug: b:115278653
Test: pass libyuv_unittest
Change-Id: Ia9732d22e64e13de26df47726ba44ad1c5a06484
Reviewed-on: https://chromium-review.googlesource.com/c/1258743
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
2018-10-03 19:14:01 +00:00
..
compare_common.cc add const to casts 2018-04-13 22:52:52 +00:00
compare_gcc.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00
compare_mmi.cc MMI ifdef guards and add source to various build files. 2018-08-03 18:37:23 +00:00
compare_msa.cc use unix line endings 2018-06-20 23:19:59 +00:00
compare_neon64.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00
compare_neon.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00
compare_win.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00
compare.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
convert_argb.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
convert_from_argb.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
convert_from.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
convert_jpeg.cc clang-tidy fix for MJPEGToI420 and MJPEGToARGB 2018-02-27 08:37:55 +00:00
convert_to_argb.cc Add H420 and H422 to ConvertToARGB() 2018-06-26 22:52:42 +00:00
convert_to_i420.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
convert.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
cpu_id.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
mjpeg_decoder.cc 10 bit YUV to 10 bit BGR 2018-02-15 22:44:36 +00:00
mjpeg_validate.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
planar_functions.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
rotate_any.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
rotate_argb.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
rotate_common.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate_gcc.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate_mmi.cc MMI ifdef guards and add source to various build files. 2018-08-03 18:37:23 +00:00
rotate_msa.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate_neon64.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate_neon.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate_win.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
row_any.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
row_common.cc use attribute to alias for punning float to int 2018-04-13 19:20:52 +00:00
row_gcc.cc Disable AVX512 for iOS simulator xcode 9 builds. 2018-04-03 18:45:14 +00:00
row_mmi.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
row_msa.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
row_neon64.cc ByteToFloatRow_NEON to convert and scale bytes to floats 2018-02-24 00:34:07 +00:00
row_neon.cc Pass float parameters via vector 2 float and "w" for scalar multiply. 2018-03-28 21:52:08 +00:00
row_win.cc tidy applied with readability-inconsistent-declaration-parameter-name 2018-02-07 00:24:25 +00:00
scale_any.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
scale_argb.cc Restore the file mode for source files 2018-08-06 18:53:32 +00:00
scale_common.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
scale_gcc.cc I420ToYUY2_AVX2 port 2018-02-01 00:33:25 +00:00
scale_mmi.cc libyuv:loongson Correct the optimization of mmi on loongson3a platform. 2018-08-11 09:27:20 +00:00
scale_msa.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
scale_neon64.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00
scale_neon.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
scale_win.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
scale.cc Fix ConvertToI420() for odd crop_y 2018-10-03 19:14:01 +00:00
video_common.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00