FFmpeg
4.0
|
#include <stdarg.h>
#include "avcodec.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 | av_bprint_append_any(buf, data, size) av_bprint_append_data(buf, ((const char*)data), size) |
Functions | |
static void | mov_text_cleanup (MovTextContext *s) |
static void | encode_styl (MovTextContext *s, uint32_t tsmb_type) |
static void | encode_hlit (MovTextContext *s, uint32_t tsmb_type) |
static void | encode_hclr (MovTextContext *s, uint32_t tsmb_type) |
static av_cold int | mov_text_encode_init (AVCodecContext *avctx) |
static void | mov_text_style_cb (void *priv, const char style, int close) |
static void | mov_text_color_cb (void *priv, unsigned int color, unsigned int color_id) |
static uint16_t | 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) |
static int | mov_text_encode_close (AVCodecContext *avctx) |
Variables | |
static const Box | box_types [] |
static const size_t | box_count = FF_ARRAY_ELEMS(box_types) |
static const ASSCodesCallbacks | mov_text_callbacks |
AVCodec | ff_movtext_encoder |
#define STYLE_FLAG_BOLD (1<<0) |
Definition at line 32 of file movtextenc.c.
Referenced by mov_text_style_cb().
#define STYLE_FLAG_ITALIC (1<<1) |
Definition at line 33 of file movtextenc.c.
Referenced by mov_text_style_cb().
#define STYLE_FLAG_UNDERLINE (1<<2) |
Definition at line 34 of file movtextenc.c.
Referenced by mov_text_style_cb().
#define STYLE_RECORD_SIZE 12 |
Definition at line 35 of file movtextenc.c.
Referenced by encode_styl().
#define SIZE_ADD 10 |
Definition at line 36 of file movtextenc.c.
Referenced by encode_styl().
#define STYL_BOX (1<<0) |
Definition at line 38 of file movtextenc.c.
Referenced by encode_styl(), mov_text_cleanup(), and mov_text_style_cb().
#define HLIT_BOX (1<<1) |
Definition at line 39 of file movtextenc.c.
Referenced by encode_hlit(), and mov_text_color_cb().
#define HCLR_BOX (1<<2) |
Definition at line 40 of file movtextenc.c.
Referenced by encode_hclr(), and mov_text_color_cb().
#define av_bprint_append_any | ( | buf, | |
data, | |||
size | |||
) | av_bprint_append_data(buf, ((const char*)data), size) |
Definition at line 42 of file movtextenc.c.
Referenced by encode_hclr(), encode_hlit(), and encode_styl().
|
static |
Definition at line 83 of file movtextenc.c.
Referenced by encode_styl(), and mov_text_style_cb().
|
static |
Definition at line 94 of file movtextenc.c.
|
static |
Definition at line 122 of file movtextenc.c.
|
static |
Definition at line 135 of file movtextenc.c.
|
static |
Definition at line 155 of file movtextenc.c.
Definition at line 208 of file movtextenc.c.
Definition at line 289 of file movtextenc.c.
|
static |
Definition at line 308 of file movtextenc.c.
Referenced by mov_text_text_cb().
Definition at line 328 of file movtextenc.c.
Definition at line 338 of file movtextenc.c.
|
static |
Definition at line 353 of file movtextenc.c.
|
static |
Definition at line 424 of file movtextenc.c.
|
static |
Definition at line 147 of file movtextenc.c.
|
static |
Definition at line 153 of file movtextenc.c.
Referenced by mov_text_encode_frame().
|
static |
Definition at line 346 of file movtextenc.c.
AVCodec ff_movtext_encoder |
Definition at line 432 of file movtextenc.c.