33 #ifndef __ANX_READ_H__ 34 #define __ANX_READ_H__ 73 char * utc,
void * user_data);
95 char * id,
char * content_type,
98 int nr_header_packets,
void * anx_get_read_raw_user_data(ANNODEX *annodex)
Retrieve the user_data associated with an attached AnxReadRaw callback.
void * anx_get_read_stream_user_data(ANNODEX *annodex)
Retrieve the user_data associated with an attached AnxReadStream callback.
void * anx_get_read_track_user_data(ANNODEX *annodex)
Retrieve the user_data associated with an attached AnxReadTrack callback.
Definition: anx_types.h:102
int anx_set_read_clip_callback(ANNODEX *annodex, AnxReadClip read_clip, void *user_data)
Set the function to call each time a clip is parsed.
int64_t anx_int64_t
This typedef was determined on the system on which the documentation was generated.
Definition: anx_int64.h:93
int anx_set_read_stream_callback(ANNODEX *annodex, AnxReadStream read_stream, void *user_data)
Set the function to call each time an 'Annodex' stream header is parsed.
int(* AnxReadClip)(ANNODEX *annodex, const AnxClip *clip, void *user_data)
Signature for a callback called each time a clip element is parsed.
Definition: anx_read.h:129
long anx_read_input(ANNODEX *annodex, unsigned char *buf, long n)
Input data from a memory buffer into an annodex.
int(* AnxReadHead)(ANNODEX *annodex, const AnxHead *head, void *user_data)
Signature for a callback called when the head element is parsed.
Definition: anx_read.h:113
Public structures and datatypes.
int anx_set_read_raw_callback(ANNODEX *annodex, AnxReadRaw read_raw, void *user_data)
Set the function to call each time a raw data packet is read.
int(* AnxReadTrack)(ANNODEX *annodex, long serialno, char *id, char *content_type, anx_int64_t granule_rate_n, anx_int64_t granule_rate_d, int nr_header_packets, void *user_data)
Signature for a callback called each time an 'AnxData' track header is parsed.
Definition: anx_read.h:94
void ANNODEX
An ANNODEX handle.
Definition: anx_types.h:55
void * anx_get_read_clip_user_data(ANNODEX *annodex)
Retrieve the user_data associated with an attached AnxReadClip callback.
int(* AnxReadStream)(ANNODEX *annodex, double timebase, char *utc, void *user_data)
Signature for a callback called when the 'Annodex' stream header is parsed.
Definition: anx_read.h:72
int(* AnxReadRaw)(ANNODEX *annodex, unsigned char *data, long n, long serialno, anx_int64_t granulepos, void *user_data)
Signature for a callback called each time a raw data packet is found.
Definition: anx_read.h:148
int anx_set_read_track_callback(ANNODEX *annodex, AnxReadTrack read_track, void *user_data)
Set the function to call each time an 'AnxData' track header is parsed.
Definition: anx_types.h:87
long anx_read(ANNODEX *annodex, long n)
Read from an annodex opened with anx_open() or anx_open_stdio().
void * anx_get_read_head_user_data(ANNODEX *annodex)
Retrieve the user_data associated with an attached AnxReadHead callback.
int anx_set_read_head_callback(ANNODEX *annodex, AnxReadHead read_head, void *user_data)
Set the function to call when the head element is read.