mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "msm: vidc: Enable work mode 2 for image sessions"
This commit is contained in:
commit
d7718d9d7b
1 changed files with 10 additions and 2 deletions
|
|
@ -1153,9 +1153,17 @@ static int msm_vidc_decide_work_mode_ar50_lt(struct msm_vidc_inst *inst)
|
|||
pdata.video_work_mode = HFI_WORKMODE_1;
|
||||
break;
|
||||
}
|
||||
} else if (inst->session_type == MSM_VIDC_ENCODER)
|
||||
} else if (inst->session_type == MSM_VIDC_ENCODER) {
|
||||
pdata.video_work_mode = HFI_WORKMODE_1;
|
||||
else {
|
||||
if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR ||
|
||||
inst->rc_type ==
|
||||
V4L2_MPEG_VIDEO_BITRATE_MODE_MBR ||
|
||||
inst->rc_type ==
|
||||
V4L2_MPEG_VIDEO_BITRATE_MODE_MBR_VFR ||
|
||||
inst->rc_type ==
|
||||
V4L2_MPEG_VIDEO_BITRATE_MODE_CQ)
|
||||
pdata.video_work_mode = HFI_WORKMODE_2;
|
||||
} else {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue