Flags

Details

class GstVideo.VideoBufferFlags(value)

Bases: GObject.GFlags

Additional video buffer flags. These flags can potentially be used on any buffers carrying video data - even encoded data.

Note that these are only valid for Gst.Caps of type: video/… They can conflict with other extended buffer flags.

INTERLACED = 1048576

If the Gst.Buffer is interlaced. In mixed interlace-mode, this flags specifies if the frame is interlaced or progressive.

TOP_FIELD = 10485760

The video frame has the top field only. This is the same as GstVideo.VideoBufferFlags.TFF | GstVideo.VideoBufferFlags.ONEFIELD

New in version 1.16.

MULTIPLE_VIEW = 16777216

The Gst.Buffer contains one or more specific views, such as left or right eye view. This flags is set on any buffer that contains non-mono content - even for streams that contain only a single viewpoint. In mixed mono / non-mono streams, the absense of the flag marks mono buffers.

TFF = 2097152

If the Gst.Buffer is interlaced, then the first field in the video frame is the top field. If unset, the bottom field is first.

LAST = 268435456

Offset to define more flags

FIRST_IN_BUNDLE = 33554432

When conveying stereo/multiview content with frame-by-frame methods, this flag marks the first buffer in a bundle of frames that belong together.

RFF = 4194304

If the Gst.Buffer is interlaced, then the first field (as defined by the GstVideo.VideoBufferFlags.TFF flag setting) is repeated.

BOTTOM_FIELD = 8388608

The video frame has the bottom field only. This is the same as GstVideo.VideoBufferFlags.ONEFIELD (GstVideo.VideoBufferFlags.TFF flag unset)

New in version 1.16.

ONEFIELD = 8388608

If the Gst.Buffer is interlaced, then only the first field (as defined by the GstVideo.VideoBufferFlags.TFF flag setting) is to be displayed

New in version 1.16.

class GstVideo.VideoChromaFlags(value)

Bases: GObject.GFlags

Extra flags that influence the result from gst_video_chroma_resample_new().

NONE = 0

no flags

INTERLACED = 1

the input is interlaced

class GstVideo.VideoChromaSite(value)

Bases: GObject.GFlags

Various Chroma sitings.

UNKNOWN = 0

unknown cositing

JPEG = 1

jpeg style cositing, also for mpeg1 and mjpeg

NONE = 1

no cositing

DV = 14

DV style cositing

H_COSITED = 2

chroma is horizontally cosited

MPEG2 = 2

mpeg2 style cositing

V_COSITED = 4

chroma is vertically cosited

COSITED = 6

chroma samples cosited with luma samples

ALT_LINE = 8

choma samples are sited on alternate lines

class GstVideo.VideoCodecFrameFlags(value)

Bases: GLib.Flags

Flags for GstVideo.VideoCodecFrame

DECODE_ONLY = 1

is the frame only meant to be decoded

SYNC_POINT = 2

is the frame a synchronization point (keyframe)

FORCE_KEYFRAME = 4

should the output frame be made a keyframe

FORCE_KEYFRAME_HEADERS = 8

should the encoder output stream headers

class GstVideo.VideoDitherFlags(value)

Bases: GObject.GFlags

Extra flags that influence the result from gst_video_chroma_resample_new().

NONE = 0

no flags

INTERLACED = 1

the input is interlaced

QUANTIZE = 2

quantize values in addition to adding dither.

class GstVideo.VideoFlags(value)

Bases: GObject.GFlags

Extra video flags

NONE = 0

no flags

VARIABLE_FPS = 1

a variable fps is selected, fps_n and fps_d denote the maximum fps of the video

PREMULTIPLIED_ALPHA = 2

Each color has been scaled by the alpha value.

class GstVideo.VideoFormatFlags(value)

Bases: GObject.GFlags

The different video flags that a format info can have.

YUV = 1

The video format is YUV, components are numbered 0=Y, 1=U, 2=V.

UNPACK = 128

This format can be used in a GstVideo.VideoFormatUnpack and GstVideo.VideoFormatPack function.

LE = 16

The video format has data stored in little endianness.

RGB = 2

The video format is RGB, components are numbered 0=R, 1=G, 2=B.

TILED = 256

The format is tiled, there is tiling information in the last plane.

PALETTE = 32

The video format has a palette. The palette is stored in the second plane and indexes are stored in the first plane.

GRAY = 4

The video is gray, there is one gray component with index 0.

COMPLEX = 64

