[vlc-commits] fourcc: add NV24 semiplanar Y/UV 4:4:4 (partial)
Rémi Denis-Courmont
git at videolan.org
Tue Jul 16 21:10:28 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 16 22:01:06 2013 +0300| [aa2d895d263d5e230d1504e1db5b43abc3896d16] | committer: Rémi Denis-Courmont
fourcc: add NV24 semiplanar Y/UV 4:4:4 (partial)
It seems impossible to describe this chroma with
vlc_chroma_description_t. Thus picture allocation will fail.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa2d895d263d5e230d1504e1db5b43abc3896d16
---
include/vlc_fourcc.h | 4 ++++
src/misc/fourcc.c | 8 ++++++++
2 files changed, 12 insertions(+)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 9c5fccb..47f47cd 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -231,6 +231,10 @@
#define VLC_CODEC_NV16 VLC_FOURCC('N','V','1','6')
/* 2 planes Y/VU 4:2:2 */
#define VLC_CODEC_NV61 VLC_FOURCC('N','V','6','1')
+/* 2 planes Y/UV 4:4:4 */
+#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')
/* VDPAU video surface YCbCr 4:2:0 */
#define VLC_CODEC_VDPAU_VIDEO_420 VLC_FOURCC('V','D','V','0')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index a533471..9cd13f5 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -824,6 +824,10 @@ static const staticentry_t p_list_video[] = {
A("NV16"),
B(VLC_CODEC_NV61, "Biplanar 4:2:2 Y/VU"),
A("NV61"),
+ B(VLC_CODEC_NV24, "Biplanar 4:4:4 Y/UV"),
+ A("NV24"),
+ B(VLC_CODEC_NV42, "Biplanar 4:4:4 Y/VU"),
+ A("NV42"),
B(VLC_CODEC_I420_9L, "Planar 4:2:0 YUV 9-bit LE"),
A("I09L"),
@@ -1618,6 +1622,9 @@ const char *vlc_fourcc_GetDescription( int i_cat, vlc_fourcc_t i_fourcc )
#define VLC_CODEC_YUV_PLANAR_444 \
VLC_CODEC_I444, VLC_CODEC_J444
+#define VLC_CODEC_YUV_SEMIPLANAR_444 \
+ VLC_CODEC_NV24, VLC_CODEC_NV42
+
#define VLC_CODEC_YUV_PLANAR_444_16 \
VLC_CODEC_I444_10L, VLC_CODEC_I444_10B, VLC_CODEC_I444_9L, VLC_CODEC_I444_9B
@@ -1792,6 +1799,7 @@ static const vlc_fourcc_t p_list_YUV[] = {
VLC_CODEC_YUV_SEMIPLANAR_422,
VLC_CODEC_YUV_PLANAR_440,
VLC_CODEC_YUV_PLANAR_444,
+ VLC_CODEC_YUV_SEMIPLANAR_444,
VLC_CODEC_YUV_PACKED,
VLC_CODEC_I411, VLC_CODEC_YUV_PLANAR_410, VLC_CODEC_Y211,
VLC_CODEC_YUV_PLANAR_420_16,
More information about the vlc-commits
mailing list