Basic shared functions | |
const char * | th_version_string (void) |
Retrieves a human-readable string to identify the library vendor and version. | |
ogg_uint32_t | th_version_number (void) |
Retrieves the library version number. | |
ogg_int64_t | th_granule_frame (void *_encdec, ogg_int64_t _granpos) |
Converts a granule position to an absolute frame index, starting at 0 . | |
double | th_granule_time (void *_encdec, ogg_int64_t _granpos) |
Converts a granule position to an absolute time in seconds. | |
int | th_packet_isheader (ogg_packet *_op) |
Determines whether a Theora packet is a header or not. | |
int | th_packet_iskeyframe (ogg_packet *_op) |
Determines whether a theora packet is a key frame or not. | |
Functions for manipulating header data | |
void | th_info_init (th_info *_info) |
Initializes a th_info structure. | |
void | th_info_clear (th_info *_info) |
Clears a th_info structure. | |
void | th_comment_init (th_comment *_tc) |
Initialize a th_comment structure. | |
void | th_comment_add (th_comment *_tc, char *_comment) |
Add a comment to an initialized th_comment structure. | |
void | th_comment_add_tag (th_comment *_tc, char *_tag, char *_val) |
Add a comment to an initialized th_comment structure. | |
char * | th_comment_query (th_comment *_tc, char *_tag, int _count) |
Look up a comment value by its tag. | |
int | th_comment_query_count (th_comment *_tc, char *_tag) |
Look up the number of instances of a tag. | |
void | th_comment_clear (th_comment *_tc) |
Clears a th_comment structure. |
|
Add a comment to an initialized th_comment structure.
|
|
Add a comment to an initialized th_comment structure.
|
|
Clears a th_comment structure. This should be called on a th_comment structure after it is no longer needed. It will free all memory used by the structure members.
|
|
Initialize a th_comment structure. This should be called on a freshly allocated th_comment structure before attempting to use it.
|
|
Look up a comment value by its tag.
|
|
Look up the number of instances of a tag. Call this first when querying for a specific tag and then iterate over the number of instances with separate calls to th_comment_query() to retrieve all the values for that tag in order.
|
|
Converts a granule position to an absolute frame index, starting at The granule position is interpreted in the context of a given th_enc_ctx or th_dec_ctx handle (either will suffice).
|
|
Converts a granule position to an absolute time in seconds. The granule position is interpreted in the context of a given th_enc_ctx or th_dec_ctx handle (either will suffice).
|
|
Clears a th_info structure. This should be called on a th_info structure after it is no longer needed.
|
|
Initializes a th_info structure. This should be called on a freshly allocated th_info structure before attempting to use it.
|
|
Determines whether a Theora packet is a header or not. This function does no verification beyond checking the packet type bit, so it should not be used for bitstream identification; use th_decode_headerin() for that. As per the Theora specification, an empty (0-byte) packet is treated as a data packet (a delta frame with no coded blocks).
|
|
Determines whether a theora packet is a key frame or not. This function does no verification beyond checking the packet type and key frame bits, so it should not be used for bitstream identification; use th_decode_headerin() for that. As per the Theora specification, an empty (0-byte) packet is treated as a delta frame (with no coded blocks).
|
|
Retrieves the library version number. This is the highest bitstream version that the encoder library will produce, or that the decoder library can decode. This number is composed of a 16-bit major version, 8-bit minor version and 8 bit sub-version, composed as follows: (VERSION_MAJOR<<16)+(VERSION_MINOR<<8)+(VERSION_SUBMINOR)
|
|
Retrieves a human-readable string to identify the library vendor and version.
|