summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorUmesh Pandey <umeshp@codeaurora.org>2016-08-30 18:16:51 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-30 16:27:31 -0700
commit571faa4a2ce5bb1643a4d9ca9905e701eb811718 (patch)
tree7f9f6bc6f7c1b3983d4f3e5f60b08434357ec188 /drivers/media
parent46692be6dd06ce405cb09cf8338b1f0edbbfb295 (diff)
msm: vidc: Add support for TP10 color format
Support for TP10 color format on the capture port for HDR video playback. CRs-Fixed: 1067229 Change-Id: I96317fc58f1610e87180ef970104b0a3a4080595 Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/msm/vidc/msm_vdec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/platform/msm/vidc/msm_vdec.c b/drivers/media/platform/msm/vidc/msm_vdec.c
index fdf6e1b1c5d0..d9f47978a081 100644
--- a/drivers/media/platform/msm/vidc/msm_vdec.c
+++ b/drivers/media/platform/msm/vidc/msm_vdec.c
@@ -626,6 +626,11 @@ static u32 get_frame_size_compressed(int plane,
return (max_mbs_per_frame * size_per_mb * 3/2)/2;
}
+static u32 get_frame_size_nv12_ubwc_10bit(int plane, u32 height, u32 width)
+{
+ return VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height);
+}
+
static u32 get_frame_size(struct msm_vidc_inst *inst,
const struct msm_vidc_format *fmt,
int fmt_type, int plane)
@@ -712,6 +717,14 @@ struct msm_vidc_format vdec_formats[] = {
.type = CAPTURE_PORT,
},
{
+ .name = "UBWC YCbCr Semiplanar 4:2:0 10bit",
+ .description = "UBWC Y/CbCr 4:2:0 10bit",
+ .fourcc = V4L2_PIX_FMT_NV12_TP10_UBWC,
+ .num_planes = 2,
+ .get_frame_size = get_frame_size_nv12_ubwc_10bit,
+ .type = CAPTURE_PORT,
+ },
+ {
.name = "Mpeg4",
.description = "Mpeg4 compressed format",
.fourcc = V4L2_PIX_FMT_MPEG4,