comparison sub/subreader.h @ 32724:732cd2afae10

Replace hacky vobsub loading with a new clean one.
author cboesch
date Sun, 23 Jan 2011 13:04:15 +0000
parents 7b135236a44a
children 4802a80f7a50
comparison
equal deleted inserted replaced
32723:5310794ef052 32724:732cd2afae10
81 81
82 extern char *fribidi_charset; 82 extern char *fribidi_charset;
83 extern int flip_hebrew; 83 extern int flip_hebrew;
84 extern int fribidi_flip_commas; 84 extern int fribidi_flip_commas;
85 85
86 typedef int (*open_vob_func)(const char *, const char * const, int, void *);
87
86 sub_data* sub_read_file (char *filename, float pts); 88 sub_data* sub_read_file (char *filename, float pts);
87 subtitle* subcp_recode (subtitle *sub); 89 subtitle* subcp_recode (subtitle *sub);
88 // enca_fd is the file enca uses to determine the codepage. 90 // enca_fd is the file enca uses to determine the codepage.
89 // setting to NULL disables enca. 91 // setting to NULL disables enca.
90 struct stream; 92 struct stream;
93 #ifdef CONFIG_ENCA 95 #ifdef CONFIG_ENCA
94 const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback); 96 const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback);
95 const char* guess_cp(struct stream *st, const char *preferred_language, const char *fallback); 97 const char* guess_cp(struct stream *st, const char *preferred_language, const char *fallback);
96 #endif 98 #endif
97 void load_subtitles(const char *fname, int fps, void add_f(char *, float, int)); 99 void load_subtitles(const char *fname, int fps, void add_f(char *, float, int));
100 void load_vob_subtitle(const char *fname, const char * const spudec_ifo, void **spu, open_vob_func add_f);
98 void list_sub_file(sub_data* subd); 101 void list_sub_file(sub_data* subd);
99 void dump_srt(sub_data* subd, float fps); 102 void dump_srt(sub_data* subd, float fps);
100 void dump_mpsub(sub_data* subd, float fps); 103 void dump_mpsub(sub_data* subd, float fps);
101 void dump_microdvd(sub_data* subd, float fps); 104 void dump_microdvd(sub_data* subd, float fps);
102 void dump_jacosub(sub_data* subd, float fps); 105 void dump_jacosub(sub_data* subd, float fps);