diff options
author | wm4 <wm4@nowhere> | 2020-05-22 02:25:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-22 02:26:05 +0200 |
commit | 320fa3bbe73c57e2ba5633a865b6997c1901b4b2 (patch) | |
tree | eae36c9893283fc5a2b74790037bfea432c22557 /test/repack.c | |
parent | 756ae0321bfcab058affa34922d5f759a1947a80 (diff) | |
download | mpv-320fa3bbe73c57e2ba5633a865b6997c1901b4b2.tar.bz2 mpv-320fa3bbe73c57e2ba5633a865b6997c1901b4b2.tar.xz |
video: add AV_PIX_FMT_UYYVYY411 conversion support
It may be completely useless, and I can't verify it as no known samples
or other known/accessible software using it, but why not?
Putting this together with he 422 code requires making it slightly more
generic. I'm still staying with a "huge" if tree instead of a table to
select the scanline worker callback, because it's actually small and not
huge (although it not being generic still feels slightly painful).
Diffstat (limited to 'test/repack.c')
-rw-r--r-- | test/repack.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/repack.c b/test/repack.c index 00ff0cdc8b..f4b5c9c12a 100644 --- a/test/repack.c +++ b/test/repack.c @@ -141,8 +141,8 @@ static const struct entry repack_tests[] = { -AV_PIX_FMT_YUVA444P16, {P16(2), P16(3), P16(4), P16(1)}}, {1, 1, -AV_PIX_FMT_AYUV64BE, {P16(0x0100, 0x0200, 0x0300, 0x0400)}, -AV_PIX_FMT_YUVA444P16, {P16(2), P16(3), P16(4), P16(1)}}, - {2, 1, -AV_PIX_FMT_YUYV422, {P8(1, 2, 3, 4)}, - -AV_PIX_FMT_YUV422P, {P8(1, 3), P8(2), P8(4)}}, + {4, 1, -AV_PIX_FMT_YUYV422, {P8(1, 2, 3, 4, 5, 6, 7, 8)}, + -AV_PIX_FMT_YUV422P, {P8(1, 3, 5, 7), P8(2, 6), P8(4, 8)}}, {2, 1, -AV_PIX_FMT_YVYU422, {P8(1, 2, 3, 4)}, -AV_PIX_FMT_YUV422P, {P8(1, 3), P8(4), P8(2)}}, {2, 1, -AV_PIX_FMT_UYVY422, {P8(1, 2, 3, 4)}, @@ -159,6 +159,9 @@ static const struct entry repack_tests[] = { P16(0x4a4b)}, -AV_PIX_FMT_YUV422P16, {P16(0x1b1a, 0x2b2a), P16(0x3b3a), P16(0x4b4a)}}, + {8, 1, -AV_PIX_FMT_UYYVYY411, {P8(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)}, + -AV_PIX_FMT_YUV411P, {P8(2, 3, 5, 6, 8, 9, 11, 12), + P8(1, 7), P8(4, 10)}}, }; static bool is_true_planar(int imgfmt) |