28 #define ASS_DEFAULT_PLAYRESX 384 
   29 #define ASS_DEFAULT_PLAYRESY 288 
   35 #define ASS_DEFAULT_FONT        "Arial" 
   36 #define ASS_DEFAULT_FONT_SIZE   16 
   37 #define ASS_DEFAULT_COLOR       0xffffff 
   38 #define ASS_DEFAULT_BACK_COLOR  0 
   39 #define ASS_DEFAULT_BOLD        0 
   40 #define ASS_DEFAULT_ITALIC      0 
   41 #define ASS_DEFAULT_UNDERLINE   0 
   42 #define ASS_DEFAULT_ALIGNMENT   2 
   61                            const char *font, 
int font_size,
 
   62                            int color, 
int back_color,
 
   63                            int bold, 
int italic, 
int underline,
 
   95                     int ts_start, 
int duration, 
int raw);
 
  124                          int ts_start, 
int duration, 
int raw);
 
  137                              const char *linebreaks, 
int keep_ass_markup);
 
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style. 
 
int ff_ass_add_rect_bprint(AVSubtitle *sub, AVBPrint *buf, int ts_start, int duration)
Same as ff_ass_add_rect_bprint, but taking an AVBPrint buffer instead of a string, and assuming raw=0. 
 
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog, int ts_start, int duration, int raw)
Add an ASS dialog line to an AVSubtitle as a new AVSubtitleRect. 
 
int ff_ass_bprint_dialog(AVBPrint *buf, const char *dialog, int ts_start, int duration, int raw)
Add an ASS dialog line to an AVBPrint buffer. 
 
Libavcodec external API header. 
 
void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size, const char *linebreaks, int keep_ass_markup)
Escape a text subtitle using ASS syntax into an AVBPrint buffer. 
 
int ff_ass_subtitle_header(AVCodecContext *avctx, const char *font, int font_size, int color, int back_color, int bold, int italic, int underline, int alignment)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS. 
 
main external API structure.