AuxSubtitlesFormats_sami.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:1k
- #include "Config.h" // Global Configuration - do not remove!
- #ifdef USE_AUX_SUBTITLES
- #ifndef __AUXSUBTITLESFORMATS_SAMI_H_
- #define __AUXSUBTITLESFORMATS_SAMI_H_
- typedef enum{
- NULL_TOKEN = 0,
- UNKNOWN,
- TAG_SAMI,
- TAG_END_SAMI,
- TAG_BODY,
- TAG_END_BODY,
- TAG_STYLE,
- TAG_END_STYLE,
- TAG_BR,
- PARAGRAPH,
- TAG_SYNC,
- BLANK_SYNC,
- CONTENT_STRING,
- CLASS_DEFINE,
- STYLE_DEFINE,
- START,
- CLASS,
- SAMI_ID,
- LANG,
- SAMI_FONT,
- SAMI_FONT_COLOR,
- SAMI_FONT_END,
- }TOKEN_TYPE;
- typedef enum{
- LEX_CONTENT,
- LEX_GT,
- LEX_ENDTAG,
- LEX_STARTTAG
- }LEXER_STATE;
- typedef enum{
- NORMAL,
- IN_BODY,
- IN_STYLE
- };
- #define LEN_CONTENT_STR 80
- typedef struct
- {
- int type;
- char string[LEN_CONTENT_STR];
- }TOKEN;
- typedef struct
- {
- TOKEN_TYPE token;
- char* str;
- }TOKEN_LUT;
- #endif //__AUXSUBTITLESFORMATS_SAMI_H_
- #endif //USE_AUX_SUBTITLES