Home
last modified time | relevance | path

Searched refs:av_malloc_array (Results 1 – 25 of 187) sorted by relevance

12345678

/third_party/ffmpeg/libavcodec/
Delbg.c346 int *temp_points = av_malloc_array(dim, (numpoints/8)*sizeof(int)); in avpriv_init_elbg()
379 int *dist_cb = av_malloc_array(numpoints, sizeof(int)); in avpriv_do_elbg()
380 int *size_part = av_malloc_array(numCB, sizeof(int)); in avpriv_do_elbg()
381 cell *list_buffer = av_malloc_array(numpoints, sizeof(cell)); in avpriv_do_elbg()
389 elbg->cells = av_malloc_array(numCB, sizeof(cell *)); in avpriv_do_elbg()
390 elbg->utility = av_malloc_array(numCB, sizeof(int)); in avpriv_do_elbg()
393 elbg->utility_inc = av_malloc_array(numCB, sizeof(*elbg->utility_inc)); in avpriv_do_elbg()
394 elbg->scratchbuf = av_malloc_array(5*dim, sizeof(int)); in avpriv_do_elbg()
Dhuffman.c60 HeapElem *h = av_malloc_array(sizeof(*h), stats_size); in ff_huff_gen_len_table()
61 int *up = av_malloc_array(sizeof(*up) * 2, stats_size); in ff_huff_gen_len_table()
62 uint8_t *len = av_malloc_array(sizeof(*len) * 2, stats_size); in ff_huff_gen_len_table()
63 uint16_t *map= av_malloc_array(sizeof(*map), stats_size); in ff_huff_gen_len_table()
Dalsdec.c372 if (!(sconf->chan_pos = av_malloc_array(avctx->channels, sizeof(*sconf->chan_pos)))) in read_specific_config()
2034 ctx->quant_cof = av_malloc_array(num_buffers, sizeof(*ctx->quant_cof)); in decode_init()
2035 ctx->lpc_cof = av_malloc_array(num_buffers, sizeof(*ctx->lpc_cof)); in decode_init()
2036 ctx->quant_cof_buffer = av_malloc_array(num_buffers * sconf->max_order, in decode_init()
2038 ctx->lpc_cof_buffer = av_malloc_array(num_buffers * sconf->max_order, in decode_init()
2040 ctx->lpc_cof_reversed_buffer = av_malloc_array(sconf->max_order, in decode_init()
2058 ctx->const_block = av_malloc_array(num_buffers, sizeof(*ctx->const_block)); in decode_init()
2059 ctx->shift_lsbs = av_malloc_array(num_buffers, sizeof(*ctx->shift_lsbs)); in decode_init()
2060 ctx->opt_order = av_malloc_array(num_buffers, sizeof(*ctx->opt_order)); in decode_init()
2061 ctx->store_prev_samples = av_malloc_array(num_buffers, sizeof(*ctx->store_prev_samples)); in decode_init()
[all …]
Dffv1.c77 p->state = av_malloc_array(p->context_count, CONTEXT_SIZE * in ff_ffv1_init_slice_state()
143 fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES * in ff_ffv1_init_slice_contexts()
145 fs->sample_buffer32 = av_malloc_array((fs->width + 6), 3 * MAX_PLANES * in ff_ffv1_init_slice_contexts()
163 f->initial_states[i] = av_malloc_array(f->context_count[i], in ff_ffv1_allocate_initial_states()
Dcngenc.c59 p->samples32 = av_malloc_array(avctx->frame_size, sizeof(*p->samples32)); in cng_encode_init()
60 p->ref_coef = av_malloc_array(p->order, sizeof(*p->ref_coef)); in cng_encode_init()
Dvorbisenc.c183 cb->dimensions = av_malloc_array(cb->nentries, sizeof(float) * cb->ndimensions); in ready_codebook()
299 cb->lens = av_malloc_array(cb->nentries, sizeof(uint8_t)); in create_vorbis_context()
300 cb->codewords = av_malloc_array(cb->nentries, sizeof(uint32_t)); in create_vorbis_context()
308 cb->quantlist = av_malloc_array(vals, sizeof(int)); in create_vorbis_context()
338 fc->classes = av_malloc_array(fc->nclasses, sizeof(vorbis_enc_floor_class)); in create_vorbis_context()
348 c->books = av_malloc_array(books, sizeof(int)); in create_vorbis_context()
361 fc->list = av_malloc_array(fc->values, sizeof(vorbis_floor1_entry)); in create_vorbis_context()
455 …venc->saved = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) … in create_vorbis_context()
456 …venc->samples = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1])); in create_vorbis_context()
457 …venc->floor = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) … in create_vorbis_context()
[all …]
Dpsymodel.c40 ctx->bands = av_malloc_array (sizeof(ctx->bands[0]), num_lens); in ff_psy_init()
41 ctx->num_bands = av_malloc_array (sizeof(ctx->num_bands[0]), num_lens); in ff_psy_init()
Dmdct15.c68 s->pfa_prereindex = av_malloc_array(15 * l_ptwo, sizeof(*s->pfa_prereindex)); in init_pfa_reindex_tabs()
72 s->pfa_postreindex = av_malloc_array(15 * l_ptwo, sizeof(*s->pfa_postreindex)); in init_pfa_reindex_tabs()
278 s->tmp = av_malloc_array(len, 2 * sizeof(*s->tmp)); in ff_mdct15_init()
282 s->twiddle_exptab = av_malloc_array(s->len4, sizeof(*s->twiddle_exptab)); in ff_mdct15_init()
Dhevc_ps.c1375 pps->col_bd = av_malloc_array(pps->num_tile_columns + 1, sizeof(*pps->col_bd)); in setup_pps()
1376 pps->row_bd = av_malloc_array(pps->num_tile_rows + 1, sizeof(*pps->row_bd)); in setup_pps()
1377 pps->col_idxX = av_malloc_array(sps->ctb_width, sizeof(*pps->col_idxX)); in setup_pps()
1383 pps->column_width = av_malloc_array(pps->num_tile_columns, sizeof(*pps->column_width)); in setup_pps()
1384 pps->row_height = av_malloc_array(pps->num_tile_rows, sizeof(*pps->row_height)); in setup_pps()
1419 pps->ctb_addr_rs_to_ts = av_malloc_array(pic_area_in_ctbs, sizeof(*pps->ctb_addr_rs_to_ts)); in setup_pps()
1420 pps->ctb_addr_ts_to_rs = av_malloc_array(pic_area_in_ctbs, sizeof(*pps->ctb_addr_ts_to_rs)); in setup_pps()
1421 pps->tile_id = av_malloc_array(pic_area_in_ctbs, sizeof(*pps->tile_id)); in setup_pps()
1422 …pps->min_tb_addr_zs_tab = av_malloc_array((sps->tb_mask+2) * (sps->tb_mask+2), sizeof(*pps->min_tb… in setup_pps()
1467 pps->tile_pos_rs = av_malloc_array(tile_id, sizeof(*pps->tile_pos_rs)); in setup_pps()
[all …]
Dwma.c48 run_table = av_malloc_array(n, sizeof(uint16_t)); in init_coef_vlc()
49 flevel_table = av_malloc_array(n, sizeof(*flevel_table)); in init_coef_vlc()
50 int_table = av_malloc_array(n, sizeof(uint16_t)); in init_coef_vlc()
Dpthread_slice.c217 p->progress_mutex = av_malloc_array(p->thread_count, sizeof(pthread_mutex_t)); in ff_alloc_entries()
218 p->progress_cond = av_malloc_array(p->thread_count, sizeof(pthread_cond_t)); in ff_alloc_entries()
Dtableprint_vlc.h32 #define av_malloc_array(a, b) NULL macro
/third_party/ffmpeg/libavcodec/tests/
Dfft.c89 exptab = av_malloc_array((n / 2), sizeof(*exptab)); in fft_ref_init()
447 tab = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
448 tab1 = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
449 tab_ref = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
450 tab2 = av_malloc_array(fft_size, sizeof(FFTSample)); in main()
/third_party/ffmpeg/libavfilter/
Dvf_format.c76 s->formats = av_malloc_array(nb_formats + 1, sizeof(*s->formats)); in init()
103 formats_allowed = av_malloc_array(nb_formats_lavu + 1, sizeof(*formats_allowed)); in init()
Daf_sofalizer.c866 data_hrtf_l = av_malloc_array(n_fft, sizeof(*data_hrtf_l) * n_conv); in load_data()
867 data_hrtf_r = av_malloc_array(n_fft, sizeof(*data_hrtf_r) * n_conv); in load_data()
875 s->temp_fft[0] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); in load_data()
876 s->temp_fft[1] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); in load_data()
877 s->temp_afft[0] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); in load_data()
878 s->temp_afft[1] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); in load_data()
940 s->data_hrtf[0] = av_malloc_array(n_fft * s->n_conv, sizeof(FFTComplex)); in load_data()
941 s->data_hrtf[1] = av_malloc_array(n_fft * s->n_conv, sizeof(FFTComplex)); in load_data()
Daf_silenceremove.c211 s->window = av_malloc_array(s->window_size, sizeof(*s->window)); in config_input()
226 s->start_holdoff = av_malloc_array(FFMAX(s->start_duration, 1), in config_input()
232 s->start_silence_hold = av_malloc_array(FFMAX(s->start_silence, 1), in config_input()
242 s->stop_holdoff = av_malloc_array(FFMAX(s->stop_duration, 1), in config_input()
248 s->stop_silence_hold = av_malloc_array(FFMAX(s->stop_silence, 1), in config_input()
Daf_vibrato.c167 s->buf[c] = av_malloc_array(s->buf_size, sizeof(*s->buf[c])); in config_input()
174 s->wave_table = av_malloc_array(s->wave_table_size, sizeof(*s->wave_table)); in config_input()
Dvf_removelogo.c317 mask = (int ***)av_malloc_array(s->max_mask_size + 1, sizeof(int **)); in init()
322 mask[a] = (int **)av_malloc_array((a * 2) + 1, sizeof(int *)); in init()
328 mask[a][b + a] = (int *)av_malloc_array((a * 2) + 1, sizeof(int)); in init()
Dvf_vaguedenoiser.c156 s->block = av_malloc_array(inlink->w * inlink->h, sizeof(*s->block)); in config_input()
157 s->in = av_malloc_array(32 + FFMAX(inlink->w, inlink->h), sizeof(*s->in)); in config_input()
158 s->out = av_malloc_array(32 + FFMAX(inlink->w, inlink->h), sizeof(*s->out)); in config_input()
159 s->tmp = av_malloc_array(32 + FFMAX(inlink->w, inlink->h), sizeof(*s->tmp)); in config_input()
/third_party/ffmpeg/libavformat/
Dpaf.c156 p->blocks_count_table = av_malloc_array(p->nb_frames, in read_header()
158 p->frames_offset_table = av_malloc_array(p->nb_frames, in read_header()
160 p->blocks_offset_table = av_malloc_array(p->frame_blks, in read_header()
Dprompeg.c350 s->fec_arr = av_malloc_array(s->fec_arr_len, sizeof (PrompegFec*)); in prompeg_init()
359 s->fec_arr[i]->bitstring = av_malloc_array(s->bitstring_size, sizeof (uint8_t)); in prompeg_init()
369 s->rtp_buf = av_malloc_array(s->rtp_buf_size, sizeof (uint8_t)); in prompeg_init()
/third_party/ffmpeg/libavfilter/dnn/
Ddnn_backend_native_layer_conv2d.c76 conv_params->kernel = av_malloc_array(kernel_size, sizeof(*conv_params->kernel)); in ff_dnn_load_layer_conv2d()
87 … conv_params->biases = av_malloc_array(conv_params->output_num, sizeof(*conv_params->biases)); in ff_dnn_load_layer_conv2d()
230 thread_param = av_malloc_array(thread_num, sizeof(*thread_param)); in ff_dnn_execute_layer_conv2d()
/third_party/ffmpeg/libavutil/
Dhwcontext_vdpau.c127 priv->pix_fmts[i] = av_malloc_array(nb_pix_fmts + 1, sizeof(*priv->pix_fmts[i])); in vdpau_init_pixmfts()
198 constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(vdpau_pix_fmts) + 1, in vdpau_frames_get_constraints()
209 constraints->valid_hw_formats = av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); in vdpau_frames_get_constraints()
319 fmts = av_malloc_array(priv->nb_pix_fmts, sizeof(*fmts)); in vdpau_transfer_get_formats()
Dhwcontext_cuda.c61 constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_formats) + 1, in cuda_frames_get_constraints()
70 constraints->valid_hw_formats = av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); in cuda_frames_get_constraints()
209 fmts = av_malloc_array(2, sizeof(*fmts)); in cuda_transfer_get_formats()
/third_party/ffmpeg/libavutil/tests/
Daudio_fifo.c89 void **data_planes = av_malloc_array(afifo->nb_buffers, sizeof(void*)); in read_samples_from_audio_fifo()
97 data_planes[i] = av_malloc_array(tot_elements, afifo->sample_size); in read_samples_from_audio_fifo()

12345678