From 1b381907b57559bc1be1d3343442c8e1c11aaa0c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 22 Jun 2011 18:07:18 +0200 Subject: [PATCH] docs: update design docs a little Update the design doc with the current state of the videometadata. --- docs/design/part-meta.txt | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/docs/design/part-meta.txt b/docs/design/part-meta.txt index 071ddc5..797c315 100644 --- a/docs/design/part-meta.txt +++ b/docs/design/part-meta.txt @@ -83,24 +83,25 @@ methods. #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 { - GstMeta meta + GstMeta meta; + + GstBuffer *buffer; - GstMetaVideoFlags flags + GstVideoFlags flags; + GstVideoFormat format; + guint width; + guint height; - guint n_planes; - GstVideoPlane plane[GST_VIDEO_MAX_PLANES]; + guint n_planes; + gsize offset[GST_VIDEO_MAX_PLANES]; /* offset in the buffer memory region of the + * 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 (*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, -- 2.7.4