media: v4l2-ctrls: Add average QP control Browse files Add a control V4L2_CID_MPEG_VIDEO_AVERAGE_QP to report the average QP value of the current encoded frame. The value applies to the last dequeued capture buffer. Signed-off-by: Ming Qian <ming.qian@nxp.com> Reviewed-by: Hans Ver...
+ if (type == V4L2_CTRL_TYPE_INTEGER64) elem_size = sizeof(s64); else if (type == V4L2_CTRL_TYPE_STRING) @@ -1828,6 +1837,10 @@ static struct v4l2_ctrl *v4l2_ctrl_new(struct v4l2_ctrl_handler *hdl, ctrl->is_string = type == V4L2_CTRL_TYPE_STRING; ctrl->is_ptr = type...
Definition at line 810 of file v4l2-ctrls.c.struct v4l2_ctrl* v4l2_ctrl_find ( struct v4l2_ctrl_handler * hdl, u32 id ) read v4l2_ctrl_find() - Find a control with the given ID. : The control handler. : The control ID to find. If == NULL this will return NULL as well...
{ union v4l2_ctrl_ptr ptr = ctrl->p_cur; + if (ctrl->is_array) { + unsigned i; + + for (i = 0; i < ctrl->nr_of_dims; i++) + pr_cont("[%u]", ctrl->dims[i]); + pr_cont(" "); + } + switch (ctrl->type) { case V4L2_CTRL_TYPE_INTEGER: pr_cont("%d", *p...
While VIDIOC_QUERYCTRL is limited to 32 bit min/max/step/def values for controls, the upcoming VIDIOC_QUERY_EXT_CTRL isn't. So increase the internal representation to 64 bits in preparation. http://vger.kernel.org/majordomo-info.html
case V4L2_CTRL_TYPE_INTEGER64: return ptr1.p_s64[idx] == ptr2.p_s64[idx]; + case V4L2_CTRL_TYPE_U8: + return ptr1.p_u8[idx] == ptr2.p_u8[idx]; + case V4L2_CTRL_TYPE_U16: + return ptr1.p_u16[idx] == ptr2.p_u16[idx]; default: if (ctrl->is_int) return ptr1....
> +int v4l2_ctrl_register_properties(struct v4l2_ctrl_handler *hdl, Hmm, let's call this: v4l2_ctrl_new_fwnode_properties(). You don't register properties, you add new controls representing properties. And v4l2_ctrl_new_ is in line with existing functions that create controls. ...
[REVIEWv4 PATCH 13/34] v4l2-ctrls: type_ops can handle array elements. From: Hans Verkuil <hans.verk...@cisco.com> Extend the control type operations to handle N-dimensional array elements.
Is this something close to what you were having in mind? Right now it sits onhttps://github.com/ribalda/linux/commit/de21dbc2f57b58b22f5d73bc314dd8e59dff5c7dbut I will make it as the beginning of my patchset if you think that I ...
>>> - V4L2_CID_UNIT_CELL_SIZE, >>> - &unit_size); >>> - >>> + imx214->unit_size = v4l2_ctrl_new_std_compound(&imx214->ctrls, >>> + NULL, >>> + >>> V4L2_CID_UNIT_CELL_SIZE, >>> + 0, 0x7ffffff, 1, 0, >>> + p_...