where is: gst_video_format_new_caps ?

Sebastian Dröge sebastian at centricular.com
Wed Mar 16 07:59:59 UTC 2016


On Di, 2016-03-15 at 16:10 -0700, Andres Gonzalez wrote:
> I cannot find  the:   gst_video_format_new_caps()   routine.
> 
> The older .10 documentation says it is in /gst/video/video.h however
> I
> cannot find it in my 1.6.3 source tree. 
> 
> Was this function removed from the 1.0 versions going forward or can
> it be found elsewhere? 

The API in 1.x is different. Look at the GstVideoInfo API, e.g.

GstVideoInfo info;
GstCaps *caps;

gst_video_info_set_format(&info, GST_VIDEO_FORMAT_I420, 1920, 1080);
caps = gst_video_info_to_caps(&info);

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160316/a58d82c3/attachment.sig>


More information about the gstreamer-devel mailing list