00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00037 #ifndef __ANX_TYPES_H__
00038 #define __ANX_TYPES_H__
00039
00040 #include <stdio.h>
00041 #include <annodex/anx_list.h>
00042
00043
00044
00045 #if defined(_WIN32) && !defined(__GNUC__)
00046 # include <annodex/anx_int64_w32.h>
00047 #else
00048 # include <annodex/anx_int64.h>
00049 #endif
00050
00051 #ifndef _ANX_PRIVATE
00052
00055 typedef void ANNODEX;
00056 #endif
00057
00058
00059 typedef struct _AnxHead AnxHead;
00060 typedef struct _AnxClip AnxClip;
00061 typedef struct _AnxMetaElement AnxMetaElement;
00062
00063 struct _AnxMetaElement {
00064 const char *id;
00065 const char *lang;
00066 const char *dir;
00067 const char *name;
00068 const char *content;
00069 const char *scheme;
00070 };
00071
00072 struct _AnxHead {
00073 const char *head_id;
00074 const char *lang;
00075 const char *dir;
00076 const char *profile;
00077 const char *title;
00078 const char *title_id;
00079 const char *title_lang;
00080 const char *title_dir;
00081 const char *base_id;
00082 const char *base_href;
00083 AnxList * meta;
00084 };
00085
00086 struct _AnxClip {
00087 const char *clip_id;
00088 const char *lang;
00089 const char *dir;
00090 const char *track;
00091 const char *anchor_id;
00092 const char *anchor_lang;
00093 const char *anchor_dir;
00094 const char *anchor_class;
00095 const char *anchor_href;
00096 const char *anchor_text;
00097 const char *img_id;
00098 const char *img_lang;
00099 const char *img_dir;
00100 const char *img_src;
00101 const char *img_alt;
00102 const char *desc_id;
00103 const char *desc_lang;
00104 const char *desc_dir;
00105 const char *desc_text;
00106 AnxList * meta;
00107 };
00108
00109
00110
00111 typedef int (*AnxImportStream) (double presentation_time, double basetime,
00112 char * utc, void * user_data);
00113 typedef int (*AnxImportHead) (AnxHead * head, void * user_data);
00114 typedef int (*AnxImportClip) (AnxClip * clip,
00115 double time_offset, void * user_data);
00116 typedef int (*AnxImportCMML) (const char * cmml, long n,
00117 double time_offset, void * user_data);
00118
00119 typedef int (*AnxImportImport) (double start_time, char * filename,
00120 char * id, char * content_type,
00121 double seek_offset, double seek_end,
00122 void * user_data);
00123
00124 typedef struct _AnxImportCallbacks AnxImportCallbacks;
00125
00126 struct _AnxImportCallbacks {
00127 AnxImportStream import_stream;
00128 AnxImportHead import_head;
00129 AnxImportClip import_clip;
00130 AnxImportCMML import_cmml;
00131 void * import_user_data;
00132 AnxImportImport import_import;
00133 void * import_import_user_data;
00134 };
00135
00136 #endif