video: driver: add frame_skip mode control setting for heic

Added V4L2_CID_MPEG_VIDEO_FRAME_SKIP_MODE support for
heic codec type.

Change-Id: I4eaca697729c45ebf72067a9d34a7dc8d607f0fa
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal
2021-05-07 14:19:45 +05:30
parent cfd1584e2a
commit 0995dfc215
2 changed files with 9 additions and 1 deletions

View File

@@ -4756,6 +4756,14 @@ static bool msm_vidc_allow_image_encode_session(struct msm_vidc_inst *inst)
goto exit;
}
/* is frame skip mode disabled */
allow = !capability->cap[FRAME_SKIP_MODE].value;
if (!allow) {
i_vpr_e(inst, "%s: frame skip mode not disabled: %#x\n", __func__,
capability->cap[FRAME_SKIP_MODE].value);
goto exit;
}
/* is profile type Still Pic */
if (is_10bit_colorformat(pix_fmt))
allow = profile == V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE;