Go to the source code of this file.
|
static void | mov_text_cleanup (MovTextContext *s) |
|
static void | encode_styl (MovTextContext *s) |
|
static void | encode_hlit (MovTextContext *s) |
|
static void | encode_hclr (MovTextContext *s) |
|
static int | mov_text_encode_close (AVCodecContext *avctx) |
|
static int | encode_sample_description (AVCodecContext *avctx) |
|
static av_cold int | mov_text_encode_init (AVCodecContext *avctx) |
|
static int | mov_text_style_start (MovTextContext *s) |
|
static uint8_t | mov_text_style_to_flag (const char style) |
|
static void | mov_text_style_set (MovTextContext *s, uint8_t style_flags) |
|
static void | mov_text_style_cb (void *priv, const char style, int close) |
|
static void | mov_text_color_set (MovTextContext *s, uint32_t color) |
|
static void | mov_text_color_cb (void *priv, unsigned int color, unsigned int color_id) |
|
static void | mov_text_alpha_set (MovTextContext *s, uint8_t alpha) |
|
static void | mov_text_alpha_cb (void *priv, int alpha, int alpha_id) |
|
static uint16_t | find_font_id (MovTextContext *s, const char *name) |
|
static void | mov_text_font_name_set (MovTextContext *s, const char *name) |
|
static void | mov_text_font_name_cb (void *priv, const char *name) |
|
static void | mov_text_font_size_set (MovTextContext *s, int size) |
|
static void | mov_text_font_size_cb (void *priv, int size) |
|
static void | mov_text_end_cb (void *priv) |
|
static void | mov_text_ass_style_set (MovTextContext *s, ASSStyle *style) |
|
static void | mov_text_dialog (MovTextContext *s, ASSDialog *dialog) |
|
static void | mov_text_cancel_overrides_cb (void *priv, const char *style_name) |
|
static unsigned | utf8_strlen (const char *text, int len) |
|
static void | mov_text_text_cb (void *priv, const char *text, int len) |
|
static void | mov_text_new_line_cb (void *priv, int forced) |
|
static int | mov_text_encode_frame (AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub) |
|
◆ STYLE_FLAG_BOLD
#define STYLE_FLAG_BOLD (1<<0) |
◆ STYLE_FLAG_ITALIC
#define STYLE_FLAG_ITALIC (1<<1) |
◆ STYLE_FLAG_UNDERLINE
#define STYLE_FLAG_UNDERLINE (1<<2) |
◆ STYLE_RECORD_SIZE
#define STYLE_RECORD_SIZE 12 |
◆ SIZE_ADD
◆ STYL_BOX
◆ HLIT_BOX
◆ HCLR_BOX
◆ DEFAULT_STYLE_FONT_ID
#define DEFAULT_STYLE_FONT_ID 0x01 |
◆ DEFAULT_STYLE_FONTSIZE
#define DEFAULT_STYLE_FONTSIZE 0x12 |
◆ DEFAULT_STYLE_COLOR
#define DEFAULT_STYLE_COLOR 0xffffffff |
◆ DEFAULT_STYLE_FLAG
#define DEFAULT_STYLE_FLAG 0x00 |
◆ BGR_TO_RGB
#define BGR_TO_RGB |
( |
|
c | ) |
(((c) & 0xff) << 16 | ((c) & 0xff00) | (((uint32_t)(c) >> 16) & 0xff)) |
◆ FONTSIZE_SCALE
#define FONTSIZE_SCALE |
( |
|
s, |
|
|
|
fs |
|
) |
| ((fs) * (s)->font_scale_factor + 0.5) |
◆ av_bprint_append_any
◆ OFFSET
◆ FLAGS
◆ mov_text_cleanup()
◆ encode_styl()
◆ encode_hlit()
◆ encode_hclr()
◆ mov_text_encode_close()
◆ encode_sample_description()
◆ mov_text_encode_init()
◆ mov_text_style_start()
◆ mov_text_style_to_flag()
static uint8_t mov_text_style_to_flag |
( |
const char |
style | ) |
|
|
static |
◆ mov_text_style_set()
static void mov_text_style_set |
( |
MovTextContext * |
s, |
|
|
uint8_t |
style_flags |
|
) |
| |
|
static |
◆ mov_text_style_cb()
static void mov_text_style_cb |
( |
void * |
priv, |
|
|
const char |
style, |
|
|
int |
close |
|
) |
| |
|
static |
◆ mov_text_color_set()
◆ mov_text_color_cb()
static void mov_text_color_cb |
( |
void * |
priv, |
|
|
unsigned int |
color, |
|
|
unsigned int |
color_id |
|
) |
| |
|
static |
◆ mov_text_alpha_set()
◆ mov_text_alpha_cb()
static void mov_text_alpha_cb |
( |
void * |
priv, |
|
|
int |
alpha, |
|
|
int |
alpha_id |
|
) |
| |
|
static |
◆ find_font_id()
static uint16_t find_font_id |
( |
MovTextContext * |
s, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ mov_text_font_name_set()
static void mov_text_font_name_set |
( |
MovTextContext * |
s, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ mov_text_font_name_cb()
static void mov_text_font_name_cb |
( |
void * |
priv, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ mov_text_font_size_set()
◆ mov_text_font_size_cb()
static void mov_text_font_size_cb |
( |
void * |
priv, |
|
|
int |
size |
|
) |
| |
|
static |
◆ mov_text_end_cb()
static void mov_text_end_cb |
( |
void * |
priv | ) |
|
|
static |
◆ mov_text_ass_style_set()
◆ mov_text_dialog()
◆ mov_text_cancel_overrides_cb()
static void mov_text_cancel_overrides_cb |
( |
void * |
priv, |
|
|
const char * |
style_name |
|
) |
| |
|
static |
◆ utf8_strlen()
static unsigned utf8_strlen |
( |
const char * |
text, |
|
|
int |
len |
|
) |
| |
|
static |
◆ mov_text_text_cb()
static void mov_text_text_cb |
( |
void * |
priv, |
|
|
const char * |
text, |
|
|
int |
len |
|
) |
| |
|
static |
◆ mov_text_new_line_cb()
static void mov_text_new_line_cb |
( |
void * |
priv, |
|
|
int |
forced |
|
) |
| |
|
static |
◆ mov_text_encode_frame()
◆ box_types
◆ box_count
◆ mov_text_callbacks
◆ options
◆ mov_text_encoder_class
const AVClass mov_text_encoder_class |
|
static |
Initial value:= {
.class_name = "MOV text enoder",
}
Definition at line 695 of file movtextenc.c.
◆ ff_movtext_encoder
Initial value:= {
.p.name = "mov_text",
}
Definition at line 702 of file movtextenc.c.
static void mov_text_cancel_overrides_cb(void *priv, const char *style_name)
static const AVOption options[]
static av_cold int mov_text_encode_init(AVCodecContext *avctx)
static const AVClass mov_text_encoder_class
static void mov_text_color_cb(void *priv, unsigned int color, unsigned int color_id)
static void mov_text_text_cb(void *priv, const char *text, int len)
static void encode_styl(MovTextContext *s)
static int mov_text_encode_close(AVCodecContext *avctx)
static void mov_text_font_name_cb(void *priv, const char *name)
static int mov_text_encode_frame(AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub)
static void encode_hlit(MovTextContext *s)
static void mov_text_new_line_cb(void *priv, int forced)
static void mov_text_end_cb(void *priv)
static void encode_hclr(MovTextContext *s)
static void mov_text_font_size_cb(void *priv, int size)
static void mov_text_style_cb(void *priv, const char style, int close)
static void mov_text_alpha_cb(void *priv, int alpha, int alpha_id)