| GStreamer Base Plugins 0.10 Library Reference Manual | ||||
|---|---|---|---|---|
#include <gst/video/gstvideosink.h>
GstVideoSink;
GstVideoSinkClass;
GstVideoRectangle;
#define GST_VIDEO_SINK_CLOCK
#define GST_VIDEO_SINK_HEIGHT (obj)
#define GST_VIDEO_SINK_PAD
#define GST_VIDEO_SINK_WIDTH (obj)
void gst_video_sink_center_rect (GstVideoRectangle src,
GstVideoRectangle dst,
GstVideoRectangle *result,
gboolean scaling);
Provides useful functions and a base class for video sinks.
GstVideoSink 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.
typedef struct {
GstBaseSinkClass parent_class;
gpointer _gst_reserved[GST_PADDING];
} GstVideoSinkClass;
typedef struct {
gint x;
gint y;
gint w;
gint h;
} GstVideoRectangle;
Helper structure representing a rectangular area.
x;gintx X coordinate of rectangle's top-left point
X coordinate of rectangle's top-left point
gint y;ginty Y coordinate of rectangle's top-left point
Y coordinate of rectangle's top-left point
gint w;gintw width of the rectangle
width of the rectangle
gint h;ginth height of the rectangle
height of the rectangle
gint x; |
X coordinate of rectangle's top-left point |
gint y; |
Y coordinate of rectangle's top-left point |
gint w; |
width of the rectangle |
gint h; |
height of the rectangle |
#define GST_VIDEO_SINK_HEIGHT(obj) (GST_VIDEO_SINK (obj)->height)
obj :obj
obj : |
#define GST_VIDEO_SINK_WIDTH(obj) (GST_VIDEO_SINK (obj)->width)
obj :obj
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 :src the GstVideoRectangle describing the source area
the GstVideoRectangle describing the source area
GstVideoRectangleGstVideoRectangledst :dst the GstVideoRectangle describing the destination area
the GstVideoRectangle describing the destination area
GstVideoRectangleGstVideoRectangleresult :result a pointer to a GstVideoRectangle which will receive the result area
a pointer to a GstVideoRectangle which will receive the result area
GstVideoRectangleGstVideoRectanglescaling :scaling a gboolean indicating if scaling should be applied or not
a gboolean indicating if scaling should be applied or not
gbooleangboolean
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 |