msm: vidc: Enable ubwc cr stat by default

Decode session needs UBWC CR statistics for BW calculations.
Hence need to enable this exetradata by default.

CRs-Fixed: 2467542
Change-Id: I3955a0b09cf82f97478c31704be6b16f297b011b
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
This commit is contained in:
Chinmay Sawarkar 2019-06-07 11:00:25 -07:00 • committed by Gerrit - the friendly Code Review server
commit 52ae7a5f1b
2 changed files with 8 additions and 4 deletions

View file

@ -1346,6 +1346,8 @@ int msm_vdec_set_extradata(struct msm_vidc_inst *inst)
msm_comm_set_extradata(inst,
HFI_PROPERTY_PARAM_VDEC_INTERLACE_VIDEO_EXTRADATA, 0x1);
msm_comm_set_extradata(inst, display_info, 0x1);
msm_comm_set_extradata(inst,
HFI_PROPERTY_PARAM_VDEC_UBWC_CR_STAT_INFO_EXTRADATA, 0x1);
if (codec == V4L2_PIX_FMT_VP9 || codec == V4L2_PIX_FMT_HEVC) {
msm_comm_set_extradata(inst,

View file

@ -177,10 +177,12 @@ static int fill_dynamic_stats(struct msm_vidc_inst *inst,
{
struct recon_buf *binfo, *nextb;
struct vidc_input_cr_data *temp, *next;
u32 min_cf = MSM_VIDC_MAX_UBWC_COMPLEXITY_FACTOR, max_cf = 0;
u32 min_input_cr = MSM_VIDC_MAX_UBWC_COMPRESSION_RATIO,
max_input_cr = 0;
u32 min_cr = MSM_VIDC_MAX_UBWC_COMPRESSION_RATIO, max_cr = 0;
u32 max_cr = MSM_VIDC_MIN_UBWC_COMPRESSION_RATIO;
u32 max_cf = MSM_VIDC_MIN_UBWC_COMPLEXITY_FACTOR;
u32 max_input_cr = MSM_VIDC_MIN_UBWC_COMPRESSION_RATIO;
u32 min_cf = MSM_VIDC_MAX_UBWC_COMPLEXITY_FACTOR;
u32 min_input_cr = MSM_VIDC_MAX_UBWC_COMPRESSION_RATIO;
u32 min_cr = MSM_VIDC_MAX_UBWC_COMPRESSION_RATIO;
mutex_lock(&inst->reconbufs.lock);
list_for_each_entry_safe(binfo, nextb, &inst->reconbufs.list, list) {