Class: ClutterGst::VideoSink
- Inherits:
-
GstVideo::VideoSink
- Object
- GstVideo::VideoSink
- ClutterGst::VideoSink
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#frame ⇒ ClutterGst::Frame
Returns a Clutter::GstFrame object suitable to render the current frame of the given video sink.
-
#initialize ⇒ ClutterGst::VideoSink
constructor
Creates a new Clutter::GstVideoSink.
-
#is_ready ⇒ Boolean
Returns whether the pipeline is ready and so clutter_gst_video_sink_get_pipeline() and clutter_gst_video_sink_setup_pipeline() can be called without causing error.
- #overlays ⇒ ClutterGst::Overlays
-
#pipeline ⇒ ClutterGst::
Returns a pipeline suitable for rendering the current frame of the given video sink.
-
#setup_pipeline(pipeline) ⇒ nil
Configures the given pipeline so that will be able to render the video for the sink.
-
#update_priority ⇒ Integer
Update-priority.
- #update_priority=(update_priority) ⇒ Integer
Constructor Details
#initialize ⇒ ClutterGst::VideoSink
Creates a new Clutter::GstVideoSink
Instance Method Details
#frame ⇒ ClutterGst::Frame
Returns a Clutter::GstFrame object suitable to render the current
frame of the given video sink. An application is free to make a
copy of this pipeline and modify it for custom rendering.
#is_ready ⇒ Boolean
Returns whether the pipeline is ready and so
clutter_gst_video_sink_get_pipeline() and
clutter_gst_video_sink_setup_pipeline() can be called without causing error.
Note: Normally an application will wait until the
Clutter::GstVideoSink::pipeline-ready signal is emitted instead of
polling the ready status with this api, but sometimes when a sink
is passed between components that didn't have an opportunity to
connect a signal handler this can be useful.
#overlays ⇒ ClutterGst::Overlays
#pipeline ⇒ ClutterGst::
Returns a pipeline suitable for rendering the current frame of the
given video sink. The pipeline will already have the textures for
the frame attached. For simple rendering, an application will
typically call this function immediately before it paints the
video. It can then just paint a rectangle using the returned
pipeline.
An application is free to make a copy of this
pipeline and modify it for custom rendering.
Note: it is considered an error to call this function before the
Clutter::GstVideoSink::pipeline-ready signal is emitted.
#setup_pipeline(pipeline) ⇒ nil
Configures the given pipeline so that will be able to render the
video for the sink. This should only be used if the application
wants to perform some custom rendering using its own pipeline.
Typically an application will call this in response to the
Clutter::GstVideoSink::pipeline-ready signal.
Note: it is considered an error to call this function before the
Clutter::GstVideoSink::pipeline-ready signal is emitted.
#update_priority ⇒ Integer
Returns update-priority.