vlc | branch: master | Steve Lhomme <[email protected]> | Tue Oct 15 08:30:33 2019 +0200| [715654138b5a74a258e2e5beb120e33488536828] | committer: Steve Lhomme
fourcc: add Y210 chroma 32 bits packed 4:2:2 with 2 bits for the alpha > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=715654138b5a74a258e2e5beb120e33488536828 --- include/vlc_fourcc.h | 4 +++- src/misc/fourcc.c | 2 +- src/misc/fourcc_list.h | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h index 5bdf4ead11..ef5e31545a 100644 --- a/include/vlc_fourcc.h +++ b/include/vlc_fourcc.h @@ -308,10 +308,12 @@ #define VLC_CODEC_Y211 VLC_FOURCC('Y','2','1','1') /* Packed YUV 4:2:2, U:Y:V:Y, reverted */ #define VLC_CODEC_CYUV VLC_FOURCC('c','y','u','v') -/* 10-bit 4:2:2 Component YCbCr */ +/* Planar 10-bit 4:2:2 Component YCbCr */ #define VLC_CODEC_V210 VLC_FOURCC('v','2','1','0') /* I420 packed for RTP (RFC 4175) */ #define VLC_CODEC_R420 VLC_FOURCC('r','4','2','0') +/* 10-bit Packed YUV 4:2:2 V10:U10:Y10:A2 */ +#define VLC_CODEC_Y210 VLC_FOURCC('Y','2','1','0') /* Packed YUV 4:4:4 V:U:Y:A */ #define VLC_CODEC_VUYA VLC_FOURCC('V','U','Y','A') diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c index c29fb5deeb..8f7a130f54 100644 --- a/src/misc/fourcc.c +++ b/src/misc/fourcc.c @@ -800,7 +800,7 @@ static const struct { { VLC_CODEC_RGBA, VLC_CODEC_ARGB, VLC_CODEC_BGRA, VLC_CODEC_RGBA10 }, PACKED_FMT(4, 32) }, { { VLC_CODEC_RGBA64, 0 }, PACKED_FMT(8, 64) }, - { { VLC_CODEC_VUYA, 0 }, PACKED_FMT(4, 32) }, + { { VLC_CODEC_VUYA, VLC_CODEC_Y210, 0 }, PACKED_FMT(4, 32) }, { { VLC_CODEC_Y211, 0 }, { 1, { {{1,4}, {1,1}} }, 4, 32 } }, { { VLC_CODEC_XYZ12, 0 }, PACKED_FMT(6, 48) }, diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h index 1dff2af335..a8a97ce2b7 100644 --- a/src/misc/fourcc_list.h +++ b/src/misc/fourcc_list.h @@ -863,6 +863,8 @@ static const staticentry_t p_list_video[] = { B(VLC_CODEC_V210, "10-bit 4:2:2 Component YCbCr"), A("v210"), + B(VLC_CODEC_Y210, "Packed 10-bit YUV 4:2:2"), + A("Y210"), B(VLC_CODEC_VUYA, "Packed YUV 4:4:4, V:U:Y:A"), A("VUYA"), _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
