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 ff_dnn_load_model_native(), ff_dnn_load_model_tf(), 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 ff_dnn_free_model_native(), ff_dnn_free_model_ov(), ff_dnn_free_model_tf(), 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 execute_model_ov(), execute_model_tf(), ff_dnn_execute_model_ov(), ff_dnn_flush_native(), ff_dnn_flush_ov(), ff_dnn_flush_tf(), ff_dnn_free_model_native(), ff_dnn_free_model_ov(), ff_dnn_free_model_tf(), ff_safe_queue_pop_front(), and ff_safe_queue_size().
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(), ff_dnn_get_result_common(), and fill_model_input_ov().
void* ff_queue_peek_back | ( | Queue * | q | ) |
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().
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 extract_lltask_from_task(), ff_dnn_execute_model_native(), ff_dnn_execute_model_ov(), ff_dnn_execute_model_tf(), and ff_safe_queue_push_back().
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 execute_model_native(), ff_dnn_free_model_native(), ff_dnn_free_model_ov(), ff_dnn_free_model_tf(), ff_dnn_get_result_common(), ff_safe_queue_pop_front(), fill_model_input_ov(), and fill_model_input_tf().