design: Rename GstMetaVideo to GstVideoMeta

This is the name of the Meta that has finally been chosen for the actual
implementation

Closes #25
This commit is contained in:
Nicolas Dufresne 2018-11-20 19:42:43 -05:00
parent 6805ea81f3
commit 0d23f2c021

View file

@ -83,7 +83,7 @@ fields and methods.
``` c ``` c
#define GST_VIDEO_MAX_PLANES 4 #define GST_VIDEO_MAX_PLANES 4
struct GstMetaVideo { struct GstVideoMeta {
GstMeta meta; GstMeta meta;
GstBuffer *buffer; GstBuffer *buffer;
@ -100,14 +100,14 @@ struct GstMetaVideo {
gint stride[GST_VIDEO_MAX_PLANES]; /* stride of the image lines. Can be negative when gint stride[GST_VIDEO_MAX_PLANES]; /* stride of the image lines. Can be negative when
* the image is upside-down */ * the image is upside-down */
gpointer (*map) (GstMetaVideo *meta, guint plane, gpointer * data, gint *stride, gpointer (*map) (GstVideoMeta *meta, guint plane, gpointer * data, gint *stride,
GstMapFlags flags); GstMapFlags flags);
gboolean (*unmap) (GstMetaVideo *meta, guint plane, gpointer data); gboolean (*unmap) (GstVideoMeta *meta, guint plane, gpointer data);
}; };
gpointer gst_meta_video_map (GstMetaVideo *meta, guint plane, gpointer * data, gpointer gst_meta_video_map (GstVideoMeta *meta, guint plane, gpointer * data,
gint *stride, GstMapflags flags); gint *stride, GstMapflags flags);
gboolean gst_meta_video_unmap (GstMetaVideo *meta, guint plane, gpointer data); gboolean gst_meta_video_unmap (GstVideoMeta *meta, guint plane, gpointer data);
``` ```
`GstMeta` derived structures define the API of the metadata. The API can `GstMeta` derived structures define the API of the metadata. The API can
@ -186,7 +186,7 @@ GstMetaTiming | | | |
+- | clock_rate | | +- | clock_rate | |
+ . . . . . . . . . . . . . . . . + | + . . . . . . . . . . . . . . . . + |
| next <--+ | next <--+
GstMetaVideo +- +- | info ------> GstMetaInfo GstVideoMeta +- +- | info ------> GstMetaInfo
| | | | | | | | | |
| | | flags | | | | | flags | |
| | | n_planes | | | | | n_planes | |
@ -195,7 +195,7 @@ GstMetaVideo +- +- | info ------> GstMetaInfo
| | | unmap | | | | | unmap | |
+- | | | | +- | | | |
| | private fields | | | | private fields | |
GstMetaVideoImpl | | ... | | GstVideoMetaImpl | | ... | |
| | ... | | | | ... | |
+- | | | +- | | |
+ . . . . . . . . . . . . . . . . + . + . . . . . . . . . . . . . . . . + .
@ -354,7 +354,7 @@ implement the actions needed to update the metadata of the subbuffer.
It might not make sense for some metadata to work with subbuffers. For It might not make sense for some metadata to work with subbuffers. For
example when we take a subbuffer of a buffer with a video frame, the example when we take a subbuffer of a buffer with a video frame, the
`GstMetaVideo` simply becomes invalid and is removed from the new `GstVideoMeta` simply becomes invalid and is removed from the new
subbuffer. subbuffer.
## Relationship with GstCaps ## Relationship with GstCaps