1 #ifndef __MPLAYER_SUBREADER_H
2 #define __MPLAYER_SUBREADER_H
4 extern int suboverlap_enabled
;
5 extern int sub_no_text_pp
; // disable text post-processing
6 extern int sub_match_fuzziness
;
10 #define SUB_MICRODVD 0
12 #define SUB_SUBVIEWER 2
17 #define SUB_DUNNOWHAT 7 // FIXME what format is it ?
20 #define SUB_SUBVIEWER2 10
21 #define SUB_SUBRIP09 11
22 #define SUB_JACOSUB 12
24 // One of the SUB_* constant above
25 extern int sub_format
;
27 #define MAX_SUBTITLE_FILES 128
29 #define SUB_MAX_TEXT 10
38 char *text
[SUB_MAX_TEXT
];
45 int sub_num
; // number of subtitle structs
49 sub_data
* sub_read_file (char *filename
, float pts
);
50 subtitle
* subcp_recode1 (subtitle
*sub
);
51 void subcp_open (void); /* for demux_ogg.c */
52 void subcp_close (void); /* for demux_ogg.c */
53 char ** sub_filenames(char *path
, char *fname
);
54 void list_sub_file(sub_data
* subd
);
55 void dump_srt(sub_data
* subd
, float fps
);
56 void dump_mpsub(sub_data
* subd
, float fps
);
57 void dump_microdvd(sub_data
* subd
, float fps
);
58 void dump_jacosub(sub_data
* subd
, float fps
);
59 void dump_sami(sub_data
* subd
, float fps
);
60 void sub_free( sub_data
* subd
);
61 void find_sub(sub_data
* subd
,int key
);
62 void step_sub(sub_data
*subd
, float pts
, int movement
);