Lines Matching defs:size
57 #define SFRAME_CACHE_MAXSIZE 256 ///< maximum cache size for frame data that
386 "Invalid extradata size %d (should be 46)\n",
503 * @param size input buffer size
509 int size, float alpha, float *gain_mem)
515 for (i = 0; i < size; i++) {
522 for (i = 0; i < size; i++) {
543 * @param size input/output buffer size
549 const float *in, float *out, int size)
559 dot = avpriv_scalarproduct_float_c(in, ptr, size);
568 dot = avpriv_scalarproduct_float_c(best_hist_ptr, best_hist_ptr, size);
578 for (n = 0; n < size; n++)
723 * @param size size of the speech data
727 float *synth_pf, int size,
744 * size is applied to the next frame. All input beyond this is zero,
746 * limit to min(size-1, 127-size) as a performance consideration. */
747 remainder = FFMIN(127 - size, size - 1);
752 memset(&synth_pf[size], 0, sizeof(synth_pf[0]) * (128 - size));
767 lim = FFMIN(s->denoise_filter_cache_size, size);
771 memmove(s->denoise_filter_cache, &s->denoise_filter_cache[size],
779 s->denoise_filter_cache[n] += synth_pf[size + n];
781 memcpy(&s->denoise_filter_cache[lim], &synth_pf[size + lim],
802 * @param size Buffer size of synth & samples
809 float *samples, int size,
817 av_assert0(size <= MAX_FRAMESIZE / 2);
820 ff_celp_lp_zero_synthesis_filterf(zero_exc_pf, lpcs, synth, size, s->lsps);
823 !kalman_smoothen(s, pitch, zero_exc_pf, synth_filter_in_buf, size))
828 synth_filter_in, size, s->lsps);
829 memcpy(&synth_pf[-s->lsps], &synth_pf[size - s->lsps],
832 wiener_denoise(s, fcb_type, synth_pf, size, lpcs);
834 adaptive_gain_control(samples, synth_pf, synth, size, 0.99,
844 0.93980580475, s->dcf_mem, size);
1233 * table of size 1000 of which you want to read block_size entries).
1278 int block_idx, int size,
1285 av_assert0(size <= MAX_FRAMESIZE);
1289 r_idx = pRNG(s->frame_cntr, block_idx, size);
1300 for (n = 0; n < size; n++)
1309 int block_idx, int size,
1321 av_assert0(size <= MAX_FRAMESIZE / 2);
1322 memset(pulses, 0, sizeof(*pulses) * size);
1337 int r_idx = pRNG(s->frame_cntr, block_idx, size);
1339 for (n = 0; n < size; n++)
1366 ff_set_fixed_vector(pulses, &fcb, 1.0, size);
1388 for (n = 0; n < size; n += len) {
1390 int abs_idx = block_idx * size + n;
1402 1, size - n);
1404 len = size;
1416 idx, 8, size);
1419 sizeof(float) * size);
1424 acb_gain, fcb_gain, size);
1433 * @param size amount of samples to be read in this block
1443 int block_idx, int size,
1455 synth_block_hardcoded(s, gb, block_idx, size, frame_desc, excitation);
1457 synth_block_fcb_acb(s, gb, block_idx, size, block_pitch_sh2,
1467 ff_celp_lp_synthesis_filterf(synth, lpcs, excitation, size, s->lsps);
1658 * @param num size of LSP array
1868 * Copy (unaligned) bits from gb/data/size to pb.
1872 * @param size size of the source data, in bytes
1883 const uint8_t *data, int size,
1896 ff_copy_bits(pb, data + size - rmn_bytes,
1903 * (else you'll probably get garbage as output). Every packet has a size of
1916 int size, res, pos;
1922 * capping the packet size at ctx->block_align. */
1923 for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align);
1924 init_get_bits8(&s->gb, avpkt->data, size);
1926 /* size == ctx->block_align is used to indicate whether we are dealing with
1929 if (!(size % ctx->block_align)) { // new packet header
1930 if (!size) {
1944 if (cnt + s->spillover_nbits > avpkt->size * 8) {
1945 s->spillover_nbits = avpkt->size * 8 - cnt;
1947 copy_bits(&s->pb, avpkt->data, size, gb, s->spillover_nbits);
1971 return size;
1984 copy_bits(&s->pb, avpkt->data, size, gb, s->sframe_cache_size);
1989 return size;