Commit afc5329e authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab

media: controls: Log H264 stateless controls in .std_log

For now, only print the type of the control. In the future,
we might want to be able to print the values of all
the stateless codec controls currently set in the control handler,
which should be useful for debugging reasons.
Signed-off-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent a7ead397
......@@ -1737,6 +1737,24 @@ static void std_log(const struct v4l2_ctrl *ctrl)
case V4L2_CTRL_TYPE_U32:
pr_cont("%u", (unsigned)*ptr.p_u32);
break;
case V4L2_CTRL_TYPE_H264_SPS:
pr_cont("H264_SPS");
break;
case V4L2_CTRL_TYPE_H264_PPS:
pr_cont("H264_PPS");
break;
case V4L2_CTRL_TYPE_H264_SCALING_MATRIX:
pr_cont("H264_SCALING_MATRIX");
break;
case V4L2_CTRL_TYPE_H264_SLICE_PARAMS:
pr_cont("H264_SLICE_PARAMS");
break;
case V4L2_CTRL_TYPE_H264_DECODE_PARAMS:
pr_cont("H264_DECODE_PARAMS");
break;
case V4L2_CTRL_TYPE_H264_PRED_WEIGHTS:
pr_cont("H264_PRED_WEIGHTS");
break;
default:
pr_cont("unknown type %d", ctrl->type);
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment