Mercurial > mplayer.hg
comparison libass/ass.h @ 19492:c8daf3471201
SSA/ASS parser reworked, with 2 main results:
support for script embedded fonts (fonts, uuencoded directly into script) added;
matroska interface functions have got more sensible names.
author | eugeni |
---|---|
date | Tue, 22 Aug 2006 22:11:01 +0000 |
parents | 07209f48e527 |
children | ed0ae2df0fe8 |
comparison
equal
deleted
inserted
replaced
19491:10d8f2cae948 | 19492:c8daf3471201 |
---|---|
129 * \brief Process Codec Private section of subtitle stream | 129 * \brief Process Codec Private section of subtitle stream |
130 * \param track target track | 130 * \param track target track |
131 * \param data string to parse | 131 * \param data string to parse |
132 * \param size length of data | 132 * \param size length of data |
133 */ | 133 */ |
134 void ass_process_chunk(ass_track_t* track, char *data, int size); | 134 void ass_process_codec_private(ass_track_t* track, char *data, int size); |
135 | 135 |
136 /** | 136 /** |
137 * \brief Process a chunk of subtitle stream data. In matroska, this containes exactly 1 event (or a commentary) | 137 * \brief Process a chunk of subtitle stream data. In matroska, this containes exactly 1 event (or a commentary) |
138 * \param track track | 138 * \param track track |
139 * \param data string to parse | 139 * \param data string to parse |
140 * \param size length of data | 140 * \param size length of data |
141 * \param timecode starting time of the event (milliseconds) | 141 * \param timecode starting time of the event (milliseconds) |
142 * \param duration duration of the event (milliseconds) | 142 * \param duration duration of the event (milliseconds) |
143 */ | 143 */ |
144 void ass_process_line(ass_track_t* track, char *data, int size, long long timecode, long long duration); | 144 void ass_process_chunk(ass_track_t* track, char *data, int size, long long timecode, long long duration); |
145 | 145 |
146 /** | 146 /** |
147 * \brief Read subtitles from file. | 147 * \brief Read subtitles from file. |
148 * \param fname file name | 148 * \param fname file name |
149 * \return newly allocated track | 149 * \return newly allocated track |