Lines Matching defs:avci

118     AVCodecInternal *avci;
150 avci = av_mallocz(sizeof(*avci));
151 if (!avci) {
155 avctx->internal = avci;
157 avci->buffer_frame = av_frame_alloc();
158 avci->buffer_pkt = av_packet_alloc();
159 if (!avci->buffer_frame || !avci->buffer_pkt) {
164 avci->skip_samples_multiplier = 1;
295 && !(avci->frame_thread_encoder && (avctx->active_thread_type&FF_THREAD_FRAME))) {
308 avci->frame_thread_encoder) {
314 avci->needs_close = codec2->caps_internal & FF_CODEC_CAP_INIT_CLEANUP;
318 avci->needs_close = 1;
379 AVCodecInternal *avci = avctx->internal;
391 if (avci->in_frame)
392 av_frame_unref(avci->in_frame);
394 av_packet_unref(avci->last_pkt_props);
395 while (av_fifo_read(avci->pkt_props, avci->last_pkt_props, 1) >= 0)
396 av_packet_unref(avci->last_pkt_props);
398 av_packet_unref(avci->in_pkt);
403 av_bsf_flush(avci->bsf);
406 avci->draining = 0;
407 avci->draining_done = 0;
408 avci->nb_draining_errors = 0;
409 av_frame_unref(avci->buffer_frame);
410 av_packet_unref(avci->buffer_pkt);
448 AVCodecInternal *avci = avctx->internal;
451 avci->frame_thread_encoder && avctx->thread_count > 1) {
454 if (HAVE_THREADS && avci->thread_ctx)
456 if (avci->needs_close && ffcodec(avctx->codec)->close)
458 avci->byte_buffer_size = 0;
459 av_freep(&avci->byte_buffer);
460 av_frame_free(&avci->buffer_frame);
461 av_packet_free(&avci->buffer_pkt);
462 if (avci->pkt_props) {
463 while (av_fifo_can_read(avci->pkt_props)) {
464 av_packet_unref(avci->last_pkt_props);
465 av_fifo_read(avci->pkt_props, avci->last_pkt_props, 1);
467 av_fifo_freep2(&avci->pkt_props);
469 av_packet_free(&avci->last_pkt_props);
471 av_packet_free(&avci->in_pkt);
472 av_frame_free(&avci->in_frame);
474 av_buffer_unref(&avci->pool);
478 av_freep(&avci->hwaccel_priv_data);
480 av_bsf_free(&avci->bsf);
482 av_channel_layout_uninit(&avci->initial_ch_layout);