Go to the documentation of this file.
   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 
   43 #define ASS_DEFAULT_BORDERSTYLE 1 
   72                                 int play_res_x, 
int play_res_y,
 
   73                                 const char *font, 
int font_size,
 
   74                                 int primary_color, 
int secondary_color,
 
   75                                 int outline_color, 
int back_color,
 
   76                                 int bold, 
int italic, 
int underline,
 
   77                                 int border_style, 
int alignment);
 
   94                            const char *font, 
int font_size,
 
   95                            int color, 
int back_color,
 
   96                            int bold, 
int italic, 
int underline,
 
   97                            int border_style, 
int alignment);
 
  112                         const char *speaker, 
const char *text);
 
  118                     int readorder, 
int layer, 
const char *style,
 
  119                     const char *speaker);
 
  138                              const char *linebreaks, 
int keep_ass_markup);
 
  
static float sub(float src0, float src1)
void ff_ass_decoder_flush(AVCodecContext *avctx)
Helper to flush a text subtitles decoder making use of the FFASSDecoderContext.
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog, int readorder, int layer, const char *style, const char *speaker)
Add an ASS dialog to a subtitle.
char * ff_ass_get_dialog(int readorder, int layer, const char *style, const char *speaker, const char *text)
Craft an ASS dialog string.
int ff_ass_subtitle_header_full(AVCodecContext *avctx, int play_res_x, int play_res_y, const char *font, int font_size, int primary_color, int secondary_color, int outline_color, int back_color, int bold, int italic, int underline, int border_style, int alignment)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS.
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
main external API structure.
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 border_style, int alignment)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS.
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.