Home
last modified time | relevance | path

Searched refs:av_get_bytes_per_sample (Results 1 – 25 of 49) sorted by relevance

12

/third_party/ffmpeg/libavutil/
Dsamplefmt.c106 int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt) in av_get_bytes_per_sample() function
123 int sample_size = av_get_bytes_per_sample(sample_fmt); in av_samples_get_buffer_size()
219 int block_align = av_get_bytes_per_sample(sample_fmt) * (planar ? 1 : nb_channels); in av_samples_copy()
242 int block_align = av_get_bytes_per_sample(sample_fmt) * (planar ? 1 : nb_channels); in av_samples_set_silence()
Dsamplefmt.h140 int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt);
/third_party/ffmpeg/libavcodec/
Daudiotoolboxenc.c247 .mBytesPerPacket = av_get_bytes_per_sample(avctx->sample_fmt) * avctx->channels, in ffat_init_encoder()
249 .mBytesPerFrame = av_get_bytes_per_sample(avctx->sample_fmt) * avctx->channels, in ffat_init_encoder()
251 .mBitsPerChannel = av_get_bytes_per_sample(avctx->sample_fmt) * 8, in ffat_init_encoder()
479 av_get_bytes_per_sample(avctx->sample_fmt) * in ffat_encode_callback()
Daudiotoolboxdec.c317 .mBitsPerChannel = av_get_bytes_per_sample(sample_fmt) * 8, in ffat_create_decoder()
390 if(!(at->decoded_data = av_malloc(av_get_bytes_per_sample(avctx->sample_fmt) in ffat_create_decoder()
512 .mDataByteSize = av_get_bytes_per_sample(avctx->sample_fmt) * avctx->frame_size in ffat_decode()
Dvmdaudio.c93 s->out_bps = av_get_bytes_per_sample(avctx->sample_fmt); in vmdaudio_decode_init()
Dlibopusenc.c411 av_get_bytes_per_sample(avctx->sample_fmt)); in libopus_encode_init()
457 const int bytes_per_sample = av_get_bytes_per_sample(avctx->sample_fmt); in libopus_encode()
Dopusenc.c128 size_t bps = av_get_bytes_per_sample(cur->format); in celt_frame_setup_input()
143 const size_t bps = av_get_bytes_per_sample(cur->format); in celt_frame_setup_input()
529 size_t bps = av_get_bytes_per_sample(f->format); in spawn_empty_frame()
Dlibfdk-aacdec.c389 av_get_bytes_per_sample(avctx->sample_fmt)); in fdk_aac_decode_frame()
/third_party/ffmpeg/libavfilter/
Davfiltergraph.c637 if (av_get_bytes_per_sample(dst_fmt) < av_get_bytes_per_sample(src_fmt)) { in get_fmt_score()
638 score += 100 * (av_get_bytes_per_sample(src_fmt) - av_get_bytes_per_sample(dst_fmt)); in get_fmt_score()
640 score += 10 * (av_get_bytes_per_sample(dst_fmt) - av_get_bytes_per_sample(src_fmt)); in get_fmt_score()
1041 bps = av_get_bytes_per_sample(format); in swap_sample_fmts_on_filter()
1053 int out_bps = av_get_bytes_per_sample(out_format); in swap_sample_fmts_on_filter()
Dframequeue.c138 bytes = samples * av_get_bytes_per_sample(b->frame->format); in ff_framequeue_skip_samples()
Daf_ashowinfo.c184 int block_align = av_get_bytes_per_sample(buf->format) * (planar ? 1 : channels); in filter_frame()
/third_party/ffmpeg/libavresample/
Dresample.c178 felem_size = av_get_bytes_per_sample(avr->internal_sample_fmt); in ff_audio_resample_init()
356 int bps = av_get_bytes_per_sample(c->avr->internal_sample_fmt); in ff_audio_resample()
375 int bps = av_get_bytes_per_sample(c->avr->internal_sample_fmt); in ff_audio_resample()
Daudio_data.c88 a->sample_size = av_get_bytes_per_sample(sample_fmt); in ff_audio_data_init()
132 a->sample_size = av_get_bytes_per_sample(sample_fmt); in ff_audio_data_alloc()
Dutils.c74 int max_bps = FFMAX(av_get_bytes_per_sample(in_fmt), in avresample_open()
75 av_get_bytes_per_sample(out_fmt)); in avresample_open()
590 int bytes_per_sample = av_get_bytes_per_sample(out->format); in available_samples()
/third_party/ffmpeg/libswresample/tests/
Dswresample.c84 a[ch] += index*av_get_bytes_per_sample(f); in shift()
86 a[0] += index*ch_count*av_get_bytes_per_sample(f); in shift()
132 int plane_size= av_get_bytes_per_sample(format&0xFF)*samples; in setup_array()
/third_party/ffmpeg/libswresample/
Dswresample_frame.c112 int bytes_per_sample = av_get_bytes_per_sample(out->format); in available_samples()
Dswresample.c103 a->bps = av_get_bytes_per_sample(fmt); in set_audiodata_fmt()
223 if( av_get_bytes_per_sample(s-> in_sample_fmt) <= 2 in swr_init()
224 && av_get_bytes_per_sample(s->out_sample_fmt) <= 2){ in swr_init()
226 }else if( av_get_bytes_per_sample(s-> in_sample_fmt) <= 2 in swr_init()
238 }else if(av_get_bytes_per_sample(s->in_sample_fmt) <= 4){ in swr_init()
Ddither.c122 ….ns_scale_1 *= 1 - exp(f->gain_cB * M_LN10 * 0.005) * 2 / (1<<(8*av_get_bytes_per_sample(out_fmt))… in swri_dither_init()
/third_party/ffmpeg/doc/examples/
Ddecode_audio.c93 data_size = av_get_bytes_per_sample(dec_ctx->sample_fmt); in decode()
Dfilter_audio.c220 int bps = av_get_bytes_per_sample(frame->format); in process_output()
Ddemuxing_decoding.c91 size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(frame->format); in output_audio_frame()
/third_party/ffmpeg/libavutil/tests/
Daudio_fifo.c66 int byte_offset = av_get_bytes_per_sample(test_sample->format); in print_audio_bytes()
/third_party/ffmpeg/libavdevice/
Dpulse_audio_enc.c472 av_get_bytes_per_sample(st->codecpar->format); in pulse_write_header()
641 …int64_t samples = pkt->size / (av_get_bytes_per_sample(st->codecpar->format) * st->codecpar->chann… in pulse_write_packet()
684 …pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->channe… in pulse_write_frame()
Daudiotoolbox.m177 … == AV_NE(AV_CODEC_ID_PCM_S24BE, AV_CODEC_ID_PCM_S24LE)) ? 24 : (av_get_bytes_per_sample(codecpar-…
197 …av_log(ctx, AV_LOG_DEBUG, "device_format.mBitsPerChannel = %i\n", av_get_bytes_per_sample(codec…
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/
DFFMpegExtractor.cpp234 int bytesPerSample = av_get_bytes_per_sample((AVSampleFormat)stream->codecpar->format); in decode()

12