msm: vidc: update capability for quality mode
Usecase like UHD encode is configured by driver in high quality mode. But video firmware overwrites the mode to performance mode. Update the quality configuration to make them inline with video firmware configuration. Change-Id: I6f432bbf889c01d0a9b1f91bfb3d2dd2b9351b5b Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
This commit is contained in:
parent
c638b9401e
commit
8af58f371e
@ -1289,16 +1289,12 @@ int msm_vidc_decide_core_and_power_mode_iris2(struct msm_vidc_inst *inst)
|
||||
|
||||
inst->clk_data.core_id = VIDC_CORE_ID_1;
|
||||
|
||||
/* Power saving always disabled for CQ and LOSSLESS RC modes. */
|
||||
mbpf = msm_vidc_get_mbs_per_frame(inst);
|
||||
mbps = mbpf * msm_vidc_get_fps(inst);
|
||||
max_hq_mbpf = inst->core->resources.max_hq_mbs_per_frame;
|
||||
max_hq_mbps = inst->core->resources.max_hq_mbs_per_sec;
|
||||
|
||||
if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ ||
|
||||
inst->rc_type == RATE_CONTROL_LOSSLESS ||
|
||||
inst->all_intra ||
|
||||
(mbpf <= max_hq_mbpf && mbps <= max_hq_mbps))
|
||||
if (mbpf <= max_hq_mbpf && mbps <= max_hq_mbps)
|
||||
enable = false;
|
||||
|
||||
rc = msm_vidc_power_save_mode_enable(inst, enable);
|
||||
|
@ -381,11 +381,11 @@ static struct msm_vidc_common_data lahaina_common_data[] = {
|
||||
},
|
||||
{
|
||||
.key = "qcom,max-hq-mbs-per-frame",
|
||||
.value = 34816, /* 4096x2176 */
|
||||
.value = 8160, /* ((1920x1088)/256) */
|
||||
},
|
||||
{
|
||||
.key = "qcom,max-hq-mbs-per-sec",
|
||||
.value = 1044480, /* 4096x2176@30fps */
|
||||
.value = 489600, /* ((1920x1088)/256)@60fps */
|
||||
},
|
||||
{
|
||||
.key = "qcom,max-b-frame-mbs-per-frame",
|
||||
|
Loading…
Reference in New Issue
Block a user