set_format


Description:

public bool set_format (Format format, uint width, uint height)

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

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

Parameters:

this

a Info

format

the format

width

a width

height

a 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)