where is: gst_video_format_new_caps ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

where is: gst_video_format_new_caps ?

Andres Gonzalez
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?
Reply | Threaded
Open this post in threaded view
|

Re: where is: gst_video_format_new_caps ?

Sebastian Dröge-3
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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment