diff 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
line wrap: on
line diff
--- a/subreader.h	Sat Jan 06 19:02:19 2007 +0000
+++ b/subreader.h	Sat Jan 06 19:07:58 2007 +0000
@@ -48,6 +48,7 @@
     unsigned long end;
     
     char *text[SUB_MAX_TEXT];
+    double endpts[SUB_MAX_TEXT];
     unsigned char alignment;
 } subtitle;
 
@@ -86,4 +87,6 @@
 void sub_free( sub_data * subd );
 void find_sub(sub_data* subd,int key);
 void step_sub(sub_data *subd, float pts, int movement);
+void sub_add_text(subtitle *sub, const char *txt, int len, double endpts);
+int sub_clear_text(subtitle *sub, double pts);
 #endif