Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

anx_types.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2003 Commonwealth Scientific and Industrial Research
00003    Organisation (CSIRO) Australia
00004 
00005    Redistribution and use in source and binary forms, with or without
00006    modification, are permitted provided that the following conditions
00007    are met:
00008 
00009    - Redistributions of source code must retain the above copyright
00010    notice, this list of conditions and the following disclaimer.
00011 
00012    - Redistributions in binary form must reproduce the above copyright
00013    notice, this list of conditions and the following disclaimer in the
00014    documentation and/or other materials provided with the distribution.
00015 
00016    - Neither the name of CSIRO Australia nor the names of its
00017    contributors may be used to endorse or promote products derived from
00018    this software without specific prior written permission.
00019 
00020    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00021    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00022    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00023    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE ORGANISATION OR
00024    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00025    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00026    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00027    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00028    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00029    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00030    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031 */
00032 
00037 #ifndef __ANX_TYPES_H__
00038 #define __ANX_TYPES_H__
00039 
00040 #include <stdio.h>
00041 #include <annodex/anx_int64.h>
00042 #include <annodex/anx_list.h>
00043 
00044 #ifndef _ANX_PRIVATE
00045 
00048 typedef void ANNODEX;
00049 #endif
00050 
00052 typedef struct _AnxTrack AnxTrack;
00053 
00057 struct _AnxTrack {
00059   long serialno;
00060 
00062   char * id;
00063 
00065   char * content_type;
00066 
00068   long nr_header_packets;
00069 
00071   anx_int64_t granule_rate_n;
00072 
00074   anx_int64_t granule_rate_d;
00075 };
00076 
00077 
00078 /* Annotation elements */
00079 typedef struct _AnxHead AnxHead;
00080 typedef struct _AnxClip AnxClip;
00081 typedef struct _AnxMetaElement AnxMetaElement;
00082 typedef struct _AnxDescElement AnxDescElement;
00083 
00084 struct _AnxMetaElement {
00085   char *id;      
00086   char *lang;    
00087   char *dir;     
00088   char *name;    
00089   char *content; 
00090   char *scheme;  
00091 };
00092 
00093 struct _AnxDescElement {
00094   char *id;       
00095   char *lang;     
00096   char *dir;      
00097   char *desc;     
00098 };
00099 
00100 struct _AnxHead {
00101   char *head_id;    
00102   char *lang;       
00103   char *dir;        
00104   char *defltlang;  
00105   char *defltdir;   
00106   char *profile;    
00107   char *title;      
00108   char *title_id;   
00109   char *title_lang; 
00110   char *title_dir;  
00111   char *base_id;    
00112   char *base_href;  
00113   AnxList * meta;   
00114 };
00115 
00116 struct _AnxClip {
00117   char *clip_id;         
00118   char *lang;            
00119   char *dir;             
00120   char *track;           
00121   char *anchor_id;       
00122   char *anchor_lang;     
00123   char *anchor_dir;      
00124   char *anchor_class;    
00125   char *anchor_href;     
00126   char *anchor_text;     
00127   char *img_id;          
00128   char *img_lang;        
00129   char *img_dir;         
00130   char *img_src;         
00131   char *img_alt;         
00132   char *desc_id;         
00133   char *desc_lang;       
00134   char *desc_dir;        
00135   char *desc_text;       
00136   AnxList * meta;      
00137 };
00138 
00139 /* Importer Callbacks */
00140 
00141 typedef int (*AnxImportStream) (double timebase, char * utc, void * user_data);
00142 typedef int (*AnxImportHead) (AnxHead * head, void * user_data);
00143 typedef int (*AnxImportClip) (AnxClip * clip, double time_offset,
00144                                 void * user_data);
00145 
00146 typedef int (*AnxImportImport) (double start_time, char * filename,
00147                                 char * id, char * content_type,
00148                                 double seek_offset, double seek_end,
00149                                 void * user_data);
00150 
00151 typedef struct _AnxImportCallbacks AnxImportCallbacks;
00152 
00153 struct _AnxImportCallbacks {
00154   AnxImportStream import_stream;
00155   AnxImportHead import_head;
00156   AnxImportClip import_clip;
00157   void * import_user_data;
00158   AnxImportImport import_import;
00159   void * import_import_user_data;
00160 };
00161 
00162 #endif /* __ANX_TYPES_H__ */

Generated on Tue Feb 17 17:26:14 2004 for libannodex by doxygen 1.3.5