Skip to content

Commit

Permalink
media: v4l2-subdev: Clearly document that the crop API won't be extended
Browse files Browse the repository at this point in the history
The V4L2 subdev crop API has been marked as obsolete, deprecated by the
selection API. Despite this, it has recently been extended with streams
support. In hindsight this was a mistake. Make sure it doesn't happen
again by clearly documenting that no new extensions will be accepted.

Suggested-by: Hans Verkuil <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
  • Loading branch information
pinchartl authored and Hans Verkuil committed Apr 29, 2024
1 parent cefc10d commit c580efb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Description

.. note::

This is an :ref:`obsolete` interface and may be removed
in the future. It is superseded by
:ref:`the selection API <VIDIOC_SUBDEV_G_SELECTION>`.
This is an :ref:`obsolete` interface and may be removed in the future. It is
superseded by :ref:`the selection API <VIDIOC_SUBDEV_G_SELECTION>`. No new
extensions to the :c:type:`v4l2_subdev_crop` structure will be accepted.

To retrieve the current crop rectangle applications set the ``pad``
field of a struct :c:type:`v4l2_subdev_crop` to the
Expand Down
4 changes: 4 additions & 0 deletions include/uapi/linux/v4l2-subdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ struct v4l2_subdev_format {
* @rect: pad crop rectangle boundaries
* @stream: stream number, defined in subdev routing
* @reserved: drivers and applications must zero this array
*
* The subdev crop API is an obsolete interface and may be removed in the
* future. It is superseded by the selection API. No new extensions to this
* structure will be accepted.
*/
struct v4l2_subdev_crop {
__u32 which;
Expand Down

0 comments on commit c580efb

Please sign in to comment.