![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <gst/video/gstvideosink.h> GstVideoSink; GstVideoSinkClass; GstVideoRectangle; #define GST_VIDEO_SINK_HEIGHT (obj) #define GST_VIDEO_SINK_PAD (obj) #define GST_VIDEO_SINK_WIDTH (obj) void gst_video_sink_center_rect (GstVideoRectangle src, GstVideoRectangle dst, GstVideoRectangle *result, gboolean scaling);
typedef struct { gint width, height; } GstVideoSink;
The video sink instance structure. Derived video sinks should set the
height
and width
members.
typedef struct { GstBaseSinkClass parent_class; GstFlowReturn (*show_frame) (GstVideoSink *video_sink, GstBuffer *buf); } GstVideoSinkClass;
The video sink class structure. Derived classes should override the
show_frame
virtual function.
GstBaseSinkClass |
the parent class structure |
|
render a video frame. Maps to GstBaseSinkClass.render() and
GstBaseSinkClass.preroll() vfuncs. Rendering during preroll will be
suppressed if the "show-preroll-frame" property is set to
FALSE . Since: 0.10.25
|
typedef struct { gint x; gint y; gint w; gint h; } GstVideoRectangle;
Helper structure representing a rectangular area.
#define GST_VIDEO_SINK_PAD(obj) GST_BASE_SINK_PAD(obj)
Get the sink GstPad of obj
.
|
a GstVideoSink |
void gst_video_sink_center_rect (GstVideoRectangle src, GstVideoRectangle dst, GstVideoRectangle *result, gboolean scaling);
Takes src
rectangle and position it at the center of dst
rectangle with or
without scaling
. It handles clipping if the src
rectangle is bigger than
the dst
one and scaling
is set to FALSE.
|
the GstVideoRectangle describing the source area |
|
the GstVideoRectangle describing the destination area |
|
a pointer to a GstVideoRectangle which will receive the result area |
|
a gboolean indicating if scaling should be applied or not |
"show-preroll-frame"
property"show-preroll-frame" gboolean : Read / Write / Construct
Whether to show video frames during preroll. If set to FALSE, video frames will only be rendered in PLAYING state.
Default value: TRUE
Since 0.10.25