GstVaapiVideoSink

GstVaapiVideoSink — An interface for implementing VA-API sink elements

Synopsis

#define             GST_VAAPI_VIDEO_SINK_GET_INTERFACE  (obj)
                    GstVaapiVideoSinkInterface;
GstVaapiDisplay *   gst_vaapi_video_sink_get_display    (GstVaapiVideoSink *sink);
GstVaapiVideoSink * gst_vaapi_video_sink_lookup         (GstElement *element);

Description

Details

GST_VAAPI_VIDEO_SINK_GET_INTERFACE()

#define             GST_VAAPI_VIDEO_SINK_GET_INTERFACE(obj)

obj :


GstVaapiVideoSinkInterface

typedef struct {
    GstVaapiDisplay *(*get_display)(GstVaapiVideoSink *sink);
} GstVaapiVideoSinkInterface;

get_display ()

virtual function for retrieving the GstVaapiDisplay created by the downstream sink element. The implementation of that virtual function is required for all Gstreamer/VAAPI sink elements.

gst_vaapi_video_sink_get_display ()

GstVaapiDisplay *   gst_vaapi_video_sink_get_display    (GstVaapiVideoSink *sink);

Returns the GstVaapiDisplay created by the VA-API sink element.

sink :

a GstElement

Returns :

the GstVaapiDisplay created by the sink element

gst_vaapi_video_sink_lookup ()

GstVaapiVideoSink * gst_vaapi_video_sink_lookup         (GstElement *element);

Traverses the whole downstream elements chain and finds a suitable GstVaapiDisplay. This is a helper function for intermediate VA-API elements that don't create a GstVaapiDisplay but require one. e.g. the `vaapiconvert' element.

element :

a GstElement

Returns :

the GstVaapiDisplay created by a downstream sink element, or NULL if none was found