Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1377878
| From | Tiffany Lin <tiffany.lin@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/7] [media]: v4l: add Mediatek MT21 video block format |
| Date | 2016-04-13 14:10 +0200 |
| Message-ID | <rnrMm-116-5@gated-at.bofh.it> (permalink) |
| References | <rnrMm-116-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Daniel Kurtz <djkurtz@chromium.org>
Mediatek video format is YVU8_420_2PLANE_PACK8_PROGRESSIVE.
Create V4L2_PIX_FMT_MT21 and DRM_FORMAT_MT21 to be consistent with
V4L2_PIX_FMT_NV12 notation.
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
---
include/uapi/drm/drm_fourcc.h | 1 +
include/uapi/linux/videodev2.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 0b69a77..a193905 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -116,6 +116,7 @@
#define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4') /* non-subsampled Cr:Cb plane */
#define DRM_FORMAT_NV42 fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */
+#define DRM_FORMAT_MT21 fourcc_code('M', 'T', '2', '1') /* Mediatek Block Mode */
/*
* 3 plane YCbCr
* index 0: Y plane, [7:0] Y
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index d0acd26..e9e3276 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -527,6 +527,8 @@ struct v4l2_pix_format {
#define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2') /* 8 YUV 4:2:0 16x16 macroblocks */
#define V4L2_PIX_FMT_M420 v4l2_fourcc('M', '4', '2', '0') /* 12 YUV 4:2:0 2 lines y, 1 line uv interleaved */
+#define V4L2_PIX_FMT_MT21 v4l2_fourcc('M', 'T', '2', '1') /* Mediatek Block Mode */
+
/* 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 */
--
1.7.9.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/7] Add MT8173 Video Decoder Driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-04-13 14:10 +0200
[PATCH 5/7] [media] vcodec: mediatek: Add Mediatek VP8 Video Decoder Driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-04-13 14:10 +0200
[PATCH 2/7] dt-bindings: Add a binding for Mediatek Video Decoder Tiffany Lin <tiffany.lin@mediatek.com> - 2016-04-13 14:10 +0200
[PATCH 4/7] [media] vcodec: mediatek: Add Mediatek H264 Video Decoder Driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-04-13 14:10 +0200
Re: [PATCH 2/7] dt-bindings: Add a binding for Mediatek Video Decoder Rob Herring <robh@kernel.org> - 2016-04-14 18:20 +0200
[PATCH 1/7] [media]: v4l: add Mediatek MT21 video block format Tiffany Lin <tiffany.lin@mediatek.com> - 2016-04-13 14:10 +0200
Re: [PATCH 1/7] [media]: v4l: add Mediatek MT21 video block format Nicolas Dufresne <nicolas.dufresne@gmail.com> - 2016-04-13 16:30 +0200
Re: [PATCH 1/7] [media]: v4l: add Mediatek MT21 video block format tiffany lin <tiffany.lin@mediatek.com> - 2016-04-14 08:20 +0200
csiph-web