GstSurfaceConverter

GstSurfaceConverter — Interface for GstSurfaceBuffer convertion

Synopsis

                    GstSurfaceConverter;
struct              GstSurfaceConverterInterface;
GType               gst_surface_converter_get_type      (void);
gboolean            gst_surface_converter_upload        (GstSurfaceConverter *converter,
                                                         GstSurfaceBuffer *buffer);

Description

Objects implementing this interface are used as a convertion context. This allow element optimizing the upload by keeping required resources between uploads. The context must be discarded when the pipeline goes to GST_STATE_NULL or renewed whenever the caps are changed.

Note

The GstVideoContext interface is unstable API and may change in future. One can define GST_USE_UNSTABLE_API to acknowledge and avoid this warning.

Example uploading to GL texture

1
2
3
4
5
6
7