GStreamer Filters Library Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <gst/filters/gst-videosize-filter.h> GstVideoSizeFilter; GstVideoSizeFilter * gst_videosize_filter_new (guint width
,guint height
); GstVideoSizeFilter * gst_videosize_filter_new_range (guint min_width
,guint min_height
,guint max_width
,guint max_height
);
"max-height" guint : Read / Write / Construct Only "max-width" guint : Read / Write / Construct Only "min-height" guint : Read / Write / Construct Only "min-width" guint : Read / Write / Construct Only
typedef struct _GstVideoSizeFilter GstVideoSizeFilter;
A filter to force the size of a video stream (resolution)
GstVideoSizeFilter * gst_videosize_filter_new (guint width
,guint height
);
Creates a new videosize filter. This filter will force the video output to have a specific size (resolution). It will add a videoscale element to the pipeline as well as a capsfilter. If the source can use the new size, it will do it, otherwise, the videoscale will scale the video to make sure it has the right size.
|
The requested width of the video |
|
The requested height of the video |
Returns : |
A new GstVideoSizeFilter
See also: gst_videosize_filter_new_range()
|
GstVideoSizeFilter * gst_videosize_filter_new_range (guint min_width
,guint min_height
,guint max_width
,guint max_height
);
Creates a new videosize filter. This filter will force the video output to have a resolution in a specific range. It will allow you to set a 'reasonable resolution' rather than a 'specific resolution'. It will add a videoscale element to the pipeline as well as a capsfilter. If the source can use a size in that range, it will do it, otherwise, the videoscale will scale the video to make sure it has the right size.
|
The minimum width of the video |
|
The minimum height of the video |
|
The maximum width of the video |
|
The maximum height of the video |
Returns : |
A new GstVideoSizeFilter
See also: gst_videosize_filter_new()
|
"max-height"
property"max-height" guint : Read / Write / Construct Only
The maximum height of the video
Allowed values: <= G_MAXLONG
Default value: 240
"max-width"
property"max-width" guint : Read / Write / Construct Only
The maximum width of the video
Allowed values: <= G_MAXLONG
Default value: 320
"min-height"
property"min-height" guint : Read / Write / Construct Only
The minimum height of the video
Allowed values: <= G_MAXLONG
Default value: 240
"min-width"
property"min-width" guint : Read / Write / Construct Only
The minimum width of the video
Allowed values: <= G_MAXLONG
Default value: 320