Merge "msm: venc: set auto frame rate only for VBR CFR native recorder"
This commit is contained in:
commit
c121e47aad
@ -2150,6 +2150,7 @@ int msm_venc_store_timestamp(struct msm_vidc_inst *inst, u64 timestamp_us)
|
||||
int count = 0;
|
||||
int rc = 0;
|
||||
struct v4l2_ctrl *superframe_ctrl = NULL;
|
||||
struct v4l2_ctrl *ctrl = NULL;
|
||||
|
||||
if (!inst || !inst->core) {
|
||||
d_vpr_e("%s: invalid parameters\n", __func__);
|
||||
@ -2160,6 +2161,12 @@ int msm_venc_store_timestamp(struct msm_vidc_inst *inst, u64 timestamp_us)
|
||||
is_image_session(inst))
|
||||
return rc;
|
||||
|
||||
/* set auto-framerate only for VBR CFR native recorder */
|
||||
ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VENC_NATIVE_RECORDER);
|
||||
if ((ctrl && ctrl->val == V4L2_MPEG_MSM_VIDC_DISABLE) ||
|
||||
(inst->rc_type != V4L2_MPEG_VIDEO_BITRATE_MODE_VBR))
|
||||
return rc;
|
||||
|
||||
mutex_lock(&inst->timestamps.lock);
|
||||
list_for_each_entry(node, &inst->timestamps.list, list) {
|
||||
count++;
|
||||
|
Loading…
Reference in New Issue
Block a user