mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
video-anc: Fix gst_buffer_get_video_(afd|bar)_meta
The macros were not passing the meta GType to gst_buffer_get_meta, rendering them unusable. Also, the doc comments were specifying parameters meant for the add_video_X_meta functions. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/732>
This commit is contained in:
parent
101dc08e5b
commit
7570d20871
1 changed files with 6 additions and 18 deletions
|
@ -248,11 +248,9 @@ GST_VIDEO_API const GstMetaInfo *gst_video_afd_meta_get_info (void);
|
||||||
/**
|
/**
|
||||||
* gst_buffer_get_video_afd_meta:
|
* gst_buffer_get_video_afd_meta:
|
||||||
* @b: A #GstBuffer
|
* @b: A #GstBuffer
|
||||||
* @field: 0 for progressive or field 1 and 1 for field 2
|
|
||||||
* @spec: #GstVideoAFDSpec that applies to @afd
|
|
||||||
* @afd: #GstVideoAFDValue AFD value
|
|
||||||
*
|
*
|
||||||
* Gets the #GstVideoAFDMeta that might be present on @b.
|
* Gets the #GstVideoAFDMeta that might be present on @b.
|
||||||
|
*
|
||||||
* Note: there may be two #GstVideoAFDMeta structs for interlaced video.
|
* Note: there may be two #GstVideoAFDMeta structs for interlaced video.
|
||||||
*
|
*
|
||||||
* Since: 1.18
|
* Since: 1.18
|
||||||
|
@ -261,7 +259,7 @@ GST_VIDEO_API const GstMetaInfo *gst_video_afd_meta_get_info (void);
|
||||||
* no #GstVideoAFDMeta are present
|
* no #GstVideoAFDMeta are present
|
||||||
*/
|
*/
|
||||||
#define gst_buffer_get_video_afd_meta(b) \
|
#define gst_buffer_get_video_afd_meta(b) \
|
||||||
((GstVideoAFDMeta*)gst_buffer_get_meta((b)))
|
((GstVideoAFDMeta*)gst_buffer_get_meta((b),GST_VIDEO_AFD_META_API_TYPE))
|
||||||
|
|
||||||
GST_VIDEO_API
|
GST_VIDEO_API
|
||||||
GstVideoAFDMeta *gst_buffer_add_video_afd_meta (GstBuffer * buffer, guint8 field,
|
GstVideoAFDMeta *gst_buffer_add_video_afd_meta (GstBuffer * buffer, guint8 field,
|
||||||
|
@ -310,23 +308,10 @@ GST_VIDEO_API GType gst_video_bar_meta_api_get_type (void);
|
||||||
|
|
||||||
GST_VIDEO_API const GstMetaInfo *gst_video_bar_meta_get_info (void);
|
GST_VIDEO_API const GstMetaInfo *gst_video_bar_meta_get_info (void);
|
||||||
#define GST_VIDEO_BAR_META_INFO (gst_video_bar_meta_get_info())
|
#define GST_VIDEO_BAR_META_INFO (gst_video_bar_meta_get_info())
|
||||||
|
|
||||||
#define gst_buffer_get_video_bar_meta(b) \
|
|
||||||
((GstVideoBarMeta*)gst_buffer_get_meta((b)))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_buffer_get_video_bar_meta:
|
* gst_buffer_get_video_bar_meta:
|
||||||
* @b: A #GstBuffer
|
* @b: A #GstBuffer
|
||||||
* @field: 0 for progressive or field 1 and 1 for field 2
|
*
|
||||||
* @is_letterbox: if true then bar data specifies letterbox, otherwise pillarbox
|
|
||||||
* @bar_data1: If @is_letterbox is true, then the value specifies the
|
|
||||||
* last line of a horizontal letterbox bar area at top of reconstructed frame.
|
|
||||||
* Otherwise, it specifies the last horizontal luminance sample of a vertical pillarbox
|
|
||||||
* bar area at the left side of the reconstructed frame
|
|
||||||
* @bar_data2: If @is_letterbox is true, then the value specifies the
|
|
||||||
* first line of a horizontal letterbox bar area at bottom of reconstructed frame.
|
|
||||||
* Otherwise, it specifies the first horizontal
|
|
||||||
* luminance sample of a vertical pillarbox bar area at the right side of the reconstructed frame.
|
|
||||||
* Gets the #GstVideoBarMeta that might be present on @b.
|
* Gets the #GstVideoBarMeta that might be present on @b.
|
||||||
*
|
*
|
||||||
* Since: 1.18
|
* Since: 1.18
|
||||||
|
@ -334,6 +319,9 @@ GST_VIDEO_API const GstMetaInfo *gst_video_bar_meta_get_info (void);
|
||||||
* Returns: The first #GstVideoBarMeta present on @b, or %NULL if
|
* Returns: The first #GstVideoBarMeta present on @b, or %NULL if
|
||||||
* no #GstVideoBarMeta are present
|
* no #GstVideoBarMeta are present
|
||||||
*/
|
*/
|
||||||
|
#define gst_buffer_get_video_bar_meta(b) \
|
||||||
|
((GstVideoBarMeta*)gst_buffer_get_meta((b),GST_VIDEO_BAR_META_API_TYPE))
|
||||||
|
|
||||||
GST_VIDEO_API
|
GST_VIDEO_API
|
||||||
GstVideoBarMeta *gst_buffer_add_video_bar_meta (GstBuffer * buffer, guint8 field,
|
GstVideoBarMeta *gst_buffer_add_video_bar_meta (GstBuffer * buffer, guint8 field,
|
||||||
gboolean is_letterbox, guint bar_data1, guint bar_data2);
|
gboolean is_letterbox, guint bar_data1, guint bar_data2);
|
||||||
|
|
Loading…
Reference in a new issue