VideoInfo.setFormat

Set the default info for a video frame of format and width and height.

Note: This initializes info first, no values are preserved. This function does not set the offsets correctly for interlaced vertically subsampled formats.

class VideoInfo
bool
setFormat

Parameters

format gstvideo.types.VideoFormat

the format

width uint

a width

height uint

a height

Return Value

Type: bool

false if the returned video info is invalid, e.g. because the size of a frame can't be represented as a 32 bit integer (Since: 1.12)