linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tiffany.lin@mediatek.com (Tiffany Lin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/9] v4l: add Mediatek compressed video block format
Date: Wed, 10 Aug 2016 22:48:47 +0800	[thread overview]
Message-ID: <1470840534-4788-3-git-send-email-tiffany.lin@mediatek.com> (raw)
In-Reply-To: <1470840534-4788-2-git-send-email-tiffany.lin@mediatek.com>

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 51a0fa1..d4ee0b8 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -1282,6 +1282,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 724f43e..36210db 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -627,6 +627,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

  reply	other threads:[~2016-08-10 14:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-10 14:48 [PATCH v4 0/9] Add MT8173 Video Decoder Driver Tiffany Lin
2016-08-10 14:48 ` [PATCH v4 1/9] VPU: mediatek: Add decode support Tiffany Lin
2016-08-10 14:48   ` Tiffany Lin [this message]
2016-08-10 14:48     ` [PATCH v4 3/9] docs-rst: Add compressed video formats used on MT8173 codec driver Tiffany Lin
2016-08-10 14:48       ` [PATCH v4 4/9] dt-bindings: Add a binding for Mediatek Video Decoder Tiffany Lin
2016-08-10 14:48         ` [PATCH v4 5/9] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver Tiffany Lin
2016-08-10 14:48           ` [PATCH v4 6/9] vcodec: mediatek: Add Mediatek H264 " Tiffany Lin
2016-08-10 14:48             ` [PATCH v4 7/9] vcodec: mediatek: Add Mediatek VP8 " Tiffany Lin
2016-08-10 14:48               ` [PATCH v4 8/9] vcodec: mediatek: Add Mediatek VP9 " Tiffany Lin
2016-08-10 14:48                 ` [PATCH v4 9/9] arm64: dts: mediatek: Add Video Decoder for MT8173 Tiffany Lin
2016-08-11 15:44                   ` Matthias Brugger
2016-08-12  9:21                     ` Tiffany Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470840534-4788-3-git-send-email-tiffany.lin@mediatek.com \
    --to=tiffany.lin@mediatek.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).