Go to the documentation of this file.
33 #ifndef __ANX_GENERAL_H__
34 #define __ANX_GENERAL_H__
161 long anx_seek (
ANNODEX * annodex,
long packets,
int whence);
253 double start,
double end);
int anx_get_mode(ANNODEX *annodex)
Get the mode of an Annodex.
double anx_set_basetime(ANNODEX *annodex, double seconds)
Set the basetime of an annodex.
double anx_seek_time(ANNODEX *annodex, double seconds, int whence)
Seek to a time point in an annodex.
Definition: anx_types.h:73
double anx_get_bitrate(ANNODEX *annodex)
Query the bitrate of an annodex.
Definition: anx_types.h:87
AnxHead * anx_head_free(AnxHead *head)
Free an AnxHead structure.
int anx_clip_snprint(char *buf, int n, AnxClip *a, double start, double end)
Print an AnxAnchor structure to a memory buffer.
int anx_eos(ANNODEX *annodex)
Query if an annodex has reached its 'End Of Stream' markers.
AnxClip * anx_clip_clone(AnxClip *clip)
Clone an AnxClip structure.
anx_int64_t anx_tell(ANNODEX *annodex)
Query the current byte offset of an annodex.
AnxLinkElement * anx_link_element_clone(AnxLinkElement *link)
Clone an AnxLinkElement structure.
AnxHead * anx_head_clone(AnxHead *head)
Clone an AnxHead structure.
int anx_destroy(ANNODEX *annodex)
Forcefully close an annodex without flushing any file descriptors.
double anx_parse_time(const char *str)
Time parsing.
AnxClip * anx_clip_free(AnxClip *clip)
Free an AnxClip structure.
int anx_ready(ANNODEX *annodex)
Query if an annodex is ready.
void ANNODEX
An ANNODEX handle.
Definition: anx_types.h:55
int anx_seek_id(ANNODEX *annodex, const char *id)
Seek to an anchor identified by id.
ANNODEX * anx_open(char *filename, int mode)
Open a file containing Annodex media.
double anx_tell_time(ANNODEX *annodex)
Query the current offset of an annodex expressed as time in seconds.
Definition: anx_types.h:102
ANNODEX * anx_new(int mode)
Create a managed Annodex handle This is an alternative interface for non-file annodexes.
int64_t anx_int64_t
This typedef was determined on the system on which the documentation was generated.
Definition: anx_int64.h:93
double anx_set_presentation_time(ANNODEX *annodex, double seconds)
Set the presentation time of an annodex.
int anx_flush(ANNODEX *annodex)
Flush any unwritten data associated with an annodex.
double anx_get_duration(ANNODEX *annodex)
Query the duration of an annodex.
ANNODEX * anx_close(ANNODEX *annodex)
Close an annodex.
int anx_head_snprint(char *buf, int n, AnxHead *h)
Print an AnxHead structure to a memory buffer.
AnxHead * anx_get_head(ANNODEX *annodex)
Get a copy of the head element of an annodex.
const char * anx_strerror(ANNODEX *annodex)
Retrieve a printable error string corresponding to the most recent error on annodex.
AnxHead * anx_set_head(ANNODEX *annodex, AnxHead *head)
Set the head element of the Annodex.
double anx_get_presentation_time(ANNODEX *annodex)
Query the presentation time of an annodex.
ANNODEX * anx_open_stdio(FILE *file, int mode)
Attach to an existing file descriptor.
int anx_last_error(ANNODEX *annodex)
Retrieve the error code of the most recent error on an annodex.
double anx_get_basetime(ANNODEX *annodex)
Query the basetime of an annodex.
AnxMetaElement * anx_meta_element_clone(AnxMetaElement *meta)
Clone an AnxMetaElement structure.