summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2008-12-18 15:45:00 +0100
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2008-12-18 15:45:00 +0100
commitb5f1adc8eee3163e1b6742c0e1f0c611a084193e (patch)
treecedbbaca2a098af8709bd3bc4d350cfc43e4254b /linux/include
parent739b7bf4583076c2429200ccc83736bfe05a0ec9 (diff)
downloadmediapointer-dvb-s2-b5f1adc8eee3163e1b6742c0e1f0c611a084193e.tar.gz
mediapointer-dvb-s2-b5f1adc8eee3163e1b6742c0e1f0c611a084193e.tar.bz2
video: add NV16 and NV61 pixel formats
From: Magnus Damm <damm@igel.co.jp> This patch adds support for NV16 and NV61 pixel formats. These pixel formats use two planes; one for 8-bit Y values and one for interleaved 8-bit U and V values. NV16/NV61 formats are very similar to NV12/NV21 with the exception that NV16/NV61 are using the same number of lines for both planes. The difference between NV16 and NV61 is the U and V byte order. The fourcc values are extrapolated from the NV12/NV21 case. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- include/linux/videodev2.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/linux/videodev2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h
index 018894814..0aae06946 100644
--- a/linux/include/linux/videodev2.h
+++ b/linux/include/linux/videodev2.h
@@ -305,6 +305,8 @@ struct v4l2_pix_format {
/* two planes -- one Y, one Cr + Cb interleaved */
#define V4L2_PIX_FMT_NV12 v4l2_fourcc('N', 'V', '1', '2') /* 12 Y/CbCr 4:2:0 */
#define V4L2_PIX_FMT_NV21 v4l2_fourcc('N', 'V', '2', '1') /* 12 Y/CrCb 4:2:0 */
+#define V4L2_PIX_FMT_NV16 v4l2_fourcc('N', 'V', '1', '6') /* 16 Y/CbCr 4:2:2 */
+#define V4L2_PIX_FMT_NV61 v4l2_fourcc('N', 'V', '6', '1') /* 16 Y/CrCb 4:2:2 */
/* The following formats are not defined in the V4L2 specification */
#define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y', 'U', 'V', '9') /* 9 YUV 4:1:0 */