Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478006
| From | Tiffany Lin <tiffany.lin@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/4] v4l: add Mediatek compressed video block format |
| Date | 2016-09-07 09:00 +0200 |
| Message-ID | <seEZX-4FR-5@gated-at.bofh.it> (permalink) |
| References | <seEZX-4FR-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add V4L2_PIX_FMT_MT21C format used on MT8173 driver.
It is compressed format and need MT8173 MDP driver to transfer to other
standard format.
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
---
drivers/media/v4l2-core/v4l2-ioctl.c | 1 +
include/uapi/linux/videodev2.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
index 2bd1581..1d45c58 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -1288,6 +1288,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
case V4L2_PIX_FMT_JPGL: descr = "JPEG Lite"; break;
case V4L2_PIX_FMT_SE401: descr = "GSPCA SE401"; break;
case V4L2_PIX_FMT_S5C_UYVY_JPG: descr = "S5C73MX interleaved UYVY/JPEG"; break;
+ case V4L2_PIX_FMT_MT21C: descr = "Mediatek Compressed Format"; break;
default:
WARN(1, "Unknown pixelformat 0x%08x\n", fmt->pixelformat);
if (fmt->description[0])
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 43326c3..ddd0083 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -635,6 +635,7 @@ struct v4l2_pix_format {
#define V4L2_PIX_FMT_Y8I v4l2_fourcc('Y', '8', 'I', ' ') /* Greyscale 8-bit L/R interleaved */
#define V4L2_PIX_FMT_Y12I v4l2_fourcc('Y', '1', '2', 'I') /* Greyscale 12-bit L/R interleaved */
#define V4L2_PIX_FMT_Z16 v4l2_fourcc('Z', '1', '6', ' ') /* Depth data 16-bit */
+#define V4L2_PIX_FMT_MT21C v4l2_fourcc('M', 'T', '2', '1') /* Mediatek compressed block mode */
/* SDR formats - used only for Software Defined Radio devices */
#define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */
--
1.7.9.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] Add V4L2_PIX_FMT_MT21C format for MT8173 codec driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-07 09:00 +0200
[PATCH 3/4] vcodec: mediatek: Add V4L2_PIX_FMT_MT21C support for v4l2 decoder Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-07 09:00 +0200
[PATCH 4/4] arm64: dts: mediatek: Add Video Decoder for MT8173 Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-07 09:00 +0200
[PATCH 2/4] docs-rst: Add compressed video formats used on MT8173 codec driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-07 09:00 +0200
Re: [PATCH 2/4] docs-rst: Add compressed video formats used on MT8173 codec driver Hans Verkuil <hverkuil@xs4all.nl> - 2016-09-07 11:30 +0200
Re: [PATCH 2/4] docs-rst: Add compressed video formats used on MT8173 codec driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-08 08:50 +0200
[PATCH 1/4] v4l: add Mediatek compressed video block format Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-07 09:00 +0200
Re: [PATCH 0/4] Add V4L2_PIX_FMT_MT21C format for MT8173 codec driver Hans Verkuil <hverkuil@xs4all.nl> - 2016-09-08 09:30 +0200
Re: [PATCH 0/4] Add V4L2_PIX_FMT_MT21C format for MT8173 codec driver Tiffany Lin <tiffany.lin@mediatek.com> - 2016-09-08 11:20 +0200
Re: [PATCH 0/4] Add V4L2_PIX_FMT_MT21C format for MT8173 codec driver Hans Verkuil <hverkuil@xs4all.nl> - 2016-09-08 11:30 +0200
csiph-web