video: driver: update basic functionality controls
- update basic functionality controls with their parents and children list. - deprecate MPEG2 related code. - rename driver internal color formats. Change-Id: I918d6fd238486098f10c5b9ce40c895bcd9468e5 Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
@@ -139,7 +139,7 @@ static u32 msm_vidc_decoder_line_size_iris2(struct msm_vidc_inst *inst)
|
||||
|
||||
pixelformat = inst->fmts[OUTPUT_PORT].fmt.pix_mp.pixelformat;
|
||||
if (pixelformat == MSM_VIDC_FMT_NV12 ||
|
||||
pixelformat == MSM_VIDC_FMT_NV12_P010)
|
||||
pixelformat == MSM_VIDC_FMT_P010)
|
||||
is_opb = true;
|
||||
else
|
||||
is_opb = false;
|
||||
@@ -304,8 +304,8 @@ static u32 msm_vidc_encoder_line_size_iris2(struct msm_vidc_inst *inst)
|
||||
width = f->fmt.pix_mp.width;
|
||||
height = f->fmt.pix_mp.height;
|
||||
pixelformat = f->fmt.pix_mp.pixelformat;
|
||||
if (pixelformat == MSM_VIDC_FMT_NV12_P010 ||
|
||||
pixelformat == MSM_VIDC_FMT_NV12_TP10_UBWC)
|
||||
if (pixelformat == MSM_VIDC_FMT_P010 ||
|
||||
pixelformat == MSM_VIDC_FMT_TP10C)
|
||||
is_tenbit = true;
|
||||
else
|
||||
is_tenbit = false;
|
||||
@@ -335,8 +335,8 @@ static u32 msm_vidc_encoder_dpb_size_iris2(struct msm_vidc_inst *inst)
|
||||
width = f->fmt.pix_mp.width;
|
||||
height = f->fmt.pix_mp.height;
|
||||
pixelformat = f->fmt.pix_mp.pixelformat;
|
||||
if (pixelformat == MSM_VIDC_FMT_NV12_P010 ||
|
||||
pixelformat == MSM_VIDC_FMT_NV12_TP10_UBWC)
|
||||
if (pixelformat == MSM_VIDC_FMT_P010 ||
|
||||
pixelformat == MSM_VIDC_FMT_TP10C)
|
||||
is_tenbit = true;
|
||||
else
|
||||
is_tenbit = false;
|
||||
@@ -384,8 +384,8 @@ static u32 msm_vidc_encoder_vpss_size_iris2(struct msm_vidc_inst* inst)
|
||||
width = f->fmt.pix_mp.width;
|
||||
height = f->fmt.pix_mp.height;
|
||||
pixelformat = f->fmt.pix_mp.pixelformat;
|
||||
if (pixelformat == MSM_VIDC_FMT_NV12_P010 ||
|
||||
pixelformat == MSM_VIDC_FMT_NV12_TP10_UBWC)
|
||||
if (pixelformat == MSM_VIDC_FMT_P010 ||
|
||||
pixelformat == MSM_VIDC_FMT_TP10C)
|
||||
is_tenbit = true;
|
||||
else
|
||||
is_tenbit = false;
|
||||
|
@@ -473,7 +473,7 @@ static u64 __calculate_encoder(struct vidc_bus_vote_data *d)
|
||||
|
||||
b_frames_enabled = d->b_frames_enabled;
|
||||
original_color_format = d->num_formats >= 1 ?
|
||||
d->color_formats[0] : MSM_VIDC_FMT_NV12_UBWC;
|
||||
d->color_formats[0] : MSM_VIDC_FMT_NV12C;
|
||||
|
||||
original_compression_enabled = __ubwc(original_color_format);
|
||||
|
||||
|
Reference in New Issue
Block a user