mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-10-28 18:07:12 +08:00
Add matrix and BT.601 wrappers that convert ARGB to 16-bit biplanar YUV in P010 (4:2:0), P210 (4:2:2), and P410 (4:4:4) layouts. Reuse optimized ARGB matrix row functions for 8-bit Y and chroma, merge UV with MergeUVRow, then expand with Convert8To16Row (bits=10) and MultiplyRow_16 (scale=64) so 10-bit samples are stored in the high bits of each uint16. Reject width > INT_MAX / 2 so UV width (halfwidth * 2 or width * 2) does not overflow Convert8To16Row. Bug: 537818862 Change-Id: I7a776fb3d6f52ce46a0f6825903bfdb9c6dcfbe2 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8314189 Reviewed-by: richard winterton <rrwinterton@gmail.com> Reviewed-by: Frank Barchard <fbarchard@google.com> |
||
|---|---|---|
| .. | ||
| libyuv | ||
| libyuv.h | ||