mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
docs: update fields about gst video aligment
1) add stride align fields in allocation.md 2) add stride align fields in gstvideometa.h Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7201>
This commit is contained in:
parent
6335c5d005
commit
53007b5d83
2 changed files with 14 additions and 2 deletions
|
@ -693,6 +693,10 @@ params = gst_structure_new ("video-meta",
|
||||||
"padding-bottom", G_TYPE_UINT, align.padding_bottom,
|
"padding-bottom", G_TYPE_UINT, align.padding_bottom,
|
||||||
"padding-left", G_TYPE_UINT, align.padding_left,
|
"padding-left", G_TYPE_UINT, align.padding_left,
|
||||||
"padding-right", G_TYPE_UINT, align.padding_right,
|
"padding-right", G_TYPE_UINT, align.padding_right,
|
||||||
|
"stride-align0", G_TYPE_UINT, align->stride_align[0],
|
||||||
|
"stride-align1", G_TYPE_UINT, align->stride_align[1],
|
||||||
|
"stride-align2", G_TYPE_UINT, align->stride_align[2],
|
||||||
|
"stride-align3", G_TYPE_UINT, align->stride_align[3],
|
||||||
NULL);
|
NULL);
|
||||||
```
|
```
|
||||||
3. *v4l2h264enc*: when handling the `ALLOCATION` query (`propose_allocation()`),
|
3. *v4l2h264enc*: when handling the `ALLOCATION` query (`propose_allocation()`),
|
||||||
|
@ -722,6 +726,10 @@ if (gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, &video_idx))
|
||||||
gst_structure_get_uint (s, "padding-bottom", &align.padding_bottom);
|
gst_structure_get_uint (s, "padding-bottom", &align.padding_bottom);
|
||||||
gst_structure_get_uint (s, "padding-left", &align.padding_left);
|
gst_structure_get_uint (s, "padding-left", &align.padding_left);
|
||||||
gst_structure_get_uint (s, "padding-right", &align.padding_right);
|
gst_structure_get_uint (s, "padding-right", &align.padding_right);
|
||||||
|
gst_structure_get_uint (s, "stride-align0", &align.stride_align[0]);
|
||||||
|
gst_structure_get_uint (s, "stride-align1", &align.stride_align[1]);
|
||||||
|
gst_structure_get_uint (s, "stride-align2", &align.stride_align[2]);
|
||||||
|
gst_structure_get_uint (s, "stride-align3", &align.stride_align[3]);
|
||||||
|
|
||||||
gst_video_info_from_caps (&info, caps);
|
gst_video_info_from_caps (&info, caps);
|
||||||
|
|
||||||
|
|
|
@ -72,8 +72,12 @@ typedef struct _GstVideoCropMeta GstVideoCropMeta;
|
||||||
* - padding-bottom (uint): extra pixels on the bottom
|
* - padding-bottom (uint): extra pixels on the bottom
|
||||||
* - padding-left (uint): extra pixels on the left side
|
* - padding-left (uint): extra pixels on the left side
|
||||||
* - padding-right (uint): extra pixels on the right side
|
* - padding-right (uint): extra pixels on the right side
|
||||||
* The padding fields have the same semantic as #GstVideoMeta.alignment
|
* - stride-align0 (uint): stride align requirements for plane 0
|
||||||
* and so represent the paddings requested on produced video buffers.
|
* - stride-align1 (uint): stride align requirements for plane 1
|
||||||
|
* - stride-align2 (uint): stride align requirements for plane 2
|
||||||
|
* - stride-align3 (uint): stride align requirements for plane 3
|
||||||
|
* The padding and stride-align fields have the same semantic as #GstVideoMeta.alignment
|
||||||
|
* and so represent the paddings and stride-align requested on produced video buffers.
|
||||||
*
|
*
|
||||||
* Since 1.24 it can be serialized using gst_meta_serialize() and
|
* Since 1.24 it can be serialized using gst_meta_serialize() and
|
||||||
* gst_meta_deserialize().
|
* gst_meta_deserialize().
|
||||||
|
|
Loading…
Reference in a new issue