Home
last modified time | relevance | path

Searched refs:frame_bits (Results 1 – 25 of 27) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dac3enc.c724 int frame_bits; in count_frame_bits_fixed() local
736 frame_bits = 16; /* sync info */ in count_frame_bits_fixed()
739 frame_bits += 35; in count_frame_bits_fixed()
740 frame_bits += 1 + 1; in count_frame_bits_fixed()
742 frame_bits++; in count_frame_bits_fixed()
743 frame_bits++; in count_frame_bits_fixed()
746 frame_bits += 2; in count_frame_bits_fixed()
747 frame_bits += 10; in count_frame_bits_fixed()
750 frame_bits += 5 * s->fbw_channels; in count_frame_bits_fixed()
752 frame_bits += s->num_blocks * 2 * s->fbw_channels; in count_frame_bits_fixed()
[all …]
Dgsmdec_template.c31 static void apcm_dequant_add(GetBitContext *gb, int16_t *dst, const int *frame_bits) in apcm_dequant_add() argument
37 val = get_bits(gb, frame_bits[i]); in apcm_dequant_add()
38 dst[3 * i] += tab[ff_gsm_requant_tab[frame_bits[i]][val]]; in apcm_dequant_add()
Dqdmc.c48 uint8_t frame_bits; member
269 s->frame_bits = 13; in qdmc_decode_init()
272 s->frame_bits = 12; in qdmc_decode_init()
275 s->frame_bits = 11; in qdmc_decode_init()
277 s->frame_size = 1 << s->frame_bits; in qdmc_decode_init()
426 group_size = 1 << (s->frame_bits - group - 1); in read_wave_data()
Daacpsy.c153 int frame_bits; ///< average bits per frame member
326 pctx->frame_bits = FFMIN(2560, chan_bitrate * AAC_BLOCK_SIZE_LONG / ctx->avctx->sample_rate); in psy_3gpp_init()
329 ctx->bitres.size = 6144 - pctx->frame_bits; in psy_3gpp_init()
505 ctx->fill_level += ctx->frame_bits - bits; in calc_bit_demand()
533 ctx->frame_bits * bit_factor, in calc_bit_demand()
534 FFMAX(ctx->frame_bits + size - bits, ctx->frame_bits / 8)); in calc_bit_demand()
Ddcaenc.c69 int frame_bits; member
237 …c->frame_bits = FFALIGN((avctx->bit_rate * 512 + avctx->sample_rate - 1) / avctx->sample_rate, 32); in encode_init()
239 if (c->frame_bits < min_frame_bits || c->frame_bits > (DCA_MAX_FRAME_SIZE << 3)) in encode_init()
242 c->frame_size = (c->frame_bits + 7) / 8; in encode_init()
855 if (c->consumed_bits > c->frame_bits) { in assign_bits()
856 while (c->consumed_bits > c->frame_bits) { in assign_bits()
866 while (c->consumed_bits <= c->frame_bits) { in assign_bits()
878 if (c->consumed_bits <= c->frame_bits) in assign_bits()
Daacenc.c562 int i, its, ch, w, chans, tag, start_ch, ret, frame_bits; in aac_encode_frame() local
681 frame_bits = its = 0; in aac_encode_frame()
826 frame_bits = put_bits_count(&s->pb); in aac_encode_frame()
838 || (its < 5 && (frame_bits < too_few_bits || frame_bits > too_many_bits)) in aac_encode_frame()
839 || frame_bits >= 6144 * s->channels - 3 ) in aac_encode_frame()
841 float ratio = ((float)rate_bits) / frame_bits; in aac_encode_frame()
843 if (frame_bits >= too_few_bits && frame_bits <= too_many_bits) { in aac_encode_frame()
Ddnxhdenc.h88 unsigned frame_bits; member
Ddnxhdenc.c344 ctx->frame_bits = (ctx->coding_unit_size - in dnxhd_init_rc()
1053 if (bits > ctx->frame_bits) in dnxhd_encode_rdo()
1057 if (bits > ctx->frame_bits) in dnxhd_encode_rdo()
1061 if (bits < ctx->frame_bits) { in dnxhd_encode_rdo()
1109 if (bits > ctx->frame_bits) in dnxhd_find_qscale()
1112 if (bits < ctx->frame_bits) { in dnxhd_find_qscale()
1232 for (x = 0; x < ctx->m.mb_num && max_bits > ctx->frame_bits; x++) { in dnxhd_encode_fast()
Dopusenc_psy.c315 float rate, frame_bits = 0; in celt_gauge_psy_weight() local
348 frame_bits += band_score[i]*8.0f; in celt_gauge_psy_weight()
354 rate = ((float)s->avctx->bit_rate) + frame_bits*frame_size*16; in celt_gauge_psy_weight()
Dratecontrol.c896 av_assert1(s->frame_bits >= s->stuffing_bits); in ff_rate_estimate_qscale()
900 s->frame_bits - s->stuffing_bits); in ff_rate_estimate_qscale()
943 br_compensation, s->frame_bits, var, pict_type); in ff_rate_estimate_qscale()
1007 br_compensation, short_term_q, s->frame_bits, in ff_rate_estimate_qscale()
Dac3enc.h229 int frame_bits; ///< all frame bits except exponents and mantissas member
Dmpegvideo_enc.c1995 s->frame_bits = put_bits_count(&s->pb); in ff_mpv_encode_picture()
1997 stuffing_count = ff_vbv_update(s, s->frame_bits); in ff_mpv_encode_picture()
2026 s->frame_bits = put_bits_count(&s->pb); in ff_mpv_encode_picture()
2041 int minbits = s->frame_bits - 8 * in ff_mpv_encode_picture()
2083 s->total_bits += s->frame_bits; in ff_mpv_encode_picture()
2086 avctx->frame_bits = s->frame_bits; in ff_mpv_encode_picture()
2105 s->frame_bits = 0; in ff_mpv_encode_picture()
2114 av_assert1((s->frame_bits & 7) == 0); in ff_mpv_encode_picture()
2116 pkt->size = s->frame_bits / 8; in ff_mpv_encode_picture()
Dmpegvideo.h338 int frame_bits; ///< bits used for the current frame member
Dsnowenc.c1881 s->m.frame_bits = 8*(s->c.bytestream - s->c.bytestream_start); in encode_frame()
1882 s->m.p_tex_bits = s->m.frame_bits - s->m.misc_bits - s->m.mv_bits; in encode_frame()
1895 avctx->frame_bits = s->m.frame_bits; in encode_frame()
Davcodec.h1549 int frame_bits; member
Doptions_table.h117 {"frame_bits", NULL, OFFSET(frame_bits), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX},
/third_party/alsa-utils/bat/
Dalsa.c40 size_t frame_bits; member
290 sndpcm->frame_bits = sndpcm->sample_bits * bat->channels; in set_snd_pcm_params()
293 sndpcm->period_bytes = sndpcm->period_size * sndpcm->frame_bits / 8; in set_snd_pcm_params()
335 offset += err * sndpcm->frame_bits / 8; in write_to_pcm()
383 int frames = bytes * 8 / sndpcm->frame_bits; /* frame count */ in write_to_pcm_loop()
539 offset += err * sndpcm->frame_bits / 8; in read_from_pcm()
573 frames = size * 8 / sndpcm->frame_bits; in read_from_pcm_loop()
/third_party/alsa-lib/src/pcm/
Dpcm_file.c192 pcm->frame_bits/pcm->channels); in snd_pcm_file_replace_fname()
330 fmt->bwidth = pcm->frame_bits / 8; in setup_wav_header()
789 a->step = slave->frame_bits; in snd_pcm_file_hw_params()
Dpcm_direct.h121 unsigned int frame_bits; member
Dpcm_mmap.c238 info->step = pcm->frame_bits; in snd_pcm_channel_info_shm()
Dpcm.c889 unsigned int frame_bits; in snd_pcm_hw_params_current() local
899 frame_bits = snd_pcm_format_physical_width(pcm->format) * pcm->channels; in snd_pcm_hw_params_current()
900 …lue(&params->intervals[SND_PCM_HW_PARAM_FRAME_BITS - SND_PCM_HW_PARAM_FIRST_INTERVAL], frame_bits); in snd_pcm_hw_params_current()
908 …PCM_HW_PARAM_BUFFER_BYTES - SND_PCM_HW_PARAM_FIRST_INTERVAL], (pcm->buffer_size * frame_bits) / 8); in snd_pcm_hw_params_current()
2397 return bytes * 8 / pcm->frame_bits; in snd_pcm_bytes_to_frames()
2413 return frames * pcm->frame_bits / 8; in snd_pcm_frames_to_bytes()
7388 areas->step = pcm->frame_bits; in snd_pcm_areas_from_buf()
Dpcm_direct.c1132 COPY_SLAVE(frame_bits);
1531 COPY_SLAVE(frame_bits);
Dpcm_params.c2414 pcm->frame_bits = pcm->sample_bits * pcm->channels; in _snd_pcm_hw_params_internal()
2415 fb = pcm->frame_bits; in _snd_pcm_hw_params_internal()
Dpcm_local.h230 unsigned int frame_bits; member
/third_party/ffmpeg/doc/
Dcodecs.texi161 @item frame_bits @var{integer}

12