Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478000
| From | Tiffany Lin <tiffany.lin@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/4] vcodec: mediatek: Add V4L2_PIX_FMT_MT21C support for v4l2 decoder |
| Date | 2016-09-07 09:00 +0200 |
| Message-ID | <seEZX-4FR-3@gated-at.bofh.it> (permalink) |
| References | <seEZX-4FR-1@gated-at.bofh.it> <seEZX-4FR-5@gated-at.bofh.it> <seEZX-4FR-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add V4L2_PIX_FMT_MT21C support
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
---
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
index 28a8453..fd3befc 100644
--- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
+++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
@@ -25,7 +25,7 @@
#include "mtk_vcodec_dec_pm.h"
#define OUT_FMT_IDX 0
-#define CAP_FMT_IDX 0
+#define CAP_FMT_IDX 3
#define MTK_VDEC_MIN_W 64U
#define MTK_VDEC_MIN_H 64U
@@ -48,6 +48,11 @@ static struct mtk_video_fmt mtk_video_formats[] = {
.type = MTK_FMT_DEC,
.num_planes = 1,
},
+ {
+ .fourcc = V4L2_PIX_FMT_MT21C,
+ .type = MTK_FMT_FRAME,
+ .num_planes = 2,
+ },
};
static const struct mtk_codec_framesizes mtk_vdec_framesizes[] = {
--
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