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 66 const char *font,
int font_size,
67 int color,
int back_color,
68 int bold,
int italic,
int underline,
69 int border_style,
int alignment);
84 const char *speaker,
const char *text);
90 int readorder,
int layer,
const char *style,
110 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_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.
char * ff_ass_get_dialog(int readorder, int layer, const char *style, const char *speaker, const char *text)
Craft an ASS dialog string.
Libavcodec external API header.
main external API structure.
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.
void ff_ass_decoder_flush(AVCodecContext *avctx)
Helper to flush a text subtitles decoder making use of the FFASSDecoderContext.