convert


Description:

public bool convert (Format src_fmt, int64 src_val, Format dest_fmt, out int64 dest_val)

Converts among various Format types.

This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw audio, GST_FORMAT_DEFAULT corresponds to audio frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.

Parameters:

this

a Info

src_fmt

Format of the src_val

src_val

value to convert

dest_fmt

Format of the dest_val

dest_val

pointer to destination value

Returns:

TRUE if the conversion was successful.




2022 vala-language.org