pub fn type_find_helper_for_buffer_with_caps(
obj: Option<&impl IsA<Object>>,
buf: &BufferRef,
caps: &CapsRef
) -> (Option<Caps>, TypeFindProbability)
Expand description
Tries to find if type of media contained in the given gst::Buffer
, matches
caps
specified, assumption being that the buffer represents the beginning
of the stream or file.
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.
Only the typefinder matching the given caps will be called, if found. The
caps with the highest probability will be returned, or None
if the content
of the data
could not be identified.
Free-function: gst_caps_unref
§obj
object doing the typefinding, or None
(used for logging)
§buf
a gst::Buffer
with data to typefind
§caps
caps of the media
§Returns
the gst::Caps
corresponding to the data,
or None
if no type could be found. The caller should free the caps
returned with gst_caps_unref()
.
§prob
location to store the probability of the found
caps, or None