Lines Matching refs:num_buffers
1992 int num_buffers, ret;
2042 num_buffers = sconf->mc_coding ? channels : 1;
2043 if (num_buffers * (uint64_t)num_buffers > INT_MAX) // protect chan_data_buffer allocation
2046 ctx->quant_cof = av_malloc_array(num_buffers, sizeof(*ctx->quant_cof));
2047 ctx->lpc_cof = av_malloc_array(num_buffers, sizeof(*ctx->lpc_cof));
2048 ctx->quant_cof_buffer = av_malloc_array(num_buffers * sconf->max_order,
2050 ctx->lpc_cof_buffer = av_malloc_array(num_buffers * sconf->max_order,
2063 for (c = 0; c < num_buffers; c++) {
2069 ctx->const_block = av_malloc_array(num_buffers, sizeof(*ctx->const_block));
2070 ctx->shift_lsbs = av_malloc_array(num_buffers, sizeof(*ctx->shift_lsbs));
2071 ctx->opt_order = av_malloc_array(num_buffers, sizeof(*ctx->opt_order));
2072 ctx->store_prev_samples = av_malloc_array(num_buffers, sizeof(*ctx->store_prev_samples));
2073 ctx->use_ltp = av_calloc(num_buffers, sizeof(*ctx->use_ltp));
2074 ctx->ltp_lag = av_malloc_array(num_buffers, sizeof(*ctx->ltp_lag));
2075 ctx->ltp_gain = av_malloc_array(num_buffers, sizeof(*ctx->ltp_gain));
2076 ctx->ltp_gain_buffer = av_malloc_array(num_buffers * 5, sizeof(*ctx->ltp_gain_buffer));
2086 for (c = 0; c < num_buffers; c++)
2091 ctx->chan_data_buffer = av_calloc(num_buffers * num_buffers,
2093 ctx->chan_data = av_calloc(num_buffers, sizeof(*ctx->chan_data));
2094 ctx->reverted_channels = av_malloc_array(num_buffers,
2102 for (c = 0; c < num_buffers; c++)
2103 ctx->chan_data[c] = ctx->chan_data_buffer + c * num_buffers;