[gst-devel] The 1.0 plan

Sebastian Dröge sebastian.droege at collabora.co.uk
Fri Dec 3 18:17:51 CET 2010


On Fri, 2010-12-03 at 09:09 -0800, wally_bkg wrote:

> I also think the best documentation is a working sample code, with decent
> comments.  The only way I could figure out how to interpret video data
> pixels in a buffer (either as a plugin or appsink) was to stumble around the
> source code for gstgamma and gstvideoscale.  
> 
> Of course the data you get in a buffer depends on the caps, but am I the
> only one who thinks there has to be a better way than:
> 
> [...]

For this you should use the libgstvideo API to get the video format,
width, height, rowstride, component widths/heights, component offsets,
pixel strides, etc. from the caps:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101203/ad048423/attachment.pgp>


More information about the gstreamer-devel mailing list