[gst-devel] gst_caps_get_structure question
LearnerMan
wanting2learn at hotmail.co.uk
Tue Dec 1 17:09:25 CET 2009
Hi,
The gst_buffer_get_caps function returns a GstCaps varialbe. I read in the
documentation that GstCaps are represented as an array of one or more
GstStructures, and each GstStructure is an array of fields where each field
consists of a field name string (e.g. "width") and a typed value.
I understand this so far and I can use the following to get width and height
info etc:
GstStructure *str = gst_caps_get_structure( caps, 0 );
My question is: in the above function the index used is '0'. What
determines what index is used here?
In my program if I print out the str returned I get the following output:
video/x-raw-yuv, width=(int)640, height=(int)480,
framerate=(fraction)1000/1, format=(fourcc)I420, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)1/1;().
How do I find out other information about such as bit-rate etc??
--
View this message in context: http://old.nabble.com/gst_caps_get_structure-question-tp26594233p26594233.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list