Commit 0018147c authored by Kieran Bingham's avatar Kieran Bingham Committed by Mauro Carvalho Chehab

media: v4l: doc: Clarify v4l2_mbus_fmt height definition

The v4l2_mbus_fmt width and height corresponds directly with the
v4l2_pix_format definitions, yet the differences in documentation make
it ambiguous what to do in the event of field heights.

Clarify this using the same text as is provided for the v4l2_pix_format
which is explicit on the matter, and by matching the terminology of
'image height' rather than the misleading 'frame height'.
Signed-off-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent c32678ea
...@@ -16,10 +16,14 @@ Media Bus Formats ...@@ -16,10 +16,14 @@ Media Bus Formats
* - __u32 * - __u32
- ``width`` - ``width``
- Image width, in pixels. - Image width in pixels.
* - __u32 * - __u32
- ``height`` - ``height``
- Image height, in pixels. - Image height in pixels. If ``field`` is one of ``V4L2_FIELD_TOP``,
``V4L2_FIELD_BOTTOM`` or ``V4L2_FIELD_ALTERNATE`` then height
refers to the number of lines in the field, otherwise it refers to
the number of lines in the frame (which is twice the field height
for interlaced formats).
* - __u32 * - __u32
- ``code`` - ``code``
- Format code, from enum - Format code, from enum
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
/** /**
* struct v4l2_mbus_framefmt - frame format on the media bus * struct v4l2_mbus_framefmt - frame format on the media bus
* @width: frame width * @width: image width
* @height: frame height * @height: image height
* @code: data format code (from enum v4l2_mbus_pixelcode) * @code: data format code (from enum v4l2_mbus_pixelcode)
* @field: used interlacing type (from enum v4l2_field) * @field: used interlacing type (from enum v4l2_field)
* @colorspace: colorspace of the data (from enum v4l2_colorspace) * @colorspace: colorspace of the data (from enum v4l2_colorspace)
......
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