FFmpeg
|
#include <stddef.h>
Go to the source code of this file.
Functions | |
Queue * | ff_queue_create (void) |
Create a Queue instance. More... | |
void | ff_queue_destroy (Queue *q) |
Destroy the Queue instance. More... | |
size_t | ff_queue_size (Queue *q) |
Return the length of the Queue. More... | |
void * | ff_queue_peek_front (Queue *q) |
Return a pointer to the data at the head of the queue. More... | |
void * | ff_queue_peek_back (Queue *q) |
Return a pointer to the data at the tail of the queue. More... | |
int | ff_queue_push_front (Queue *q, void *v) |
Add data to the head of the queue. More... | |
int | ff_queue_push_back (Queue *q, void *v) |
Add data to the tail of the queue. More... | |
void * | ff_queue_pop_front (Queue *q) |
Remove and free first element from the Queue. More... | |
void * | ff_queue_pop_back (Queue *q) |
Remove and free last element from the Queue. More... | |
Queue* ff_queue_create | ( | void | ) |
Create a Queue instance.
It initializes the length of the Queue as 0.
NULL | if allocation fails |
Definition at line 47 of file queue.c.
Referenced by dnn_load_model_tf(), dnn_load_model_th(), ff_safe_queue_create(), and init_model_ov().
void ff_queue_destroy | ( | Queue * | q | ) |
Destroy the Queue instance.
It also frees all elements of the Queue.
Definition at line 72 of file queue.c.
Referenced by dnn_free_model_ov(), dnn_free_model_tf(), dnn_free_model_th(), and ff_safe_queue_destroy().
size_t ff_queue_size | ( | Queue * | q | ) |
Return the length of the Queue.
Definition at line 88 of file queue.c.
Referenced by dnn_flush_tf(), dnn_flush_th(), dnn_free_model_ov(), dnn_free_model_tf(), dnn_free_model_th(), execute_model_ov(), execute_model_tf(), execute_model_th(), ff_safe_queue_pop_front(), ff_safe_queue_size(), and get_output_ov().
void* ff_queue_peek_front | ( | Queue * | q | ) |
Return a pointer to the data at the head of the queue.
NULL | if null pointer was passed or queue is empty |
Definition at line 93 of file queue.c.
Referenced by execute_model_ov(), execute_model_tf(), execute_model_th(), ff_dnn_get_result_common(), and fill_model_input_ov().
void* ff_queue_peek_back | ( | Queue * | q | ) |
int ff_queue_push_front | ( | Queue * | q, |
void * | v | ||
) |
Add data to the head of the queue.
It increases the length of Queue by one.
q | pointer to the Queue. |
v | data to be added |
0 | if the pointer to queue is NULL |
-1 | if new entry cannot be created |
Definition at line 109 of file queue.c.
Referenced by ff_safe_queue_push_front().
int ff_queue_push_back | ( | Queue * | q, |
void * | v | ||
) |
Add data to the tail of the queue.
It increases the length of Queue by one.
q | pointer to the Queue |
v | data to be added |
0 | if the pointer to queue is NULL |
-1 | if new entry cannot be created |
Definition at line 130 of file queue.c.
Referenced by dnn_execute_model_tf(), dnn_execute_model_th(), extract_lltask_from_task(), ff_safe_queue_push_back(), and get_output_ov().
void* ff_queue_pop_front | ( | Queue * | q | ) |
Remove and free first element from the Queue.
It shrinks the length of Queue by one.
q | pointer to the Queue. |
Definition at line 151 of file queue.c.
Referenced by dnn_free_model_ov(), dnn_free_model_tf(), dnn_free_model_th(), ff_dnn_get_result_common(), ff_safe_queue_pop_front(), fill_model_input_ov(), fill_model_input_tf(), and fill_model_input_th().