![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
This element resizes video frames. By default the element will try to negotiate to the same size on the source and sinkpad so that no scaling is needed. It is therefore safe to insert this element in a pipeline to get more robust behaviour without any cost if no scaling is needed.
This element supports a wide range of color spaces including various YUV and RGB formats and is therefore generally able to operate anywhere in a pipeline.
gst-launch -v filesrc location=videotestsrc.ogg ! oggdemux ! theoradec ! ffmpegcolorspace ! videoscale ! ximagesink
Decode an Ogg/Theora and display the video using ximagesink. Since ximagesink cannot perform scaling, the video scaling will be performed by videoscale when you resize the video window. To create the test Ogg/Theora file refer to the documentation of theoraenc.
gst-launch -v filesrc location=videotestsrc.ogg ! oggdemux ! theoradec ! videoscale ! video/x-raw-yuv, width=50 ! xvimagesink
Decode an Ogg/Theora and display the video using xvimagesink with a width of 50.
Last reviewed on 2006-03-02 (0.10.4)
plugin | videoscale |
author | Wim Taymans <wim.taymans@chello.be> |
class | Filter/Effect/Video |
typedef enum { GST_VIDEO_SCALE_NEAREST, GST_VIDEO_SCALE_BILINEAR, GST_VIDEO_SCALE_4TAP } GstVideoScaleMethod;
The videoscale method to use.
GST_VIDEO_SCALE_NEAREST
GST_VIDEO_SCALE_NEAREST
use nearest neighbour scaling (fast and ugly)
use nearest neighbour scaling (fast and ugly)
GST_VIDEO_SCALE_BILINEAR
GST_VIDEO_SCALE_BILINEAR
use bilinear scaling (slower but prettier).
use bilinear scaling (slower but prettier).
GST_VIDEO_SCALE_4TAP
GST_VIDEO_SCALE_4TAP
use a 4-tap filter for scaling (slow).
use a 4-tap filter for scaling (slow).
GST_VIDEO_SCALE_NEAREST |
use nearest neighbour scaling (fast and ugly) |
GST_VIDEO_SCALE_BILINEAR |
use bilinear scaling (slower but prettier). |
GST_VIDEO_SCALE_4TAP |
use a 4-tap filter for scaling (slow). |
method
" property"method" GstVideoScaleMethod : Read / Write
method.
Default value: Nearest Neighbour