Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1549038

[PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel formats

From Randy Li <ayaka@soulik.info>
Newsgroups linux.kernel
Subject [PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel formats
Date 2017-01-02 10:00 +0100
Message-ID <sV6Df-4iu-21@gated-at.bofh.it> (permalink)
References <sV6Df-4iu-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The formats added by this patch are:
	V4L2_PIX_FMT_P010
	V4L2_PIX_FMT_P010M
Currently, none of driver uses those format, but some video device
has been confirmed with could as those format for video output.
The Rockchip's new decoder has supported those format for profile_10
HEVC/AVC video.

Signed-off-by: Randy Li <ayaka@soulik.info>
---
 include/uapi/linux/videodev2.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 46e8a2e3..9e03f20 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -551,6 +551,7 @@ struct v4l2_pix_format {
 #define V4L2_PIX_FMT_NV61    v4l2_fourcc('N', 'V', '6', '1') /* 16  Y/CrCb 4:2:2  */
 #define V4L2_PIX_FMT_NV24    v4l2_fourcc('N', 'V', '2', '4') /* 24  Y/CbCr 4:4:4  */
 #define V4L2_PIX_FMT_NV42    v4l2_fourcc('N', 'V', '4', '2') /* 24  Y/CrCb 4:4:4  */
+#define V4L2_PIX_FMT_P010    v4l2_fourcc('P', '0', '1', '0') /* 15  Y/CbCr 4:2:0, 10 bits per channel */
 
 /* two non contiguous planes - one Y, one Cr + Cb interleaved  */
 #define V4L2_PIX_FMT_NV12M   v4l2_fourcc('N', 'M', '1', '2') /* 12  Y/CbCr 4:2:0  */
@@ -559,6 +560,7 @@ struct v4l2_pix_format {
 #define V4L2_PIX_FMT_NV61M   v4l2_fourcc('N', 'M', '6', '1') /* 16  Y/CrCb 4:2:2  */
 #define V4L2_PIX_FMT_NV12MT  v4l2_fourcc('T', 'M', '1', '2') /* 12  Y/CbCr 4:2:0 64x32 macroblocks */
 #define V4L2_PIX_FMT_NV12MT_16X16 v4l2_fourcc('V', 'M', '1', '2') /* 12  Y/CbCr 4:2:0 16x16 macroblocks */
+#define V4L2_PIX_FMT_P010M   v4l2_fourcc('P', 'M', '1', '0') /* 15  Y/CbCr 4:2:0, 10 bits per channel */
 
 /* three planes - Y Cb, Cr */
 #define V4L2_PIX_FMT_YUV410  v4l2_fourcc('Y', 'U', 'V', '9') /*  9  YUV 4:1:0     */
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel formats Randy Li <ayaka@soulik.info> - 2017-01-02 10:00 +0100
  Re: [PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel  formats Sakari Ailus <sakari.ailus@iki.fi> - 2017-01-02 10:20 +0100
    Re: [PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel  formats ayaka <ayaka@soulik.info> - 2017-01-02 12:00 +0100
      Re: [PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel  formats Sakari Ailus <sakari.ailus@iki.fi> - 2017-01-02 12:10 +0100
        Re: [PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel  formats ayaka <ayaka@soulik.info> - 2017-01-02 14:10 +0100
          Re: [PATCH 2/2] [media] v4l: Add 10-bits per channel YUV pixel formats Daniel Stone <daniel@fooishbar.org> - 2017-01-03 12:00 +0100

csiph-web