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 
00033 #ifndef __ANX_GENERAL_H__
00034 #define __ANX_GENERAL_H__
00035 
00040 #include <annodex/anx_types.h>
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00047 double anx_parse_time (const char * str);
00048 
00054 int anx_last_error (ANNODEX * annodex);
00055 
00062 const char * anx_strerror (ANNODEX * annodex);
00063 
00070 ANNODEX * anx_open (char * filename, int flags);
00071 
00078 ANNODEX * anx_open_stdio (FILE * file, int flags);
00079 
00086 ANNODEX * anx_new (int flags);
00087 
00093 int anx_flush (ANNODEX * annodex);
00094 
00101 ANNODEX * anx_close (ANNODEX * annodex);
00102 
00108 int anx_destroy (ANNODEX * annodex);
00109 
00115 int anx_ready (ANNODEX * annodex);
00116 
00122 int anx_eos (ANNODEX * annodex);
00123 
00132 AnxHead * anx_set_head (ANNODEX * annodex, AnxHead * head);
00133 
00139 AnxHead * anx_get_head (ANNODEX * annodex);
00140 
00141 #if 1
00142 
00148 anx_int64_t anx_tell (ANNODEX * annodex);
00149 #endif
00150 
00151 #if 0 
00152 long anx_seek (ANNODEX * annodex, long packets, int whence);
00153 #endif
00154 
00160 int anx_seek_id (ANNODEX * annodex, const char * id);
00161 
00167 double anx_get_timebase (ANNODEX * annodex);
00168 
00173 double anx_set_timebase (ANNODEX * annodex, double seconds);
00174 
00180 double anx_tell_time (ANNODEX * annodex);
00181 
00188 double anx_seek_time (ANNODEX * annodex, double seconds, int whence);
00189 
00190 
00200 int anx_head_snprint (char *buf, int n, AnxHead * h);
00201 
00213 int anx_clip_snprint (char * buf, int n, AnxClip * a,
00214                       double start, double end);
00215 
00221 AnxHead * anx_head_free (AnxHead * head);
00222 
00228 AnxClip * anx_clip_free (AnxClip * clip);
00229         
00237 AnxHead * anx_head_clone (AnxHead * head);
00238 
00246 AnxClip * anx_clip_clone (AnxClip * clip);
00247 
00253 AnxMetaElement * anx_meta_element_clone (AnxMetaElement * meta);
00254 
00255 #ifdef __cplusplus
00256 }
00257 #endif
00258 
00259 #endif