ffmpeg.libavutil.tree

@file A tree container. @author Michael Niedermayer <michaelni@gmx.at>

Members

Functions

av_tree_destroy
void av_tree_destroy(AVTreeNode* t)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_tree_enumerate
void av_tree_enumerate(AVTreeNode* t, void* opaque, int function(void* opaque, void* elem) cmp, int function(void* opaque, void* elem) enu)

Apply enu(opaque, &elem) to all the elements in the tree in a given range.

av_tree_find
void* av_tree_find(const(AVTreeNode)* root, void* key, int function(const(void)* key, const(void)* b) cmp, void*[2] next)

Find an element. @param root a pointer to the root node of the tree @param next If next is not NULL, then next[0] will contain the previous element and next[1] the next element. If either does not exist, then the corresponding entry in next is unchanged. @param cmp compare function used to compare elements in the tree, API identical to that of Standard C's qsort It is guaranteed that the first and only the first argument to cmp() will be the key parameter to av_tree_find(), thus it could if the user wants, be a different type (like an opaque context). @return An element with cmp(key, elem) == 0 or NULL if no such element exists in the tree.

av_tree_insert
void* av_tree_insert(AVTreeNode** rootp, void* key, int function(const(void)* key, const(void)* b) cmp, AVTreeNode** next)

Insert or remove an element.

av_tree_node_alloc
AVTreeNode* av_tree_node_alloc()

Allocate an AVTreeNode.

Static variables

av_tree_node_size
int av_tree_node_size;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

AVTreeNode
struct AVTreeNode

@addtogroup lavu_tree AVTree @ingroup lavu_data

Meta