mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
docs: update design docs a little
Update the design doc with the current state of the videometadata.
This commit is contained in:
parent
73983b3ec1
commit
1b381907b5
1 changed files with 15 additions and 14 deletions
|
@ -83,24 +83,25 @@ methods.
|
||||||
|
|
||||||
#define GST_VIDEO_MAX_PLANES 4
|
#define GST_VIDEO_MAX_PLANES 4
|
||||||
|
|
||||||
struct GstMetaVideoPlane {
|
|
||||||
gsize offset; /* offset in the buffer memory region of the
|
|
||||||
* first pixel. */
|
|
||||||
gint stride; /* stride of the image lines. Can be negative when
|
|
||||||
* the image is upside-down */
|
|
||||||
};
|
|
||||||
|
|
||||||
struct GstMetaVideo {
|
struct GstMetaVideo {
|
||||||
GstMeta meta
|
GstMeta meta;
|
||||||
|
|
||||||
GstMetaVideoFlags flags
|
GstBuffer *buffer;
|
||||||
|
|
||||||
guint n_planes;
|
GstVideoFlags flags;
|
||||||
GstVideoPlane plane[GST_VIDEO_MAX_PLANES];
|
GstVideoFormat format;
|
||||||
|
guint width;
|
||||||
|
guint height;
|
||||||
|
|
||||||
gpointer (*map) (GstMetaVideo *meta, guint plane, gint *stride,
|
guint n_planes;
|
||||||
GstMapflags flags);
|
gsize offset[GST_VIDEO_MAX_PLANES]; /* offset in the buffer memory region of the
|
||||||
gboolean (*unmap) (GstMetaVideo *meta, guint plane, gpointer data);
|
* first pixel. */
|
||||||
|
gint stride[GST_VIDEO_MAX_PLANES]; /* stride of the image lines. Can be negative when
|
||||||
|
* the image is upside-down */
|
||||||
|
|
||||||
|
gpointer (*map) (GstMetaVideo *meta, guint plane, gint *stride,
|
||||||
|
GstMapFlags flags);
|
||||||
|
gboolean (*unmap) (GstMetaVideo *meta, guint plane, gpointer data);
|
||||||
};
|
};
|
||||||
|
|
||||||
gpointer gst_meta_video_map (GstMetaVideo *meta, guint plane, gint *stride,
|
gpointer gst_meta_video_map (GstMetaVideo *meta, guint plane, gint *stride,
|
||||||
|
|
Loading…
Reference in a new issue