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
30 #define SUB_ALIGNMENT_HLEFT 1
31 #define SUB_ALIGNMENT_HCENTER 0
32 #define SUB_ALIGNMENT_HRIGHT 2
41 char *text
[SUB_MAX_TEXT
];
42 unsigned char alignment
;
49 int sub_num
; // number of subtitle structs
53 sub_data
* sub_read_file (char *filename
, float pts
);
54 subtitle
* subcp_recode1 (subtitle
*sub
);
55 void subcp_open (void); /* for demux_ogg.c */
56 void subcp_close (void); /* for demux_ogg.c */
57 char ** sub_filenames(char *path
, char *fname
);
58 void list_sub_file(sub_data
* subd
);
59 void dump_srt(sub_data
* subd
, float fps
);
60 void dump_mpsub(sub_data
* subd
, float fps
);
61 void dump_microdvd(sub_data
* subd
, float fps
);
62 void dump_jacosub(sub_data
* subd
, float fps
);
63 void dump_sami(sub_data
* subd
, float fps
);
64 void sub_free( sub_data
* subd
);
65 void find_sub(sub_data
* subd
,int key
);
66 void step_sub(sub_data
*subd
, float pts
, int movement
);