GstVideo.VideoConverter

Fields

None

Methods

frame (src, dest)

frame_finish ()

free ()

get_config ()

get_in_info ()

get_out_info ()

set_config (config)

Details

class GstVideo.VideoConverter
frame(src, dest)[source]
Parameters:

Convert the pixels of src into dest using self.

If GstVideo.VIDEO_CONVERTER_OPT_ASYNC_TASKS is True then this function will return immediately and needs to be followed by a call to GstVideo.VideoConverter.frame_finish().

New in version 1.6.

frame_finish()[source]

Wait for a previous async conversion performed using GstVideo.VideoConverter.frame() to complete.

New in version 1.20.

free()[source]

Free self

New in version 1.6.

get_config()[source]
Returns:

a Gst.Structure that remains valid for as long as self is valid or until GstVideo.VideoConverter.set_config() is called.

Return type:

Gst.Structure

Get the current configuration of self.

get_in_info()[source]
Returns:

a GstVideo.VideoInfo

Return type:

GstVideo.VideoInfo

Retrieve the input format of self.

New in version 1.22.

get_out_info()[source]
Returns:

a GstVideo.VideoInfo

Return type:

GstVideo.VideoInfo

Retrieve the output format of self.

New in version 1.22.

set_config(config)[source]
Parameters:

config (Gst.Structure) – a Gst.Structure

Returns:

True when config could be set.

Return type:

bool

Set config as extra configuration for self.

If the parameters in config can not be set exactly, this function returns False and will try to update as much state as possible. The new state can then be retrieved and refined with GstVideo.VideoConverter.get_config().

Look at the GST_VIDEO_CONVERTER_OPT_* fields to check valid configuration option and values.

New in version 1.6.