vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Sun Jun 26 23:25:10 2016 +0200| [ee47d094d1f4b7f904d0ea37bf3921ce7901677f] | committer: Jean-Baptiste Kempf
Basic support for P010 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee47d094d1f4b7f904d0ea37bf3921ce7901677f --- include/vlc_fourcc.h | 2 ++ src/misc/es_format.c | 3 +++ src/misc/fourcc.c | 1 + 3 files changed, 6 insertions(+) diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h index 3e6f67f..c11ba36 100644 --- a/include/vlc_fourcc.h +++ b/include/vlc_fourcc.h @@ -263,6 +263,8 @@ #define VLC_CODEC_NV24 VLC_FOURCC('N','V','2','4') /* 2 planes Y/VU 4:4:4 */ #define VLC_CODEC_NV42 VLC_FOURCC('N','V','4','2') +/* 2 planes Y/UV 4:2:0 10-bit */ +#define VLC_CODEC_P010 VLC_FOURCC('P','0','1','0') /* Packed YUV */ diff --git a/src/misc/es_format.c b/src/misc/es_format.c index b4090e9..d646e78 100644 --- a/src/misc/es_format.c +++ b/src/misc/es_format.c @@ -172,6 +172,9 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma, case VLC_CODEC_J440: p_fmt->i_bits_per_pixel = 16; break; + case VLC_CODEC_P010: + p_fmt->i_bits_per_pixel = 15; + break; case VLC_CODEC_I411: case VLC_CODEC_YV12: case VLC_CODEC_I420: diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c index 51c36a1..c5db59a 100644 --- a/src/misc/fourcc.c +++ b/src/misc/fourcc.c @@ -610,6 +610,7 @@ static const struct VLC_CODEC_I444_16B }, PLANAR_16(3, 1, 1, 16) }, { { VLC_CODEC_YUVA_444_10L, VLC_CODEC_YUVA_444_10B }, PLANAR_16(4, 1, 1, 10) }, + { { VLC_CODEC_P010 }, PLANAR_16(2, 1, 2, 10) }, { { VLC_CODEC_YUV_PACKED }, PACKED_FMT(2, 16) }, { { VLC_CODEC_RGB8, VLC_CODEC_GREY, _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
