Merge "video: driver: add frame_skip mode control setting for heic"

This commit is contained in:
qctecmdr
2021-05-10 18:11:09 -07:00
committed by Gerrit - the friendly Code Review server
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;