videoscale

videoscale — Resizes video

Synopsis

                    GstVideoScale;
enum                GstVideoScaleMethod;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstVideoFilter
                           +----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

1
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.
1
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)

Details

GstVideoScale

typedef struct _GstVideoScale GstVideoScale;

Opaque data structure


enum GstVideoScaleMethod

typedef enum {
  GST_VIDEO_SCALE_NEAREST,
  GST_VIDEO_SCALE_BILINEAR,
  GST_VIDEO_SCALE_4TAP
} 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).

GST_VIDEO_SCALE_4TAP

use a 4-tap filter for scaling (slow).

Property Details

The "method" property

  "method"                   GstVideoScaleMethod   : Read / Write

method.

Default value: Bilinear

See Also

videorate, ffmpegcolorspace