Skip to main content

find_matching_media_capability

Function find_matching_media_capability 

Source
fn find_matching_media_capability<'a>(
    format: &MediaFormat,
    capabilities: &'a MediaCapabilities,
) -> Option<&'a MediaCodecCapability>
Expand description

Media capability matching ignores payload type. PT is negotiated output state, not an identity key for codec compatibility.

Compatibility is instead based on the codec’s media kind, codec name, clock rate, normalized channel count, and codec-specific critical fmtp parameters.