Top | ![]() |
![]() |
![]() |
![]() |
GstSurfaceConverterGstSurfaceConverter — Interface for GstSurfaceBuffer convertion |
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.
gboolean gst_surface_converter_upload (GstSurfaceConverter *converter
,GstSurfaceBuffer *buffer
);
Convert and uploads the GstSurfaceBuffer to the converter destination.
struct GstSurfaceConverterInterface { GTypeInterface parent; gboolean (*upload) (GstSurfaceConverter *converter, GstSurfaceBuffer *buffer); };
GstSurfaceConverterInterface interface.