106 return q->
tail->prev->value;
140 original_prev = q->
tail->prev;
161 new_head_next = front->
next;
181 back = q->
tail->prev;
182 new_tail_prev = back->
prev;
185 q->
tail->prev = new_tail_prev;
static double val(void *priv, double ch)
Memory handling functions.
void ff_queue_destroy(Queue *q)
Destroy the Queue instance.
int ff_queue_push_front(Queue *q, void *v)
Add data to the head of the queue.
void * ff_queue_peek_back(Queue *q)
Return a pointer to the data at the tail of the queue.
void * ff_queue_pop_front(Queue *q)
Remove and free first element from the Queue.
int ff_queue_push_back(Queue *q, void *v)
Add data to the tail of the queue.
void * ff_queue_peek_front(Queue *q)
Return a pointer to the data at the head of the queue.
static QueueEntry * create_entry(void *val)
void * ff_queue_pop_back(Queue *q)
Remove and free last element from the Queue.
size_t ff_queue_size(Queue *q)
Return the length of the Queue.
Queue * ff_queue_create(void)
Create a Queue instance.
Linear double-ended data structure.
static AVFrameSideData * new_entry(Set *s, enum AVFrameSideDataType type, const void *payload, size_t size, int marker)