Skip to main content

ProbeFn

Type Alias ProbeFn 

Source
pub type ProbeFn = fn(probe: &ProbeData<'_>) -> ProbeScore;
Expand description

Content-based format detection function.

Returns a ProbeScore in 0..=100. Implementations should be pure (no I/O, no allocation beyond the stack) and fast — they may be invoked once per registered demuxer on every input file.