convert


Description:

public bool convert (Format src_format, int64 src_value, Format dest_format, out int64 dest_value)

Converts among various Format 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.

Parameters:

this

a Info

src_format

Format of the src_value

src_value

value to convert

dest_format

Format of the dest_value

dest_value

pointer to destination value

Returns:

TRUE if the conversion was successful.