From 61e4a801913f76695aa8445206d27720ba7bac8b Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 6 Jan 2007 19:07:58 +0000 Subject: Subtitle handling cleanup: factor out code for parsing embedded subtitles and adding and removing of lines in subtitle struct into subreader.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21845 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subreader.h') diff --git a/subreader.h b/subreader.h index 3230eab4f1..025cfa821c 100644 --- a/subreader.h +++ b/subreader.h @@ -48,6 +48,7 @@ typedef struct { unsigned long end; char *text[SUB_MAX_TEXT]; + double endpts[SUB_MAX_TEXT]; unsigned char alignment; } subtitle; @@ -86,4 +87,6 @@ void dump_sami(sub_data* subd, float fps); 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 -- cgit v1.2.3