GstVideo.VideoConverter¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GstVideo.VideoConverter¶
- frame(src, dest)[source]¶
- Parameters:
src (
GstVideo.VideoFrame
) – aGstVideo.VideoFrame
dest (
GstVideo.VideoFrame
) – aGstVideo.VideoFrame
Convert the pixels of src into dest using self.
If
GstVideo.VIDEO_CONVERTER_OPT_ASYNC_TASKS
isTrue
then this function will return immediately and needs to be followed by a call toGstVideo.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.
- get_config()[source]¶
- Returns:
a
Gst.Structure
that remains valid for as long as self is valid or untilGstVideo.VideoConverter.set_config
() is called.- Return type:
Get the current configuration of self.
- get_in_info()[source]¶
- Returns:
- Return type:
Retrieve the input format of self.
New in version 1.22.
- get_out_info()[source]¶
- Returns:
- Return type:
Retrieve the output format of self.
New in version 1.22.
- set_config(config)[source]¶
- Parameters:
config (
Gst.Structure
) – aGst.Structure
- Returns:
True
when config could be set.- Return type:
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 withGstVideo.VideoConverter.get_config
().Look at the
GST_VIDEO_CONVERTER_OPT_*
fields to check valid configuration option and values.New in version 1.6.