VideoInfo.setFormat

bool setFormat(gstvideo.types.VideoFormat format, uint width, uint height)

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.

Parameters

formatthe format
widtha width
heighta height

Returns

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)