FFmpeg
Data Fields
FFFrameQueue Struct Reference

Queue of AVFrame pointers. More...

#include <framequeue.h>

Data Fields

FFFrameQueueGlobalglobal
 Pointer to the global frame queue struct holding statistics and limits. More...
 
FFFrameBucketqueue
 Array of allocated buckets, used as a circular buffer. More...
 
size_t allocated
 Size of the array of buckets. More...
 
size_t tail
 Tail of the queue. More...
 
size_t queued
 Number of currently queued frames. More...
 
FFFrameBucket first_bucket
 Pre-allocated bucket for queues of size 1. More...
 
uint64_t total_frames_head
 Total number of frames entered in the queue. More...
 
uint64_t total_frames_tail
 Total number of frames dequeued from the queue. More...
 
uint64_t total_samples_head
 Total number of samples entered in the queue. More...
 
uint64_t total_samples_tail
 Total number of samples dequeued from the queue. More...
 
int samples_skipped
 Indicate that samples are skipped. More...
 

Detailed Description

Queue of AVFrame pointers.

Definition at line 60 of file framequeue.h.

Field Documentation

◆ global

FFFrameQueueGlobal* FFFrameQueue::global

Pointer to the global frame queue struct holding statistics and limits.

Definition at line 65 of file framequeue.h.

Referenced by ff_framequeue_add(), ff_framequeue_init(), and ff_framequeue_take().

◆ queue

FFFrameBucket* FFFrameQueue::queue

Array of allocated buckets, used as a circular buffer.

Definition at line 70 of file framequeue.h.

Referenced by bucket(), ff_framequeue_add(), ff_framequeue_free(), and ff_framequeue_init().

◆ allocated

size_t FFFrameQueue::allocated

Size of the array of buckets.

Definition at line 75 of file framequeue.h.

Referenced by bucket(), ff_framequeue_add(), ff_framequeue_init(), and ff_framequeue_take().

◆ tail

size_t FFFrameQueue::tail

Tail of the queue.

It is the index in the array of the next frame to take.

Definition at line 81 of file framequeue.h.

Referenced by bucket(), ff_framequeue_add(), and ff_framequeue_take().

◆ queued

size_t FFFrameQueue::queued

◆ first_bucket

FFFrameBucket FFFrameQueue::first_bucket

Pre-allocated bucket for queues of size 1.

Definition at line 91 of file framequeue.h.

Referenced by ff_framequeue_free(), and ff_framequeue_init().

◆ total_frames_head

uint64_t FFFrameQueue::total_frames_head

Total number of frames entered in the queue.

Definition at line 96 of file framequeue.h.

Referenced by check_consistency(), and ff_framequeue_add().

◆ total_frames_tail

uint64_t FFFrameQueue::total_frames_tail

Total number of frames dequeued from the queue.

queued = total_frames_head - total_frames_tail

Definition at line 102 of file framequeue.h.

Referenced by check_consistency(), and ff_framequeue_take().

◆ total_samples_head

uint64_t FFFrameQueue::total_samples_head

Total number of samples entered in the queue.

Definition at line 107 of file framequeue.h.

Referenced by check_consistency(), ff_framequeue_add(), and ff_framequeue_queued_samples().

◆ total_samples_tail

uint64_t FFFrameQueue::total_samples_tail

Total number of samples dequeued from the queue.

queued_samples = total_samples_head - total_samples_tail

Definition at line 113 of file framequeue.h.

Referenced by check_consistency(), ff_framequeue_queued_samples(), ff_framequeue_skip_samples(), and ff_framequeue_take().

◆ samples_skipped

int FFFrameQueue::samples_skipped

Indicate that samples are skipped.

Definition at line 118 of file framequeue.h.

Referenced by ff_framequeue_skip_samples(), ff_framequeue_take(), ff_inlink_consume_frame(), and take_samples().


The documentation for this struct was generated from the following file: