#include "avcodec.h"
Go to the source code of this file.
Macros | |
Default values for ASS style | |
#define | ASS_DEFAULT_FONT "Arial" |
#define | ASS_DEFAULT_FONT_SIZE 16 |
#define | ASS_DEFAULT_COLOR 0xffffff |
#define | ASS_DEFAULT_BACK_COLOR 0 |
#define | ASS_DEFAULT_BOLD 0 |
#define | ASS_DEFAULT_ITALIC 0 |
#define | ASS_DEFAULT_UNDERLINE 0 |
#define | ASS_DEFAULT_ALIGNMENT 2 |
Functions | |
int | ff_ass_subtitle_header_default (AVCodecContext *avctx) |
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style. | |
void | ff_ass_init (AVSubtitle *sub) |
Initialize an AVSubtitle structure for use with ff_ass_add_rect(). | |
int | ff_ass_add_rect (AVSubtitle *sub, const char *dialog, int ts_start, int ts_end, int raw) |
Add an ASS dialog line to an AVSubtitle as a new AVSubtitleRect. |
#define ASS_DEFAULT_ALIGNMENT 2 |
Definition at line 38 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_BACK_COLOR 0 |
Definition at line 34 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_BOLD 0 |
Definition at line 35 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_COLOR 0xffffff |
Definition at line 33 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_FONT "Arial" |
Definition at line 31 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_FONT_SIZE 16 |
Definition at line 32 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_ITALIC 0 |
Definition at line 36 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
#define ASS_DEFAULT_UNDERLINE 0 |
Definition at line 37 of file ass.h.
Referenced by ff_ass_subtitle_header_default().
int ff_ass_add_rect | ( | AVSubtitle * | sub, |
const char * | dialog, | ||
int | ts_start, | ||
int | ts_end, | ||
int | raw | ||
) |
Add an ASS dialog line to an AVSubtitle as a new AVSubtitleRect.
sub | pointer to the AVSubtitle |
dialog | ASS dialog to add to sub |
ts_start | start timestamp for this dialog (in 1/100 second unit) |
ts_end | end timestamp for this dialog (in 1/100 second unit) |
raw | when set to 1, it indicates that dialog contains a whole ASS dialog line which should be copied as is. when set to 0, it indicates that dialog contains only the Text part of the ASS dialog line, the rest of the line will be generated. |
Definition at line 95 of file ass.c.
Referenced by ass_decode_frame(), and srt_decode_frame().
void ff_ass_init | ( | AVSubtitle * | sub | ) |
Initialize an AVSubtitle structure for use with ff_ass_add_rect().
sub | pointer to the AVSubtitle |
Definition at line 81 of file ass.c.
Referenced by ass_decode_frame(), and srt_decode_frame().
int ff_ass_subtitle_header_default | ( | AVCodecContext * | avctx | ) |
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
avctx | pointer to the AVCodecContext |