VideoInfo.convert

Converts among various #GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw video, GST_FORMAT_DEFAULT corresponds to video frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.

class VideoInfo
bool
convert

Parameters

srcFormat gst.types.Format

#GstFormat of the src_value

srcValue long

value to convert

destFormat gst.types.Format

#GstFormat of the dest_value

destValue long

pointer to destination value

Return Value

Type: bool

TRUE if the conversion was successful.