FFmpeg
4.3.7
|
#include <stdarg.h>
#include "avcodec.h"
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/common.h"
#include "ass_split.h"
#include "ass.h"
Go to the source code of this file.
Data Structures | |
struct | StyleBox |
struct | HighlightBox |
struct | HilightcolorBox |
struct | MovTextContext |
struct | Box |
Macros | |
#define | STYLE_FLAG_BOLD (1<<0) |
#define | STYLE_FLAG_ITALIC (1<<1) |
#define | STYLE_FLAG_UNDERLINE (1<<2) |
#define | STYLE_RECORD_SIZE 12 |
#define | SIZE_ADD 10 |
#define | STYL_BOX (1<<0) |
#define | HLIT_BOX (1<<1) |
#define | HCLR_BOX (1<<2) |
#define | DEFAULT_STYLE_FONT_ID 0x01 |
#define | DEFAULT_STYLE_FONTSIZE 0x12 |
#define | DEFAULT_STYLE_COLOR 0xffffffff |
#define | DEFAULT_STYLE_FLAG 0x00 |
#define | BGR_TO_RGB(c) (((c) & 0xff) << 16 | ((c) & 0xff00) | (((uint32_t)(c) >> 16) & 0xff)) |
#define | FONTSIZE_SCALE(s, fs) ((fs) * (s)->font_scale_factor + 0.5) |
#define | av_bprint_append_any(buf, data, size) av_bprint_append_data(buf, ((const char*)data), size) |
#define | OFFSET(x) offsetof(MovTextContext, x) |
#define | FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Variables | |
static const Box | box_types [] |
static const size_t | box_count = FF_ARRAY_ELEMS(box_types) |
static const ASSCodesCallbacks | mov_text_callbacks |
static const AVOption | options [] |
static const AVClass | mov_text_encoder_class |
AVCodec | ff_movtext_encoder |
#define STYLE_FLAG_BOLD (1<<0) |
Definition at line 33 of file movtextenc.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), and mov_text_style_to_flag().
#define STYLE_FLAG_ITALIC (1<<1) |
Definition at line 34 of file movtextenc.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), and mov_text_style_to_flag().
#define STYLE_FLAG_UNDERLINE (1<<2) |
Definition at line 35 of file movtextenc.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), and mov_text_style_to_flag().
#define STYLE_RECORD_SIZE 12 |
Definition at line 36 of file movtextenc.c.
Referenced by encode_styl().
#define SIZE_ADD 10 |
Definition at line 37 of file movtextenc.c.
Referenced by encode_sample_description(), and encode_styl().
#define STYL_BOX (1<<0) |
Definition at line 39 of file movtextenc.c.
Referenced by encode_styl(), and mov_text_style_start().
#define HLIT_BOX (1<<1) |
Definition at line 40 of file movtextenc.c.
Referenced by encode_hlit(), mov_text_alpha_cb(), and mov_text_color_cb().
#define HCLR_BOX (1<<2) |
Definition at line 41 of file movtextenc.c.
Referenced by encode_hclr(), mov_text_alpha_cb(), and mov_text_color_cb().
#define DEFAULT_STYLE_FONT_ID 0x01 |
Definition at line 43 of file movtextenc.c.
Referenced by encode_sample_description().
#define DEFAULT_STYLE_FONTSIZE 0x12 |
Definition at line 44 of file movtextenc.c.
Referenced by encode_sample_description().
#define DEFAULT_STYLE_COLOR 0xffffffff |
Definition at line 45 of file movtextenc.c.
Referenced by encode_sample_description().
#define DEFAULT_STYLE_FLAG 0x00 |
Definition at line 46 of file movtextenc.c.
Referenced by encode_sample_description().
Definition at line 48 of file movtextenc.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), and mov_text_color_cb().
Definition at line 49 of file movtextenc.c.
Referenced by encode_sample_description(), and mov_text_font_size_set().
#define av_bprint_append_any | ( | buf, | |
data, | |||
size | |||
) | av_bprint_append_data(buf, ((const char*)data), size) |
Definition at line 50 of file movtextenc.c.
Referenced by encode_hclr(), encode_hlit(), encode_sample_description(), and encode_styl().
#define OFFSET | ( | x | ) | offsetof(MovTextContext, x) |
Definition at line 737 of file movtextenc.c.
#define FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Definition at line 738 of file movtextenc.c.
|
static |
Definition at line 98 of file movtextenc.c.
Referenced by encode_styl(), and mov_text_style_start().
|
static |
Definition at line 104 of file movtextenc.c.
|
static |
Definition at line 138 of file movtextenc.c.
|
static |
Definition at line 155 of file movtextenc.c.
|
static |
Definition at line 177 of file movtextenc.c.
Referenced by mov_text_encode_init().
|
static |
Definition at line 188 of file movtextenc.c.
Referenced by mov_text_encode_init().
|
static |
Definition at line 347 of file movtextenc.c.
|
static |
Definition at line 372 of file movtextenc.c.
Referenced by mov_text_alpha_set(), mov_text_ass_style_set(), mov_text_color_set(), mov_text_end_cb(), mov_text_font_name_set(), mov_text_font_size_set(), mov_text_style_cb(), and mov_text_style_set().
|
static |
Definition at line 407 of file movtextenc.c.
Referenced by mov_text_style_cb().
|
static |
Definition at line 425 of file movtextenc.c.
Referenced by mov_text_ass_style_set().
Definition at line 435 of file movtextenc.c.
|
static |
Definition at line 452 of file movtextenc.c.
Referenced by mov_text_ass_style_set(), and mov_text_color_cb().
Definition at line 463 of file movtextenc.c.
|
static |
Definition at line 490 of file movtextenc.c.
Referenced by mov_text_alpha_cb(), and mov_text_ass_style_set().
Definition at line 501 of file movtextenc.c.
|
static |
Definition at line 524 of file movtextenc.c.
Referenced by mov_text_font_name_set().
|
static |
Definition at line 534 of file movtextenc.c.
Referenced by mov_text_ass_style_set(), and mov_text_font_name_cb().
Definition at line 545 of file movtextenc.c.
|
static |
Definition at line 550 of file movtextenc.c.
Referenced by mov_text_ass_style_set(), and mov_text_font_size_cb().
Definition at line 561 of file movtextenc.c.
Definition at line 566 of file movtextenc.c.
|
static |
Definition at line 572 of file movtextenc.c.
Referenced by mov_text_cancel_overrides_cb(), and mov_text_dialog().
|
static |
Definition at line 594 of file movtextenc.c.
Referenced by mov_text_encode_frame().
Definition at line 602 of file movtextenc.c.
|
static |
Definition at line 615 of file movtextenc.c.
Referenced by mov_text_text_cb().
Definition at line 635 of file movtextenc.c.
Definition at line 645 of file movtextenc.c.
|
static |
Definition at line 665 of file movtextenc.c.
|
static |
Definition at line 169 of file movtextenc.c.
|
static |
Definition at line 175 of file movtextenc.c.
Referenced by mov_text_encode_frame().
|
static |
Definition at line 653 of file movtextenc.c.
|
static |
Definition at line 739 of file movtextenc.c.
|
static |
Definition at line 744 of file movtextenc.c.
AVCodec ff_movtext_encoder |
Definition at line 751 of file movtextenc.c.