msm: vidc: support 2-bit ROI map type

Add controls to query supported ROI map type,
2-bit or 2-byte.
Add payload structure for 2-bit ROI map.

Change-Id: I18c5a00d65e9ccebb821e8e87b777a1897f14921
Signed-off-by: Qiwei Liu <qiweil@codeaurora.org>
This commit is contained in:
Qiwei Liu
2019-10-15 10:19:15 +08:00
committed by Gerrit - the friendly Code Review server
parent 757c4610d1
commit 268299cd8f
2 changed files with 16 additions and 0 deletions

View File

@@ -994,6 +994,14 @@ enum v4l2_mpeg_vidc_video_hevc_max_hier_coding_layer {
#define V4L2_CID_MPEG_VIDC_CVP_FRAME_RATE \
(V4L2_CID_MPEG_MSM_VIDC_BASE + 126)
#define V4L2_CID_MPEG_VIDC_VIDEO_ROI_TYPE \
(V4L2_CID_MPEG_MSM_VIDC_BASE + 127)
enum v4l2_mpeg_vidc_video_roi_type {
V4L2_CID_MPEG_VIDC_VIDEO_ROI_TYPE_NONE = 0,
V4L2_CID_MPEG_VIDC_VIDEO_ROI_TYPE_2BIT = 1,
V4L2_CID_MPEG_VIDC_VIDEO_ROI_TYPE_2BYTE = 2,
};
/* Camera class control IDs */
#define V4L2_CID_CAMERA_CLASS_BASE (V4L2_CTRL_CLASS_CAMERA | 0x900)

View File

@@ -155,6 +155,14 @@ struct msm_vidc_s3d_frame_packing_payload {
__u32 fpa_extension_flag;
};
struct msm_vidc_roi_qp_payload {
__s32 upper_qp_offset;
__s32 lower_qp_offset;
__u32 b_roi_info;
__u32 mbi_info_size;
__u32 data[1];
};
#define MSM_VIDC_EXTRADATA_ROI_QP 0x00000013
struct msm_vidc_roi_deltaqp_payload {
__u32 b_roi_info; /*Enable/Disable*/