|
FFmpeg
|
#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"#include "codec_internal.h"Go to the source code of this file.
Data Structures | |
| struct | FontRecord |
| struct | StyleBox |
| struct | MovTextDefault |
| 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) |
| #define | CMP(field) |
| #define | OFFSET(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 void | mov_text_parse_style_record (StyleBox *style, const uint8_t **ptr) |
| static int | mov_text_tx3g (AVCodecContext *avctx, MovTextContext *m) |
| static int | decode_twrp (const uint8_t *tsmb, MovTextContext *m, uint64_t size) |
| static int | decode_hlit (const uint8_t *tsmb, MovTextContext *m, uint64_t size) |
| static int | decode_hclr (const uint8_t *tsmb, MovTextContext *m, uint64_t size) |
| static int | styles_equivalent (const StyleBox *a, const StyleBox *b) |
| static int | decode_styl (const uint8_t *tsmb, MovTextContext *m, uint64_t size) |
| 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 av_cold int | mov_text_init (AVCodecContext *avctx) |
| static int | mov_text_decode_frame (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt) |
| static av_cold int | mov_text_decode_close (AVCodecContext *avctx) |
| static av_cold 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 |
| const FFCodec | ff_movtext_decoder |
| #define STYLE_FLAG_BOLD (1<<0) |
Definition at line 33 of file movtextdec.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), mov_text_parse_style_record(), and mov_text_style_to_flag().
| #define STYLE_FLAG_ITALIC (1<<1) |
Definition at line 34 of file movtextdec.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), mov_text_parse_style_record(), and mov_text_style_to_flag().
| #define STYLE_FLAG_UNDERLINE (1<<2) |
Definition at line 35 of file movtextdec.c.
Referenced by encode_sample_description(), mov_text_ass_style_set(), mov_text_parse_style_record(), and mov_text_style_to_flag().
| #define BOX_SIZE_INITIAL 40 |
Definition at line 37 of file movtextdec.c.
Referenced by mov_text_tx3g().
| #define STYL_BOX (1<<0) |
Definition at line 39 of file movtextdec.c.
Referenced by decode_styl(), encode_styl(), mov_text_cleanup(), mov_text_style_start(), and text_to_ass().
| #define HLIT_BOX (1<<1) |
Definition at line 40 of file movtextdec.c.
Referenced by decode_hlit(), encode_hlit(), mov_text_alpha_cb(), mov_text_color_cb(), and text_to_ass().
| #define HCLR_BOX (1<<2) |
Definition at line 41 of file movtextdec.c.
Referenced by decode_hclr(), encode_hclr(), mov_text_alpha_cb(), mov_text_color_cb(), and text_to_ass().
| #define TWRP_BOX (1<<3) |
Definition at line 42 of file movtextdec.c.
Referenced by decode_twrp(), and text_to_ass().
| #define BOTTOM_LEFT 1 |
Definition at line 44 of file movtextdec.c.
Referenced by eac_to_xyz(), mov_text_tx3g(), prepare_eac_in(), and prepare_eac_out().
| #define BOTTOM_CENTER 2 |
Definition at line 45 of file movtextdec.c.
Referenced by mov_text_tx3g().
| #define BOTTOM_RIGHT 3 |
Definition at line 46 of file movtextdec.c.
Referenced by eac_to_xyz(), mov_text_tx3g(), prepare_eac_in(), and prepare_eac_out().
| #define MIDDLE_LEFT 4 |
Definition at line 47 of file movtextdec.c.
Referenced by mov_text_tx3g().
| #define MIDDLE_CENTER 5 |
Definition at line 48 of file movtextdec.c.
Referenced by mov_text_tx3g().
| #define MIDDLE_RIGHT 6 |
Definition at line 49 of file movtextdec.c.
Referenced by mov_text_tx3g().
| #define TOP_LEFT 7 |
Definition at line 50 of file movtextdec.c.
Referenced by decode_pixel_in_context(), eac_to_xyz(), mov_text_tx3g(), mss4_decode_dct(), mss4_decode_dct_block(), prepare_eac_in(), and prepare_eac_out().
| #define TOP_CENTER 8 |
Definition at line 51 of file movtextdec.c.
Referenced by build_matrix(), and mov_text_tx3g().
| #define TOP_RIGHT 9 |
Definition at line 52 of file movtextdec.c.
Referenced by decode_pixel_in_context(), eac_to_xyz(), mov_text_tx3g(), prepare_eac_in(), and prepare_eac_out().
| #define RGB_TO_BGR | ( | c | ) |
Definition at line 54 of file movtextdec.c.
Referenced by mov_text_parse_style_record(), and mov_text_tx3g().
| #define CMP | ( | field | ) |
Referenced by styles_equivalent().
| #define OFFSET | ( | x | ) |
Definition at line 579 of file movtextdec.c.
| #define FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Definition at line 580 of file movtextdec.c.
|
static |
Definition at line 116 of file movtextdec.c.
Referenced by decode_styl(), mov_text_decode_close(), and mov_text_decode_frame().
|
static |
Definition at line 124 of file movtextdec.c.
Referenced by mov_text_decode_close(), and mov_text_tx3g().
|
static |
Definition at line 132 of file movtextdec.c.
Referenced by decode_styl(), and mov_text_tx3g().
|
static |
Definition at line 149 of file movtextdec.c.
Referenced by mov_text_init().
|
static |
Definition at line 242 of file movtextdec.c.
|
static |
Definition at line 249 of file movtextdec.c.
|
static |
Definition at line 257 of file movtextdec.c.
Definition at line 264 of file movtextdec.c.
Referenced by decode_styl().
|
static |
Definition at line 272 of file movtextdec.c.
|
static |
Definition at line 335 of file movtextdec.c.
Referenced by text_to_ass().
|
static |
Definition at line 348 of file movtextdec.c.
Referenced by mov_text_decode_frame().
|
static |
Definition at line 446 of file movtextdec.c.
|
static |
Definition at line 475 of file movtextdec.c.
|
static |
Definition at line 564 of file movtextdec.c.
|
static |
Definition at line 572 of file movtextdec.c.
|
static |
Definition at line 325 of file movtextdec.c.
Referenced by mov_text_decode_frame(), and mov_text_encode_frame().
|
static |
Definition at line 332 of file movtextdec.c.
Referenced by mov_text_decode_frame(), and mov_text_encode_frame().
|
static |
Definition at line 581 of file movtextdec.c.
|
static |
Definition at line 587 of file movtextdec.c.
| const FFCodec ff_movtext_decoder |
Definition at line 594 of file movtextdec.c.