Function ff_get_pcm_codec_id

Source
pub unsafe extern "C" fn ff_get_pcm_codec_id(
    bps: c_int,
    flt: c_int,
    be: c_int,
    sflags: c_int,
) -> AVCodecID
Expand description

Select a PCM codec based on the given parameters.

@param bps bits-per-sample @param flt floating-point @param be big-endian @param sflags signed flags. each bit corresponds to one byte of bit depth. e.g. the 1st bit indicates if 8-bit should be signed or unsigned, the 2nd bit indicates if 16-bit should be signed or unsigned, etc… This is useful for formats such as WAVE where only 8-bit is unsigned and all other bit depths are signed. @return a PCM codec id or AV_CODEC_ID_NONE