|
libannodex 0.7.3
|
General functions related to Annodex media. More...
#include <annodex/anx_types.h>Go to the source code of this file.
Functions | |
| double | anx_parse_time (const char *str) |
| Time parsing. | |
| int | anx_last_error (ANNODEX *annodex) |
| Retrieve the error code of the most recent error on an annodex. | |
| const char * | anx_strerror (ANNODEX *annodex) |
| Retrieve a printable error string corresponding to the most recent error on annodex. | |
| int | anx_get_mode (ANNODEX *annodex) |
| Get the mode of an Annodex. | |
| ANNODEX * | anx_open (char *filename, int mode) |
| Open a file containing Annodex media. | |
| ANNODEX * | anx_open_stdio (FILE *file, int mode) |
| Attach to an existing file descriptor. | |
| ANNODEX * | anx_new (int mode) |
| Create a managed Annodex handle This is an alternative interface for non-file annodexes. | |
| int | anx_flush (ANNODEX *annodex) |
| Flush any unwritten data associated with an annodex. | |
| ANNODEX * | anx_close (ANNODEX *annodex) |
| Close an annodex. | |
| int | anx_destroy (ANNODEX *annodex) |
| Forcefully close an annodex without flushing any file descriptors. | |
| int | anx_ready (ANNODEX *annodex) |
| Query if an annodex is ready. | |
| int | anx_eos (ANNODEX *annodex) |
| Query if an annodex has reached its 'End Of Stream' markers. | |
| AnxHead * | anx_set_head (ANNODEX *annodex, AnxHead *head) |
| Set the head element of the Annodex. | |
| AnxHead * | anx_get_head (ANNODEX *annodex) |
| Get a copy of the head element of an annodex. | |
| anx_int64_t | anx_tell (ANNODEX *annodex) |
| Query the current byte offset of an annodex. | |
| int | anx_seek_id (ANNODEX *annodex, const char *id) |
| Seek to an anchor identified by id. | |
| double | anx_get_presentation_time (ANNODEX *annodex) |
| Query the presentation time of an annodex. | |
| double | anx_set_presentation_time (ANNODEX *annodex, double seconds) |
| Set the presentation time of an annodex. | |
| double | anx_get_basetime (ANNODEX *annodex) |
| Query the basetime of an annodex. | |
| double | anx_set_basetime (ANNODEX *annodex, double seconds) |
| Set the basetime of an annodex. | |
| double | anx_get_bitrate (ANNODEX *annodex) |
| Query the bitrate of an annodex. | |
| double | anx_get_duration (ANNODEX *annodex) |
| Query the duration of an annodex. | |
| double | anx_tell_time (ANNODEX *annodex) |
| Query the current offset of an annodex expressed as time in seconds. | |
| double | anx_seek_time (ANNODEX *annodex, double seconds, int whence) |
| Seek to a time point in an annodex. | |
| int | anx_head_snprint (char *buf, int n, AnxHead *h) |
| Print an AnxHead structure to a memory buffer. | |
| int | anx_clip_snprint (char *buf, int n, AnxClip *a, double start, double end) |
| Print an AnxAnchor structure to a memory buffer. | |
| AnxHead * | anx_head_free (AnxHead *head) |
| Free an AnxHead structure. | |
| AnxClip * | anx_clip_free (AnxClip *clip) |
| Free an AnxClip structure. | |
| AnxHead * | anx_head_clone (AnxHead *head) |
| Clone an AnxHead structure. | |
| AnxClip * | anx_clip_clone (AnxClip *clip) |
| Clone an AnxClip structure. | |
| AnxMetaElement * | anx_meta_element_clone (AnxMetaElement *meta) |
| Clone an AnxMetaElement structure. | |
| AnxLinkElement * | anx_link_element_clone (AnxLinkElement *link) |
| Clone an AnxLinkElement structure. | |
General functions related to Annodex media.
Clone an AnxClip structure.
| clip | the clip to clone |
Free an AnxClip structure.
| clip | the structure to free |
| int anx_clip_snprint | ( | char * | buf, |
| int | n, | ||
| AnxClip * | a, | ||
| double | start, | ||
| double | end ) |
Print an AnxAnchor structure to a memory buffer.
The head is serialized to XML conformant with the anxa DTD.
| buf | a buffer to print into |
| n | the maximum number of characters to print |
| a | the anchor to print |
| start | the value of the 'start' attribute, as a time in seconds. If start is negative, the 'start' attribute is not printed. |
Close an annodex.
| annodex | an ANNODEX* handle |
| int anx_destroy | ( | ANNODEX * | annodex | ) |
Forcefully close an annodex without flushing any file descriptors.
| annodex | an ANNODEX* handle |
| int anx_eos | ( | ANNODEX * | annodex | ) |
Query if an annodex has reached its 'End Of Stream' markers.
| annodex | an ANNODEX* handle |
| int anx_flush | ( | ANNODEX * | annodex | ) |
Flush any unwritten data associated with an annodex.
| annodex | An ANNODEX* handle |
| double anx_get_basetime | ( | ANNODEX * | annodex | ) |
Query the basetime of an annodex.
| annodex | an ANNODEX* handle |
| double anx_get_bitrate | ( | ANNODEX * | annodex | ) |
Query the bitrate of an annodex.
| annodex | an ANNODEX* handle |
| -1.0 | Unknown |
| double anx_get_duration | ( | ANNODEX * | annodex | ) |
Query the duration of an annodex.
| annodex | an ANNODEX* handle |
Get a copy of the head element of an annodex.
| annodex | an ANNODEX* handle |
| int anx_get_mode | ( | ANNODEX * | annodex | ) |
Get the mode of an Annodex.
| annodex | an ANNODEX* handle |
| ANX_READ | annodex is a reader |
| ANX_WRITE | annodex is a writer |
| ANX_ERR_INVALID | annodex is invalid |
| double anx_get_presentation_time | ( | ANNODEX * | annodex | ) |
Query the presentation time of an annodex.
| annodex | an ANNODEX* handle |
Clone an AnxHead structure.
| head | the head to clone |
Free an AnxHead structure.
| head | the structure to free |
| int anx_head_snprint | ( | char * | buf, |
| int | n, | ||
| AnxHead * | h ) |
Print an AnxHead structure to a memory buffer.
The head is serialized to XML conformant with the anxhead DTD.
| buf | a buffer to print into |
| n | the maximum number of characters to print |
| h | the head to print |
| int anx_last_error | ( | ANNODEX * | annodex | ) |
Retrieve the error code of the most recent error on an annodex.
| annodex | an ANNODEX* handle |
| AnxLinkElement * anx_link_element_clone | ( | AnxLinkElement * | link | ) |
Clone an AnxLinkElement structure.
| link | the link tag structure to clone |
| AnxMetaElement * anx_meta_element_clone | ( | AnxMetaElement * | meta | ) |
Clone an AnxMetaElement structure.
| meta | the meta tag structure to clone |
| ANNODEX * anx_new | ( | int | mode | ) |
Create a managed Annodex handle This is an alternative interface for non-file annodexes.
| mode | ANX_READ or ANX_WRITE |
| ANNODEX * anx_open | ( | char * | filename, |
| int | mode ) |
Open a file containing Annodex media.
| filename | path to the file |
| mode | ANX_READ or ANX_WRITE |
| ANNODEX * anx_open_stdio | ( | FILE * | file, |
| int | mode ) |
Attach to an existing file descriptor.
| fd | an open file descriptor |
| mode | ANX_READ or ANX_WRITE |
| int anx_ready | ( | ANNODEX * | annodex | ) |
Query if an annodex is ready.
| annodex | an ANNODEX* handle |
| int anx_seek_id | ( | ANNODEX * | annodex, |
| const char * | id ) |
Seek to an anchor identified by id.
| annodex | an ANNODEX* handle |
| id | The id of the anchor to seek to |
| double anx_seek_time | ( | ANNODEX * | annodex, |
| double | seconds, | ||
| int | whence ) |
Seek to a time point in an annodex.
| annodex | an ANNODEX* handle |
| seconds | the time to seek to |
| whence | whence parameter (defined in anx_constants.h) |
| double anx_set_basetime | ( | ANNODEX * | annodex, |
| double | seconds ) |
Set the basetime of an annodex.
| annodex | an ANNODEX* handle |
| seconds | the new basetime |
Set the head element of the Annodex.
| annodex | an ANNODEX* handle |
| head | a complete AnxHead structure to set |
| double anx_set_presentation_time | ( | ANNODEX * | annodex, |
| double | seconds ) |
Set the presentation time of an annodex.
| annodex | an ANNODEX* handle |
| seconds | the new presentation time |
| const char * anx_strerror | ( | ANNODEX * | annodex | ) |
Retrieve a printable error string corresponding to the most recent error on annodex.
| annodex | an ANNODEX* handle |
| anx_int64_t anx_tell | ( | ANNODEX * | annodex | ) |
Query the current byte offset of an annodex.
| annodex | an ANNODEX* handle |
| double anx_tell_time | ( | ANNODEX * | annodex | ) |
Query the current offset of an annodex expressed as time in seconds.
| annodex | an ANNODEX* handle |