FFmpeg
Data Fields
FFFrameQueue Struct Reference

Queue of AVFrame pointers. More...

#include <framequeue.h>

Data Fields

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 53 of file framequeue.h.

Field Documentation

◆ queue

FFFrameBucket* FFFrameQueue::queue

Array of allocated buckets, used as a circular buffer.

Definition at line 58 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 63 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 69 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 79 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 84 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 90 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 95 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 101 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 106 of file framequeue.h.

Referenced by ff_framequeue_skip_samples(), and ff_framequeue_take().


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