diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-01-06 19:07:58 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-01-06 19:07:58 +0000 |
commit | 61e4a801913f76695aa8445206d27720ba7bac8b (patch) | |
tree | fbf798e232b50df044361d232d3899e69e90b3f8 /subreader.h | |
parent | 20a7d46a88825b08eea0a3641bedfd53fcd5998d (diff) | |
download | mpv-61e4a801913f76695aa8445206d27720ba7bac8b.tar.bz2 mpv-61e4a801913f76695aa8445206d27720ba7bac8b.tar.xz |
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
Diffstat (limited to 'subreader.h')
-rw-r--r-- | subreader.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |