Home
last modified time | relevance | path

Searched refs:av_fifo_size (Results 1 – 24 of 24) sorted by relevance

/third_party/ffmpeg/libavutil/tests/
Dfifo.c34 n = av_fifo_size(fifo) / sizeof(int); in main()
42 n = av_fifo_size(fifo) / sizeof(int); in main()
51 n = av_fifo_size(fifo); in main()
68 for (i = 0; av_fifo_size(fifo) >= sizeof(int); i++) { in main()
83 n = av_fifo_size(fifo) / sizeof(int); in main()
94 n = av_fifo_size(fifo) / sizeof(int); in main()
99 n = av_fifo_size(fifo) / sizeof(int); in main()
/third_party/ffmpeg/libavutil/
Dfifo.c77 int av_fifo_size(const AVFifoBuffer *f) in av_fifo_size() function
84 return f->end - f->buffer - av_fifo_size(f); in av_fifo_space()
92 int len = av_fifo_size(f); in av_fifo_realloc2()
110 if(size + (unsigned)av_fifo_size(f) < size) in av_fifo_grow()
113 size += av_fifo_size(f); in av_fifo_grow()
235 av_assert2(av_fifo_size(f) >= size); in av_fifo_drain()
Dthreadmessage.c110 ret = av_fifo_size(mq->fifo); in av_thread_message_queue_nb_elems()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
225 used = av_fifo_size(mq->fifo); in av_thread_message_flush()
Dfifo.h76 int av_fifo_size(const AVFifoBuffer *f);
/third_party/ffmpeg/libavcodec/
Dflac_parser.c240 search_end = av_fifo_size(fpc->fifo_buf) - (MAX_FRAME_HEADER_SIZE - 1); in find_new_headers()
477 *poutbuf_size = av_fifo_size(fpc->fifo_buf) - header->offset; in get_best_header()
511 return child->offset - av_fifo_size(fpc->fifo_buf); in get_best_header()
612 av_fifo_size(fpc->fifo_buf) / FLAC_AVG_FRAME_SIZE > in flac_parse()
622 … && av_fifo_realloc2(fpc->fifo_buf, (read_end - read_start) + 2*av_fifo_size(fpc->fifo_buf)) < 0) { in flac_parse()
625 (read_end - read_start) + av_fifo_size(fpc->fifo_buf)); in flac_parse()
638 start_offset = av_fifo_size(fpc->fifo_buf) - in flac_parse()
704 av_fifo_size(fpc->fifo_buf)); in flac_parse()
Dqsvdec.c208 return av_fifo_size(fifo) / qsv_fifo_item_size(); in qsv_fifo_size()
524 (!avpkt->size && av_fifo_size(q->async_fifo))) { in qsv_decode()
584 while (q->async_fifo && av_fifo_size(q->async_fifo)) { in qsv_decode_close_qsvcontext()
693 while (av_fifo_size(s->packet_fifo) >= sizeof(pkt)) { in qsv_clear_buffers()
775 av_fifo_size(s->packet_fifo) + sizeof(input_ref)); in qsv_decode_frame()
791 if (av_fifo_size(s->packet_fifo) < sizeof(AVPacket)) in qsv_decode_frame()
Damfenc.c482 …AMF_RETURN_IF_FALSE(ctx, av_fifo_size(ctx->timestamp_list) > 0, AVERROR_UNKNOWN, "timestamp_list i… in amf_copy_buffer()
489 AMF_RETURN_IF_FALSE(ctx, av_fifo_size(ctx->timestamp_list) > 0, AVERROR_UNKNOWN, in amf_copy_buffer()
494 (av_fifo_size(ctx->timestamp_list) / sizeof(timestamp) - 1) * sizeof(timestamp_last), in amf_copy_buffer()
Dlibvorbisenc.c347 if (av_fifo_size(s->pkt_fifo) < sizeof(ogg_packet)) in libvorbis_encode_frame()
Davcodec.c521 while (av_fifo_size(avci->pkt_props) >= sizeof(*avci->last_pkt_props)) { in avcodec_flush_buffers()
596 while (av_fifo_size(avctx->internal->pkt_props) >= in avcodec_close()
Dnvenc.c1684 if (!(av_fifo_size(ctx->unused_surface_queue) > 0)) in get_free_frame()
1913 if (av_fifo_size(queue) > 0) in timestamp_queue_dequeue()
2065 nb_ready = av_fifo_size(ctx->output_surface_ready_queue) / sizeof(NvencSurface*); in output_ready()
2066 nb_pending = av_fifo_size(ctx->output_surface_queue) / sizeof(NvencSurface*); in output_ready()
2289 while (av_fifo_size(ctx->output_surface_queue) > 0) { in nvenc_send_frame()
Dqsvenc.c1097 return av_fifo_size(fifo)/qsv_fifo_item_size(); in qsv_fifo_size()
1531 (!frame && av_fifo_size(q->async_fifo))) { in ff_qsv_encode()
1635 while (q->async_fifo && av_fifo_size(q->async_fifo)) { in ff_qsv_enc_close()
Dcuviddec.c382 return (av_fifo_size(ctx->frame_queue) / sizeof(CuvidParsedFrame)) + delay >= ctx->nb_surfaces; in cuvid_is_buffer_full()
485 if (av_fifo_size(ctx->frame_queue)) { in cuvid_output_frame()
Ddecode.c166 if (av_fifo_size(avci->pkt_props) >= sizeof(*pkt)) { in extract_packet_props()
556 … IS_EMPTY(avci->last_pkt_props) && av_fifo_size(avci->pkt_props) >= sizeof(*avci->last_pkt_props)) in decode_receive_frame_internal()
/third_party/ffmpeg/libavformat/
Dmpegenc.c782 stuffing_size = payload_size - av_fifo_size(stream->fifo); in flush_packet()
820 if (payload_size < av_fifo_size(stream->fifo)) in flush_packet()
915 av_assert0(payload_size - stuffing_size <= av_fifo_size(stream->fifo)); in flush_packet()
1016 const int avail_data = av_fifo_size(stream->fifo); in output_packet()
1086 av_assert0(av_fifo_size(stream->fifo) > 0); in output_packet()
1106 av_assert0(av_fifo_size(stream->fifo) == trailer_size); in output_packet()
1210 ret = av_fifo_realloc2(stream->fifo, av_fifo_size(stream->fifo) + size); in mpeg_mux_write_packet()
1219 stream->bytes_to_iframe = av_fifo_size(stream->fifo); in mpeg_mux_write_packet()
1255 av_assert0(av_fifo_size(stream->fifo) == 0); in mpeg_mux_end()
Ddvenc.c272 if (av_fifo_size(c->audio_data[i]) + data_size >= 100*MAX_AUDIO_FRAME_SIZE) in dv_assemble_frame()
279 c->has_audio |= ((reqasize <= av_fifo_size(c->audio_data[i])) << i); in dv_assemble_frame()
294 c->has_audio |= ((reqasize <= av_fifo_size(c->audio_data[i])) << i); in dv_assemble_frame()
Dswfenc.c457 if (swf->audio_par && av_fifo_size(swf->audio_fifo)) { in swf_write_video()
458 int frame_size = av_fifo_size(swf->audio_fifo); in swf_write_video()
485 if (av_fifo_size(swf->audio_fifo) + size > AUDIO_FIFO_SIZE) { in swf_write_audio()
Dudp.c548 len = av_fifo_size(s->fifo); in circular_buffer_task_tx()
556 len = av_fifo_size(s->fifo); in circular_buffer_task_tx()
969 avail = av_fifo_size(s->fifo); in udp_read()
Dav1dec.c392 size = av_fifo_size(c->fifo); in obu_get_packet()
Dasync.c107 return av_fifo_size(ring->fifo) - ring->read_pos; in ring_size()
/third_party/ffmpeg/libavdevice/
Djack.c84 …if ((av_fifo_size(self->new_pkts) < sizeof(pkt)) || (av_fifo_space(self->filled_pkts) < sizeof(pkt… in process_callback()
215 while (av_fifo_size(*fifo)) { in free_pkt_fifo()
/third_party/ffmpeg/libavfilter/
Dvf_deshake_opencl.c159 while (av_fifo_size(afm->debug_matches) > 0) { in free_debug_matches()
1845 if (av_fifo_size(deshake_ctx->abs_motion.ringbuffers[RingbufX]) == 0) { in queue_frame()
1895 av_fifo_size(deshake_ctx->abs_motion.ringbuffers[RingbufX]) / sizeof(float) - 1; in queue_frame()
1940 av_fifo_size(deshake_ctx->abs_motion.ringbuffers[i]) - sizeof(float), in queue_frame()
/third_party/ffmpeg/fftools/
Dffmpeg.c531 while (av_fifo_size(ifilter->frame_queue)) { in ffmpeg_cleanup()
539 while (av_fifo_size(ist->sub2video.sub_queue)) { in ffmpeg_cleanup()
613 while (av_fifo_size(ost->muxing_queue)) { in ffmpeg_cleanup()
758 FFMIN(2 * av_fifo_size(ost->muxing_queue), in write_packet()
760 2 * av_fifo_size(ost->muxing_queue); in write_packet()
762 if (new_size <= av_fifo_size(ost->muxing_queue)) { in write_packet()
2220 … ret = av_fifo_realloc2(ifilter->frame_queue, 2 * av_fifo_size(ifilter->frame_queue)); in ifilter_send_frame()
2571 … ret = av_fifo_realloc2(ist->sub2video.sub_queue, 2 * av_fifo_size(ist->sub2video.sub_queue)); in transcode_subtitles()
3062 if (!av_fifo_size(ost->muxing_queue)) in check_init_output_file()
3065 while (av_fifo_size(ost->muxing_queue)) { in check_init_output_file()
Dffmpeg_filter.c1118 while (av_fifo_size(fg->inputs[i]->frame_queue)) { in configure_filtergraph()
1141 while (av_fifo_size(ist->sub2video.sub_queue)) { in configure_filtergraph()
Dffplay.c504 while (av_fifo_size(q->pkt_list) >= sizeof(pkt1)) { in packet_queue_flush()
556 if (av_fifo_size(q->pkt_list) >= sizeof(pkt1)) { in packet_queue_get()