GstVideo.VideoSink¶
- Subclasses:
None
Methods¶
- Inherited:
GstBase.BaseSink (31), Gst.Element (82), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Whether to render video frames during preroll |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
element |
r |
||
height |
r |
video height (derived class needs to set this) |
|
width |
r |
video width (derived class needs to set this) |
Class Details¶
- class GstVideo.VideoSink(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Provides useful functions and a base class for video sinks.
GstVideo.VideoSink
will configure the default base sink to drop frames that arrive later than 20ms as this is considered the default threshold for observing out-of-sync frames.- classmethod center_rect(src, dst, scaling)[source]¶
- Parameters:
src (
GstVideo.VideoRectangle
) – theGstVideo.VideoRectangle
describing the source areadst (
GstVideo.VideoRectangle
) – theGstVideo.VideoRectangle
describing the destination areascaling (
bool
) – abool
indicating if scaling should be applied or not
- Returns:
a pointer to a
GstVideo.VideoRectangle
which will receive the result area- Return type:
result:
GstVideo.VideoRectangle
Deprecated since version 1.20: Use
GstVideo.video_center_rect
() instead.
- do_set_info(caps, info) virtual¶
- Parameters:
info (
GstVideo.VideoInfo
) – AGstVideo.VideoInfo
corresponding to caps.
- Return type:
Notifies the subclass of changed
GstVideo.VideoInfo
.New in version 1.20.
- do_show_frame(buf) virtual¶
- Parameters:
buf (
Gst.Buffer
) –- Return type:
render a video frame. Maps to
GstBase.BaseSink.do_render
() andGstBase.BaseSink.do_preroll
() vfuncs. Rendering during preroll will be suppressed if theGstVideo.VideoSink
:show-preroll-frame
property is set toFalse
.