Top |
#define | GST_VIDEO_SINK_HEIGHT() |
#define | GST_VIDEO_SINK_PAD() |
#define | GST_VIDEO_SINK_WIDTH() |
void | gst_video_sink_center_rect () |
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstBaseSink ╰── GstVideoSink
#define GST_VIDEO_SINK_PAD(obj) GST_BASE_SINK_PAD(obj)
Get the sink GstPad of obj
.
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.
src |
the GstVideoRectangle describing the source area |
|
dst |
the GstVideoRectangle describing the destination area |
|
result |
a pointer to a GstVideoRectangle which will receive the result area |
|
scaling |
a gboolean indicating if scaling should be applied or not |
struct GstVideoSink { gint width, height; };
The video sink instance structure. Derived video sinks should set the
height
and width
members.
struct GstVideoSinkClass { GstBaseSinkClass parent_class; GstFlowReturn (*show_frame) (GstVideoSink *video_sink, GstBuffer *buf); };
The video sink class structure. Derived classes should override the
show_frame
virtual function.
render a video frame. Maps to |