Go to the documentation of this file.
33 #ifndef __ANX_WRITE_H__
34 #define __ANX_WRITE_H__
91 char *
id,
char * content_type,
92 double seek_offset,
double seek_end,
int flags);
102 AnxImportHead import_head_callback,
103 AnxImportClip import_clip_callback,
104 AnxImportCMML import_cmml_callback,
124 AnxImportImport import_import_callback,
153 const char * cmml,
long n);
164 double anx_writer_get_end (
ANNODEX * annodex);
165 int anx_writer_set_end (
ANNODEX * annodex,
double end_time);
185 int anx_request_header (
ANNODEX * annodex);
186 int anx_request_media_sync (
ANNODEX * annodex);
188 #ifdef _UNIMPLEMENTED_
192 typedef struct _AnxSchedule AnxSchedule;
193 typedef struct _AnxImport AnxImport;
195 typedef enum _AnxSchedType {
206 struct _AnxSchedule {
216 anx_schedule_query (
ANNODEX * annodex,
double at_time, AnxSchedType type);
219 anx_schedule_remove (
ANNODEX * annodex,
double at_time, AnxSchedType type);
222 anx_schedule_first (
ANNODEX * annodex);
225 anx_schedule_next (
ANNODEX * annodex, AnxSchedule * schedule);
228 anx_schedule_prev (
ANNODEX * annodex, AnxSchedule * schedule);
int anx_write_set_ii_callback(ANNODEX *annodex, AnxImportImport import_import_callback, void *user_data)
Override the Import Import callback, used when an importer wishes to initiate further importing.
void ANNODEX
An ANNODEX handle.
Definition: anx_types.h:55
int anx_write_import(ANNODEX *annodex, char *filename, char *id, char *content_type, double seek_offset, double seek_end, int flags)
Import a file into the current ANNODEX* writer.
int anx_insert_cmml(ANNODEX *annodex, double at_time, const char *cmml, long n)
Insert a CMML element into an ANNODEX* writer.
Definition: anx_types.h:102
int anx_write_set_anno_callbacks(ANNODEX *annodex, AnxImportHead import_head_callback, AnxImportClip import_clip_callback, AnxImportCMML import_cmml_callback, void *user_data)
Override the callbacks that importers should call when they wish to handle annotation elements.
double anx_get_clip_time_by_id(ANNODEX *annodex, const char *id)
Query the onset time of a clip.
long anx_write(ANNODEX *annodex, long n)
Write to an annodex opened with anx_open() or anx_open_stdio().
void * anx_write_get_ii_user_data(ANNODEX *annodex)
Retrieve the user_data associated with attached recursive import callbacks.
int anx_insert_clip(ANNODEX *annodex, double at_time, AnxClip *clip)
Insert a clip into an ANNODEX* writer.
long anx_write_output(ANNODEX *annodex, unsigned char *buf, long n)
Output data from an annodex into a memory buffer.
long anx_write_get_next_page_size(ANNODEX *annodex)
Query the size of the next page to be written.
void anx_init_importers(char *content_type_pattern)
Initialise system importers matching a given content type pattern.
void * anx_write_get_anno_user_data(ANNODEX *annodex)
Retrieve the user_data associated with attached annotation import callbacks.