videoscale

videoscale — rescale video

Synopsis




            GstVideoScale;
enum        GstVideoScaleMethod;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstVideoScale

Properties


  "method"               GstVideoScaleMethod   : Read / Write

Description

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.

Example pipelines

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)

Element Information

plugin videoscale
author Wim Taymans <wim.taymans@chello.be>
class Filter/Effect/Video

Details

GstVideoScale

typedef struct _GstVideoScale GstVideoScale;

Opaque data structure


enum GstVideoScaleMethod

typedef enum {
  GST_VIDEO_SCALE_NEAREST,
  GST_VIDEO_SCALE_BILINEAR,
} GstVideoScaleMethod;

The videoscale method to use.

GST_VIDEO_SCALE_NEAREST use nearest neighbour scaling (fast and ugly)
GST_VIDEO_SCALE_BILINEAR use bilinear scaling (slower but prettier).

Properties

The "method" property

  "method"               GstVideoScaleMethod   : Read / Write

method.

Default value: Nearest Neighbour

See Also

videorate, ffmpegcolorspace