type_find_helper_for_data


Description:

[ CCode ( cname = "gst_type_find_helper_for_data" ) ]
public Caps? type_find_helper_for_data (Object? obj, uint8[] data, out TypeFindProbability prob)

Tries to find what type of data is contained in the given data, the assumption being that the data represents the beginning of the stream or file.

All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or null if the content of data could not be identified.

Free-function: gst_caps_unref

Parameters:

obj

object doing the typefinding, or null (used for logging)

data

* a pointer with data to typefind

prob

location to store the probability of the found caps, or null

size

the size of data

Returns:

the Caps corresponding to the data, or null if no type could be found. The caller should free the caps returned with gst_caps_unref.


Namespace: Gst.Base



2022 vala-language.org