libannodex
0.7.3
|
#include <annodex/anx_types.h>
Go to the source code of this file.
Functions | |
void | anx_init_importers (char *content_type_pattern) |
Initialise system importers matching a given content type pattern. More... | |
long | anx_write_get_next_page_size (ANNODEX *annodex) |
Query the size of the next page to be written. More... | |
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. More... | |
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. More... | |
void * | anx_write_get_anno_user_data (ANNODEX *annodex) |
Retrieve the user_data associated with attached annotation import callbacks. More... | |
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. More... | |
void * | anx_write_get_ii_user_data (ANNODEX *annodex) |
Retrieve the user_data associated with attached recursive import callbacks. More... | |
int | anx_insert_clip (ANNODEX *annodex, double at_time, AnxClip *clip) |
Insert a clip into an ANNODEX* writer. More... | |
int | anx_insert_cmml (ANNODEX *annodex, double at_time, const char *cmml, long n) |
Insert a CMML element into an ANNODEX* writer. More... | |
double | anx_get_clip_time_by_id (ANNODEX *annodex, const char *id) |
Query the onset time of a clip. More... | |
double | anx_writer_get_end (ANNODEX *annodex) |
int | anx_writer_set_end (ANNODEX *annodex, double end_time) |
long | anx_write (ANNODEX *annodex, long n) |
Write to an annodex opened with anx_open() or anx_open_stdio(). More... | |
long | anx_write_output (ANNODEX *annodex, unsigned char *buf, long n) |
Output data from an annodex into a memory buffer. More... | |
int | anx_request_header (ANNODEX *annodex) |
int | anx_request_media_sync (ANNODEX *annodex) |
Writer specific functions
double anx_get_clip_time_by_id | ( | ANNODEX * | annodex, |
const char * | id | ||
) |
Query the onset time of a clip.
annodex | An ANNNODEX* writer |
id | The id of the clip |
-1.0 | Not found |
void anx_init_importers | ( | char * | content_type_pattern | ) |
Initialise system importers matching a given content type pattern.
content_type_pattern | A content type or range of content types |
Insert a clip into an ANNODEX* writer.
annodex | An ANNODEX* writer |
at_time | Time in seconds to schedule the clip |
clip | a clip |
int anx_insert_cmml | ( | ANNODEX * | annodex, |
double | at_time, | ||
const char * | cmml, | ||
long | n | ||
) |
Insert a CMML element into an ANNODEX* writer.
annodex | An ANNODEX* writer |
at_time | Time in seconds to schedule the clip |
cmml | cmml |
n | An upper bound on the number of characters to read |
long anx_write | ( | ANNODEX * | annodex, |
long | n | ||
) |
Write to an annodex opened with anx_open() or anx_open_stdio().
annodex | An ANNODEX* writer |
n | count of bytes to write |
void* anx_write_get_anno_user_data | ( | ANNODEX * | annodex | ) |
Retrieve the user_data associated with attached annotation import callbacks.
annodex | an ANNODEX* handle |
void* anx_write_get_ii_user_data | ( | ANNODEX * | annodex | ) |
Retrieve the user_data associated with attached recursive import callbacks.
annodex | an ANNODEX* handle |
long anx_write_get_next_page_size | ( | ANNODEX * | annodex | ) |
Query the size of the next page to be written.
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.
annodex | An ANNODEX* writer |
filename | the file to import |
id | the id of the file |
content_type | the content-type of the whole import file. |
seek_offset | a time in seconds to begin importing data from |
seek_end | a time in seconds to finish importing data |
flags | writer import flags (RECURSIVE etc.) |
long anx_write_output | ( | ANNODEX * | annodex, |
unsigned char * | buf, | ||
long | n | ||
) |
Output data from an annodex into a memory buffer.
Usually the annodex would have been created with anx_new().
annodex | an ANNODEX* writer |
buf | a memory buffer of size at least n bytes in which to output |
n | a count of bytes to output |
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.
The default head callback overwrites the head and the default clip callback inserts an clip into the scheduling of the ANNODEX* writer.
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.
annodex | An ANNODEX* writer |
import_import_callbcak | The new Import Import callback |
user_data | User-defined data to pass to the callback |