msm: vidc: Add support for decoder downscaling
Venus FW supports downscaling for decoder. Venus
FW sends the supported downscaled ratios. Driver
needs to make sure that the scaling is inside the
supported range. This change adds support for decoder
downscaling.
Change-Id: I919e563a6ba64751b3355658bcdbcec9d9ef17eb
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index db508fe..560accb 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -1897,6 +1897,12 @@
V4L2_CID_MPEG_VIDC_VIDEO_DEINTERLACE_DISABLED = 0,
V4L2_CID_MPEG_VIDC_VIDEO_DEINTERLACE_ENABLED = 1
};
+#define V4L2_CID_MPEG_VIDC_VIDEO_STREAM_OUTPUT_MODE \
+ (V4L2_CID_MPEG_MSM_VIDC_BASE + 35)
+enum v4l2_mpeg_vidc_video_decoder_multi_stream {
+ V4L2_CID_MPEG_VIDC_VIDEO_STREAM_OUTPUT_PRIMARY = 0,
+ V4L2_CID_MPEG_VIDC_VIDEO_STREAM_OUTPUT_SECONDARY = 1,
+};
/* Camera class control IDs */
#define V4L2_CID_CAMERA_CLASS_BASE (V4L2_CTRL_CLASS_CAMERA | 0x900)