FFmpeg
|
#include "avcodec.h"
#include "ass.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
Go to the source code of this file.
Functions | |
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. | |
int | ff_ass_subtitle_header_default (AVCodecContext *avctx) |
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style. | |
static int | ts_to_string (char *str, int strlen, int ts) |
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_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.
avctx | pointer to the AVCodecContext |
font | name of the default font face to use |
font_size | default font size to use |
color | default text color to use (ABGR) |
back_color | default background color to use (ABGR) |
bold | 1 for bold text, 0 for normal text |
italic | 1 for italic text, 0 for normal text |
underline | 1 for underline text, 0 for normal text |
alignment | position of the text (left, center, top...), defined after the layout of the numpad (1-3 sub, 4-6 mid, 7-9 top) |
Definition at line 28 of file ass.c.
Referenced by ff_ass_subtitle_header_default(), and microdvd_init().
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 |
Definition at line 53 of file ass.c.
Referenced by mov_text_init(), and sami_init().
|
static |
Definition at line 65 of file ass.c.
Referenced by ff_ass_add_rect().
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.
sub | pointer to the AVSubtitle |
dialog | ASS dialog to add to sub |
ts_start | start timestamp for this dialog (in 1/100 second unit) |
duration | duration for this dialog (in 1/100 second unit), can be -1 to last until the end of the presentation |
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 74 of file ass.c.
Referenced by ass_decode_frame(), jacosub_decode_frame(), microdvd_decode_frame(), realtext_decode_frame(), and subviewer_decode_frame().