Mercurial > mplayer.hg
comparison subreader.h @ 21827:b0bc0d81f91b
Subtitle handling cleanup: factor out code for parsing embedded subtitles
and adding and removing of lines in subtitle struct into subreader.c.
author | reimar |
---|---|
date | Sat, 06 Jan 2007 19:07:58 +0000 |
parents | ed69754aa58d |
children | 714a39ce043b |
comparison
equal
deleted
inserted
replaced
21826:d4dbadf11019 | 21827:b0bc0d81f91b |
---|---|
46 | 46 |
47 unsigned long start; | 47 unsigned long start; |
48 unsigned long end; | 48 unsigned long end; |
49 | 49 |
50 char *text[SUB_MAX_TEXT]; | 50 char *text[SUB_MAX_TEXT]; |
51 double endpts[SUB_MAX_TEXT]; | |
51 unsigned char alignment; | 52 unsigned char alignment; |
52 } subtitle; | 53 } subtitle; |
53 | 54 |
54 typedef struct { | 55 typedef struct { |
55 subtitle *subtitles; | 56 subtitle *subtitles; |
84 void dump_jacosub(sub_data* subd, float fps); | 85 void dump_jacosub(sub_data* subd, float fps); |
85 void dump_sami(sub_data* subd, float fps); | 86 void dump_sami(sub_data* subd, float fps); |
86 void sub_free( sub_data * subd ); | 87 void sub_free( sub_data * subd ); |
87 void find_sub(sub_data* subd,int key); | 88 void find_sub(sub_data* subd,int key); |
88 void step_sub(sub_data *subd, float pts, int movement); | 89 void step_sub(sub_data *subd, float pts, int movement); |
90 void sub_add_text(subtitle *sub, const char *txt, int len, double endpts); | |
91 int sub_clear_text(subtitle *sub, double pts); | |
89 #endif | 92 #endif |