mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
media: uapi: Init VP9 stateless decode params
Init some of VP9 frame decode params to default value.
Fixes: b88dbe38dc
("media: uapi: Add VP9 stateless decoder controls")
Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
524e1eff9a
commit
f15799b7b7
1 changed files with 8 additions and 0 deletions
|
@ -112,6 +112,7 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx,
|
|||
struct v4l2_ctrl_mpeg2_picture *p_mpeg2_picture;
|
||||
struct v4l2_ctrl_mpeg2_quantisation *p_mpeg2_quant;
|
||||
struct v4l2_ctrl_vp8_frame *p_vp8_frame;
|
||||
struct v4l2_ctrl_vp9_frame *p_vp9_frame;
|
||||
struct v4l2_ctrl_fwht_params *p_fwht_params;
|
||||
void *p = ptr.p + idx * ctrl->elem_size;
|
||||
|
||||
|
@ -152,6 +153,13 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx,
|
|||
p_vp8_frame = p;
|
||||
p_vp8_frame->num_dct_parts = 1;
|
||||
break;
|
||||
case V4L2_CTRL_TYPE_VP9_FRAME:
|
||||
p_vp9_frame = p;
|
||||
p_vp9_frame->profile = 0;
|
||||
p_vp9_frame->bit_depth = 8;
|
||||
p_vp9_frame->flags |= V4L2_VP9_FRAME_FLAG_X_SUBSAMPLING |
|
||||
V4L2_VP9_FRAME_FLAG_Y_SUBSAMPLING;
|
||||
break;
|
||||
case V4L2_CTRL_TYPE_FWHT_PARAMS:
|
||||
p_fwht_params = p;
|
||||
p_fwht_params->version = V4L2_FWHT_VERSION;
|
||||
|
|
Loading…
Reference in a new issue