mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "msm: vidc: Initialize port format type"
This commit is contained in:
commit
55faba7c9b
2 changed files with 4 additions and 0 deletions
|
|
@ -746,6 +746,7 @@ int msm_vdec_inst_init(struct msm_vidc_inst *inst)
|
|||
|
||||
inst->prop.extradata_ctrls = EXTRADATA_DEFAULT;
|
||||
f = &inst->fmts[OUTPUT_PORT].v4l2_fmt;
|
||||
f->type = OUTPUT_MPLANE;
|
||||
f->fmt.pix_mp.height = DEFAULT_HEIGHT;
|
||||
f->fmt.pix_mp.width = DEFAULT_WIDTH;
|
||||
f->fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12_UBWC;
|
||||
|
|
@ -767,6 +768,7 @@ int msm_vdec_inst_init(struct msm_vidc_inst *inst)
|
|||
strlcpy(inst->fmts[OUTPUT_PORT].description, fmt_desc->description,
|
||||
sizeof(inst->fmts[OUTPUT_PORT].description));
|
||||
f = &inst->fmts[INPUT_PORT].v4l2_fmt;
|
||||
f->type = INPUT_MPLANE;
|
||||
f->fmt.pix_mp.height = DEFAULT_HEIGHT;
|
||||
f->fmt.pix_mp.width = DEFAULT_WIDTH;
|
||||
f->fmt.pix_mp.pixelformat = V4L2_PIX_FMT_H264;
|
||||
|
|
|
|||
|
|
@ -1108,6 +1108,7 @@ int msm_venc_inst_init(struct msm_vidc_inst *inst)
|
|||
return -EINVAL;
|
||||
}
|
||||
f = &inst->fmts[OUTPUT_PORT].v4l2_fmt;
|
||||
f->type = OUTPUT_MPLANE;
|
||||
f->fmt.pix_mp.height = DEFAULT_HEIGHT;
|
||||
f->fmt.pix_mp.width = DEFAULT_WIDTH;
|
||||
f->fmt.pix_mp.pixelformat = V4L2_PIX_FMT_H264;
|
||||
|
|
@ -1127,6 +1128,7 @@ int msm_venc_inst_init(struct msm_vidc_inst *inst)
|
|||
strlcpy(inst->fmts[OUTPUT_PORT].description, fmt_desc->description,
|
||||
sizeof(inst->fmts[OUTPUT_PORT].description));
|
||||
f = &inst->fmts[INPUT_PORT].v4l2_fmt;
|
||||
f->type = INPUT_MPLANE;
|
||||
f->fmt.pix_mp.height = DEFAULT_HEIGHT;
|
||||
f->fmt.pix_mp.width = DEFAULT_WIDTH;
|
||||
f->fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12_UBWC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue