FFmpeg
4.4
|
#include "avcodec.h"
#include "ass.h"
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures | |
struct | MovTextDefault |
struct | FontRecord |
struct | StyleBox |
struct | HighlightBox |
struct | HilightcolorBox |
struct | TextWrapBox |
struct | MovTextContext |
struct | Box |
Macros | |
#define | STYLE_FLAG_BOLD (1<<0) |
#define | STYLE_FLAG_ITALIC (1<<1) |
#define | STYLE_FLAG_UNDERLINE (1<<2) |
#define | BOX_SIZE_INITIAL 40 |
#define | STYL_BOX (1<<0) |
#define | HLIT_BOX (1<<1) |
#define | HCLR_BOX (1<<2) |
#define | TWRP_BOX (1<<3) |
#define | BOTTOM_LEFT 1 |
#define | BOTTOM_CENTER 2 |
#define | BOTTOM_RIGHT 3 |
#define | MIDDLE_LEFT 4 |
#define | MIDDLE_CENTER 5 |
#define | MIDDLE_RIGHT 6 |
#define | TOP_LEFT 7 |
#define | TOP_CENTER 8 |
#define | TOP_RIGHT 9 |
#define | RGB_TO_BGR(c) (((c) & 0xff) << 16 | ((c) & 0xff00) | (((c) >> 16) & 0xff)) |
#define | OFFSET(x) offsetof(MovTextContext, x) |
#define | FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Functions | |
static void | mov_text_cleanup (MovTextContext *m) |
static void | mov_text_cleanup_ftab (MovTextContext *m) |
static int | mov_text_tx3g (AVCodecContext *avctx, MovTextContext *m) |
static int | decode_twrp (const uint8_t *tsmb, MovTextContext *m, const AVPacket *avpkt) |
static int | decode_hlit (const uint8_t *tsmb, MovTextContext *m, const AVPacket *avpkt) |
static int | decode_hclr (const uint8_t *tsmb, MovTextContext *m, const AVPacket *avpkt) |
static int | decode_styl (const uint8_t *tsmb, MovTextContext *m, const AVPacket *avpkt) |
static int | get_utf8_length_at (const char *text, const char *text_end) |
static int | text_to_ass (AVBPrint *buf, const char *text, const char *text_end, AVCodecContext *avctx) |
static int | mov_text_init (AVCodecContext *avctx) |
static int | mov_text_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt) |
static int | mov_text_decode_close (AVCodecContext *avctx) |
static void | mov_text_flush (AVCodecContext *avctx) |
Variables | |
static const Box | box_types [] |
static const size_t | box_count = FF_ARRAY_ELEMS(box_types) |
static const AVOption | options [] |
static const AVClass | mov_text_decoder_class |
AVCodec | ff_movtext_decoder |
#define STYLE_FLAG_BOLD (1<<0) |
Definition at line 32 of file movtextdec.c.
#define STYLE_FLAG_ITALIC (1<<1) |
Definition at line 33 of file movtextdec.c.
#define STYLE_FLAG_UNDERLINE (1<<2) |
Definition at line 34 of file movtextdec.c.
#define BOX_SIZE_INITIAL 40 |
Definition at line 36 of file movtextdec.c.
#define STYL_BOX (1<<0) |
Definition at line 38 of file movtextdec.c.
#define HLIT_BOX (1<<1) |
Definition at line 39 of file movtextdec.c.
#define HCLR_BOX (1<<2) |
Definition at line 40 of file movtextdec.c.
#define TWRP_BOX (1<<3) |
Definition at line 41 of file movtextdec.c.
#define BOTTOM_LEFT 1 |
Definition at line 43 of file movtextdec.c.
#define BOTTOM_CENTER 2 |
Definition at line 44 of file movtextdec.c.
#define BOTTOM_RIGHT 3 |
Definition at line 45 of file movtextdec.c.
#define MIDDLE_LEFT 4 |
Definition at line 46 of file movtextdec.c.
#define MIDDLE_CENTER 5 |
Definition at line 47 of file movtextdec.c.
#define MIDDLE_RIGHT 6 |
Definition at line 48 of file movtextdec.c.
#define TOP_LEFT 7 |
Definition at line 49 of file movtextdec.c.
#define TOP_CENTER 8 |
Definition at line 50 of file movtextdec.c.
#define TOP_RIGHT 9 |
Definition at line 51 of file movtextdec.c.
Definition at line 53 of file movtextdec.c.
#define OFFSET | ( | x | ) | offsetof(MovTextContext, x) |
Definition at line 570 of file movtextdec.c.
#define FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Definition at line 571 of file movtextdec.c.
|
static |
Definition at line 123 of file movtextdec.c.
Referenced by decode_styl(), mov_text_decode_close(), and mov_text_decode_frame().
|
static |
Definition at line 131 of file movtextdec.c.
Referenced by mov_text_decode_close(), and mov_text_tx3g().
|
static |
Definition at line 139 of file movtextdec.c.
Referenced by mov_text_init().
|
static |
Definition at line 243 of file movtextdec.c.
|
static |
Definition at line 250 of file movtextdec.c.
|
static |
Definition at line 258 of file movtextdec.c.
|
static |
Definition at line 265 of file movtextdec.c.
|
static |
Definition at line 322 of file movtextdec.c.
Referenced by text_to_ass().
|
static |
Definition at line 335 of file movtextdec.c.
Referenced by mov_text_decode_frame().
|
static |
Definition at line 432 of file movtextdec.c.
|
static |
Definition at line 460 of file movtextdec.c.
|
static |
Definition at line 555 of file movtextdec.c.
|
static |
Definition at line 563 of file movtextdec.c.
|
static |
Definition at line 312 of file movtextdec.c.
Referenced by mov_text_decode_frame().
|
static |
Definition at line 319 of file movtextdec.c.
Referenced by mov_text_decode_frame().
|
static |
Definition at line 572 of file movtextdec.c.
|
static |
Definition at line 578 of file movtextdec.c.
AVCodec ff_movtext_decoder |
Definition at line 585 of file movtextdec.c.