libyuv/unit_test
Frank Barchard 32ccd53bb3 Add P010ToNV12 to convert 10 bit biplanar to 8 bit biplanar
- P010 and NV12 have the same layout: Full size Y plane and half size UV plane.
  P010 and NV12 are 4:2:0 subsampling
- P010 uses upper 10 bits of 16 bit elements
- NV12 uses 8 bit elements
- The Convert16To8 used internally will discard the low 2 bits.
- UV order is the same - U first in memory, followed by V, interleaved
- UV plane is be rounded up in size to allow odd size Y to have UV values
- Similar code could be used to convert P210ToNV16, P410ToNV24, with the size
  of the UV plane affected by subsampling 4:2:2 and 4:4:4 variants.

Bug: b/357439226
Change-Id: I5d6ec84d97d0e0cc4008eeb18a929ea28570d6d9
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5761958
Reviewed-by: Wan-Teh Chang <wtc@google.com>
2024-08-05 18:55:44 +00:00
..
testdata [AArch64] getauxval(AT_HWCAP{,2}) feature detection, attempt #2 2024-04-25 21:26:31 +00:00
basictypes_test.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
color_test.cc YUY2ToNV12 using YUY2ToY and YUY2ToNVUV 2022-09-30 22:41:21 +00:00
compare_test.cc fix compare row test for avx2 which does 64 bytes per loop 2021-04-06 22:37:25 +00:00
convert_argb_test.cc Remove unneeded #ifdef HAVE_JPEG code 2024-05-09 23:02:18 +00:00
convert_test.cc Add P010ToNV12 to convert 10 bit biplanar to 8 bit biplanar 2024-08-05 18:55:44 +00:00
cpu_test.cc Fix -Wundef warnings 2024-08-02 17:39:59 +00:00
cpu_thread_test.cc clamp C functions use compare 2020-07-16 22:03:34 +00:00
math_test.cc Disable tests via macro that refer to row.h 2019-08-20 18:44:36 +00:00
planar_test.cc RVV remove unused variables 2024-06-17 20:25:31 +00:00
rotate_argb_test.cc Add 10 bit rotate methods. 2023-01-04 21:10:01 +00:00
rotate_test.cc Transpose 4x4 for SSE2 and AVX2 2023-03-03 17:46:23 +00:00
scale_argb_test.cc Enable 256x144 scale tests for libyuv 2022-07-13 11:08:29 +00:00
scale_plane_test.cc Split scale_test and scale_plane_test to allow building on small devices 2023-12-09 18:39:41 +00:00
scale_rgb_test.cc Enable 256x144 scale tests for libyuv 2022-07-13 11:08:29 +00:00
scale_test.cc Split scale_test and scale_plane_test to allow building on small devices 2023-12-09 18:39:41 +00:00
scale_uv_test.cc cpuid for arm/mips/riscv initialize buffer 2023-04-27 22:46:27 +00:00
unit_test.cc [AArch64] Add missing feature disable flags to unit_test.cc 2024-07-16 17:27:13 +00:00
unit_test.h I422Rotate take stride for temporary buffers 2023-01-04 23:11:52 +00:00
video_common_test.cc Add support for AR64 format 2021-03-13 20:55:21 +00:00