Mercurial > libavcodec.hg
comparison avcodec.h @ 8517:7e6cf3ff61d3 libavcodec
Add type, text and ass to AVSubtitleRect.
author | michael |
---|---|
date | Sat, 03 Jan 2009 19:20:50 +0000 |
parents | 315b302fcd1d |
children | f2c406b05158 |
comparison
equal
deleted
inserted
replaced
8516:315b302fcd1d | 8517:7e6cf3ff61d3 |
---|---|
2403 /** | 2403 /** |
2404 * data+linesize for the bitmap of this subtitle. | 2404 * data+linesize for the bitmap of this subtitle. |
2405 * can be set for text/ass as well once they where rendered | 2405 * can be set for text/ass as well once they where rendered |
2406 */ | 2406 */ |
2407 AVPicture pict; | 2407 AVPicture pict; |
2408 enum AVSubtitleType type; | |
2409 | |
2410 char *text; ///< 0 terminated plain UTF-8 text | |
2411 | |
2412 /** | |
2413 * 0 terminated ASS/SSA compatible event line. | |
2414 * The pressentation of this is unaffected by the other values in this | |
2415 * struct. | |
2416 */ | |
2417 char *ass; | |
2408 } AVSubtitleRect; | 2418 } AVSubtitleRect; |
2409 | 2419 |
2410 typedef struct AVSubtitle { | 2420 typedef struct AVSubtitle { |
2411 uint16_t format; /* 0 = graphics */ | 2421 uint16_t format; /* 0 = graphics */ |
2412 uint32_t start_display_time; /* relative to packet pts, in ms */ | 2422 uint32_t start_display_time; /* relative to packet pts, in ms */ |