MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_get_bits_per_sample

Function av_get_bits_per_sample

libavcodec/utils.c:549–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549int av_get_bits_per_sample(enum AVCodecID codec_id)
550{
551 switch (codec_id) {
552 case AV_CODEC_ID_DFPWM:
553 return 1;
554 case AV_CODEC_ID_ADPCM_SBPRO_2:
555 case AV_CODEC_ID_G728:
556 return 2;
557 case AV_CODEC_ID_ADPCM_SBPRO_3:
558 return 3;
559 case AV_CODEC_ID_ADPCM_SBPRO_4:
560 case AV_CODEC_ID_ADPCM_IMA_WAV:
561 case AV_CODEC_ID_ADPCM_IMA_XBOX:
562 case AV_CODEC_ID_ADPCM_IMA_QT:
563 case AV_CODEC_ID_ADPCM_SWF:
564 case AV_CODEC_ID_ADPCM_MS:
565 return 4;
566 default:
567 return av_get_exact_bits_per_sample(codec_id);
568 }
569}
570
571static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
572 uint32_t tag, int bits_per_coded_sample, int64_t bitrate,

Callers 15

ff_alsa_openFunction · 0.85
read_headerFunction · 0.85
ff_put_wav_headerFunction · 0.85
oma_read_headerFunction · 0.85
mov_read_pcmcFunction · 0.85
mov_parse_stsd_audioFunction · 0.85
get_aiff_headerFunction · 0.85
gxf_packetFunction · 0.85
caf_write_headerFunction · 0.85
rso_read_headerFunction · 0.85
ircam_read_headerFunction · 0.85

Calls 1

Tested by

no test coverage detected