|
FFmpeg
|
#include <stdarg.h>#include "avcodec.h"#include "libavutil/attributes.h"#include "libavutil/opt.h"#include "libavutil/intreadwrite.h"#include "libavutil/mem.h"#include "libavutil/common.h"#include "ass_split.h"#include "ass.h"#include "bytestream.h"#include "codec_internal.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) |
| #define | FONTSIZE_SCALE(s, fs) |
| #define | av_bprint_append_any(buf, data, size) |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Functions | |
| 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 av_cold 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) |
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 |
| const FFCodec | ff_movtext_encoder |
| #define STYLE_FLAG_BOLD (1<<0) |
Definition at line 34 of file movtextenc.c.
| #define STYLE_FLAG_ITALIC (1<<1) |
Definition at line 35 of file movtextenc.c.
| #define STYLE_FLAG_UNDERLINE (1<<2) |
Definition at line 36 of file movtextenc.c.
| #define STYLE_RECORD_SIZE 12 |
Definition at line 37 of file movtextenc.c.
Referenced by encode_styl().
| #define SIZE_ADD 10 |
Definition at line 38 of file movtextenc.c.
Referenced by encode_sample_description(), and encode_styl().
| #define STYL_BOX (1<<0) |
Definition at line 40 of file movtextenc.c.
| #define HLIT_BOX (1<<1) |
Definition at line 41 of file movtextenc.c.
| #define HCLR_BOX (1<<2) |
Definition at line 42 of file movtextenc.c.
| #define DEFAULT_STYLE_FONT_ID 0x01 |
Definition at line 44 of file movtextenc.c.
Referenced by encode_sample_description().
| #define DEFAULT_STYLE_FONTSIZE 0x12 |
Definition at line 45 of file movtextenc.c.
Referenced by encode_sample_description().
| #define DEFAULT_STYLE_COLOR 0xffffffff |
Definition at line 46 of file movtextenc.c.
Referenced by encode_sample_description().
| #define DEFAULT_STYLE_FLAG 0x00 |
Definition at line 47 of file movtextenc.c.
Referenced by encode_sample_description().
| #define BGR_TO_RGB | ( | c | ) |
Definition at line 49 of file movtextenc.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), and mov_text_color_cb().
Definition at line 50 of file movtextenc.c.
Referenced by encode_sample_description(), and mov_text_font_size_set().
Definition at line 51 of file movtextenc.c.
Referenced by encode_hclr(), encode_hlit(), encode_sample_description(), and encode_styl().
| #define OFFSET | ( | x | ) |
Definition at line 692 of file movtextenc.c.
| #define FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Definition at line 693 of file movtextenc.c.
|
static |
Definition at line 97 of file movtextenc.c.
Referenced by encode_styl(), and mov_text_style_start().
|
static |
Definition at line 103 of file movtextenc.c.
|
static |
Definition at line 131 of file movtextenc.c.
|
static |
Definition at line 145 of file movtextenc.c.
|
static |
Definition at line 166 of file movtextenc.c.
|
static |
Definition at line 176 of file movtextenc.c.
Referenced by mov_text_encode_init().
|
static |
Definition at line 330 of file movtextenc.c.
|
static |
Definition at line 347 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 382 of file movtextenc.c.
Referenced by mov_text_style_cb().
|
static |
Definition at line 400 of file movtextenc.c.
Referenced by mov_text_ass_style_set().
|
static |
Definition at line 410 of file movtextenc.c.
|
static |
Definition at line 427 of file movtextenc.c.
Referenced by mov_text_ass_style_set(), and mov_text_color_cb().
|
static |
Definition at line 438 of file movtextenc.c.
|
static |
Definition at line 465 of file movtextenc.c.
Referenced by mov_text_alpha_cb(), and mov_text_ass_style_set().
|
static |
Definition at line 476 of file movtextenc.c.
|
static |
Definition at line 499 of file movtextenc.c.
Referenced by mov_text_font_name_set().
|
static |
Definition at line 511 of file movtextenc.c.
Referenced by mov_text_ass_style_set(), and mov_text_font_name_cb().
|
static |
Definition at line 522 of file movtextenc.c.
|
static |
Definition at line 527 of file movtextenc.c.
Referenced by mov_text_ass_style_set(), and mov_text_font_size_cb().
|
static |
Definition at line 538 of file movtextenc.c.
|
static |
Definition at line 543 of file movtextenc.c.
|
static |
Definition at line 549 of file movtextenc.c.
Referenced by mov_text_cancel_overrides_cb(), and mov_text_dialog().
|
static |
Definition at line 571 of file movtextenc.c.
Referenced by mov_text_encode_frame().
|
static |
Definition at line 579 of file movtextenc.c.
|
static |
Definition at line 592 of file movtextenc.c.
Referenced by mov_text_text_cb().
|
static |
Definition at line 612 of file movtextenc.c.
|
static |
Definition at line 621 of file movtextenc.c.
|
static |
Definition at line 640 of file movtextenc.c.
|
static |
Definition at line 158 of file movtextenc.c.
|
static |
Definition at line 164 of file movtextenc.c.
|
static |
Definition at line 628 of file movtextenc.c.
Referenced by mov_text_encode_frame().
|
static |
Definition at line 694 of file movtextenc.c.
|
static |
Definition at line 699 of file movtextenc.c.
| const FFCodec ff_movtext_encoder |
Definition at line 706 of file movtextenc.c.