VideoInfo.convert
bool convert(gst.types.Format srcFormat, long srcValue, gst.types.Format destFormat, out long destValue)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.
Parameters
srcFormat | #GstFormat of the src_value |
srcValue | value to convert |
destFormat | #GstFormat of the dest_value |
destValue | pointer to destination value |
Returns
TRUE if the conversion was successful.