MCPcopy Create free account
hub / github.com/davisking/dlib / nsamples

Method nsamples

dlib/media/ffmpeg_utils.h:1081–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079 inline int frame::width() const noexcept { return is_image() ? f->width : 0; }
1080 inline AVSampleFormat frame::samplefmt() const noexcept { return is_audio() ? (AVSampleFormat)f->format : AV_SAMPLE_FMT_NONE; }
1081 inline int frame::nsamples() const noexcept { return is_audio() ? f->nb_samples : 0; }
1082 inline int frame::sample_rate() const noexcept{ return is_audio() ? f->sample_rate : 0; }
1083 inline uint64_t frame::layout() const noexcept { return is_audio() ? details::get_layout(f.get()) : 0; }
1084 inline int frame::nchannels() const noexcept { return is_audio() ? details::get_nchannels(f.get()) : 0; }

Callers 11

resizeMethod · 0.80
push_pullMethod · 0.80
convertFunction · 0.80
pushMethod · 0.80
check_imageFunction · 0.80
test_decoder_fullFunction · 0.80
test_demuxer_fullFunction · 0.80
test_encoderFunction · 0.80
test_muxer2Function · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 5

check_imageFunction · 0.64
test_decoder_fullFunction · 0.64
test_demuxer_fullFunction · 0.64
test_encoderFunction · 0.64
test_muxer2Function · 0.64