The video format has a complex layout that can’t be described with the usual information in the GstVideo.VideoFormatInfo.

ALPHA = 8

The video format has an alpha components with the number 3.

class GstVideo.VideoFrameFlags(value)

Bases: GObject.GFlags

Extra video frame flags

NONE = 0

no flags

INTERLACED = 1

The video frame is interlaced. In mixed interlace-mode, this flag specifies if the frame is interlaced or progressive.

TOP_FIELD = 10

The video frame has the top field only. This is the same as GstVideo.VideoFrameFlags.TFF | GstVideo.VideoFrameFlags.ONEFIELD

New in version 1.16.

MULTIPLE_VIEW = 16

The video contains one or more non-mono views

TFF = 2

The video frame has the top field first

FIRST_IN_BUNDLE = 32

The video frame is the first in a set of corresponding views provided as sequential frames.

RFF = 4

The video frame has the repeat flag

BOTTOM_FIELD = 8

The video frame has the bottom field only. This is the same as GstVideo.VideoFrameFlags.ONEFIELD (GstVideo.VideoFrameFlags.TFF flag unset)

New in version 1.16.

ONEFIELD = 8

The video frame has one field

class GstVideo.VideoFrameMapFlags(value)

Bases: GObject.GFlags

Additional mapping flags for GstVideo.VideoFrame.map().

New in version 1.6.

LAST = 16777216

Offset to define more flags

NO_REF = 65536

Don’t take another reference of the buffer and store it in the GstVideo.VideoFrame. This makes sure that the buffer stays writable while the frame is mapped, but requires that the buffer reference stays valid until the frame is unmapped again.

class GstVideo.VideoMultiviewFlags(value)

Bases: GObject.GFlags

GstVideo.VideoMultiviewFlags are used to indicate extra properties of a stereo/multiview stream beyond the frame layout and buffer mapping that is conveyed in the GstVideo.VideoMultiviewMode.

NONE = 0

No flags

RIGHT_VIEW_FIRST = 1

For stereo streams, the normal arrangement of left and right views is reversed.

RIGHT_FLOPPED = 16

The right view is horizontally mirrored.

HALF_ASPECT = 16384

For frame-packed multiview modes, indicates that the individual views have been encoded with half the true width or height and should be scaled back up for display. This flag is used for overriding input layout interpretation by adjusting pixel-aspect-ratio. For side-by-side, column interleaved or checkerboard packings, the pixel width will be doubled. For row interleaved and top-bottom encodings, pixel height will be doubled.

LEFT_FLIPPED = 2

The left view is vertically mirrored.

MIXED_MONO = 32768

The video stream contains both mono and multiview portions, signalled on each buffer by the absence or presence of the GstVideo.VideoBufferFlags.MULTIPLE_VIEW buffer flag.

LEFT_FLOPPED = 4

The left view is horizontally mirrored.

RIGHT_FLIPPED = 8

The right view is vertically mirrored.

class GstVideo.VideoOverlayFormatFlags(value)

Bases: GObject.GFlags

Overlay format flags.

NONE = 0

no flags

PREMULTIPLIED_ALPHA = 1

RGB are premultiplied by A/255.

GLOBAL_ALPHA = 2

a global-alpha value != 1 is set.

class GstVideo.VideoPackFlags(value)

Bases: GObject.GFlags

The different flags that can be used when packing and unpacking.

NONE = 0

No flag

TRUNCATE_RANGE = 1

When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely sightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination.

INTERLACED = 2

The source is interlaced. The unpacked format will be interlaced as well with each line containing information from alternating fields.

New in version 1.2.

class GstVideo.VideoResamplerFlags(value)

Bases: GObject.GFlags

Different resampler flags.

New in version 1.6.

NONE = 0

no flags

HALF_TAPS = 1

when no taps are given, half the number of calculated taps. This can be used when making scalers for the different fields of an interlaced picture.

New in version 1.10.

class GstVideo.VideoScalerFlags(value)

Bases: GObject.GFlags

Different scale flags.

NONE = 0

no flags

INTERLACED = 1

Set up a scaler for interlaced content

class GstVideo.VideoTimeCodeFlags(value)

Bases: GLib.Flags

Flags related to the time code information. For drop frame, only 30000/1001 and 60000/1001 frame rates are supported.

New in version 1.10.

NONE = 0

No flags

DROP_FRAME = 1

Whether we have drop frame rate

INTERLACED = 2

Whether we have interlaced video