Data Structures | |
struct | rte_context_info |
Typedefs | |
typedef rte_context | rte_context |
Functions | |
rte_context_info * | rte_context_info_enum (unsigned int index) |
rte_context_info * | rte_context_info_by_keyword (const char *keyword) |
rte_context_info * | rte_context_info_by_context (rte_context *context) |
rte_context * | rte_context_new (const char *keyword, void *user_data, char **errstr) |
void | rte_context_delete (rte_context *context) |
void * | rte_context_user_data (rte_context *context) |
typedef struct rte_context rte_context |
Opaque rte_context object. You can allocate an rte_context with rte_context_new().
rte_context_info* rte_context_info_enum | ( | unsigned int | index | ) |
index | Index into the context format table. |
Some codecs may depend on machine features such as SIMD instructions or the presence of certain libraries, thus the list can vary from session to session.
NULL
if the index is out of bounds. rte_context_info* rte_context_info_by_keyword | ( | const char * | keyword | ) |
keyword | Context format identifier as in rte_context_info and rte_context_new(). |
NULL
if the named context format has not been found. rte_context_info* rte_context_info_by_context | ( | rte_context * | context | ) |
context | Initialized rte_context as returned by rte_context_new(). |
NULL
if the context is NULL
. rte_context* rte_context_new | ( | const char * | keyword, | |
void * | user_data, | |||
char ** | errstr | |||
) |
keyword | Context format identifier as in rte_context_info. | |
user_data | Pointer stored in the context, can be retrieved with rte_context_user_data(). | |
errstr | If non-zero and the function fails, a pointer to an error description will be stored here. You must free() this string when no longer needed. |
rte_context_new ("keyword; quality=75.5, comment=\"example\"", NULL, NULL);
RTE is thread aware: Multiple threads can allocate contexts but sharing the same context between threads is not safe unless you implement your own mutual exclusion mechanism.
NULL
is returned when the named context format is unavailable, the option string or option values are incorrect or some other error occurred. See also rte_errstr(). void rte_context_delete | ( | rte_context * | context | ) |
context | Initialized rte_context previously allocated with rte_context_new(). |
void* rte_context_user_data | ( | rte_context * | context | ) |
context | Initialized rte_context as returned by rte_context_new(). |