Lines Matching defs:avci
291 AVCodecInternal *avci = avctx->internal;
302 if (!avci->buffer) {
303 avci->buffer = av_mallocz(sizeof(InternalBuffer));
304 if (!avci->buffer)
307 buf = avci->buffer;
375 AVCodecInternal *avci = s->internal;
381 if(avci->buffer_count >= INTERNAL_BUFFER_SIZE) {
389 if (!avci->buffer) {
390 avci->buffer = av_mallocz((INTERNAL_BUFFER_SIZE+1) *
394 buf = &avci->buffer[avci->buffer_count];
484 avci->buffer_count++;
492 "buffers used\n", pic, avci->buffer_count);
512 AVCodecInternal *avci = s->internal;
517 assert(avci->buffer_count);
519 if (avci->buffer) {
521 for (i = 0; i < avci->buffer_count; i++) { //just 3-5 checks so is not worth to optimize
522 buf = &avci->buffer[i];
526 assert(i < avci->buffer_count);
527 avci->buffer_count--;
528 last = &avci->buffer[avci->buffer_count];
542 "buffers used\n", pic, avci->buffer_count);
1573 AVCodecInternal *avci = s->internal;
1576 if (!avci->buffer)
1579 if (avci->buffer_count)
1581 avci->buffer_count);
1583 InternalBuffer *buf = &avci->buffer[i];
1589 av_freep(&avci->buffer);
1591 avci->buffer_count=0;
1596 AVCodecInternal *avci = avctx->internal;
1599 if (!avci->buffer)
1601 buf = avci->buffer;
1608 av_freep(&avci->buffer);