Go to the source code of this file.
|
static int | my_ass_subtitle_header (AVCodecContext *avctx) |
|
static int | chop_spaces_utf8 (const unsigned char *t, int len) |
|
static void | subtitle_rect_free (AVSubtitleRect **sub_rect) |
|
static char * | create_ass_text (TeletextContext *ctx, const char *text) |
|
static int | gen_sub_text (TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top) |
|
static void | bprint_color (const char *type, AVBPrint *buf, vbi_page *page, unsigned ci) |
|
static void | get_trim_info (vbi_page *page, vbi_char *row, int *leading, int *trailing, int *olen) |
|
static void | decode_string (vbi_page *page, vbi_char *row, AVBPrint *buf, int start, int end, vbi_color *cur_color, vbi_color *cur_back_color) |
|
static int | gen_sub_ass (TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top) |
|
static void | fix_transparency (TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top, int resx, int resy) |
|
static int | gen_sub_bitmap (TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top) |
|
static void | handler (vbi_event *ev, void *user_data) |
|
static int | slice_to_vbi_lines (TeletextContext *ctx, const uint8_t *buf, int size) |
|
static int | teletext_decode_frame (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *pkt) |
|
static int | teletext_init_decoder (AVCodecContext *avctx) |
|
static int | teletext_close_decoder (AVCodecContext *avctx) |
|
static void | teletext_flush (AVCodecContext *avctx) |
|
◆ TEXT_MAXSZ
#define TEXT_MAXSZ (25 * (56 + 1) * 4 + 2) |
◆ VBI_NB_COLORS
◆ VBI_TRANSPARENT_BLACK
#define VBI_TRANSPARENT_BLACK 8 |
◆ RGBA
#define RGBA |
( |
|
r, |
|
|
|
g, |
|
|
|
b, |
|
|
|
a |
|
) |
| (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) |
◆ VBI_R
#define VBI_R |
( |
|
rgba | ) |
(((rgba) >> 0) & 0xFF) |
◆ VBI_G
#define VBI_G |
( |
|
rgba | ) |
(((rgba) >> 8) & 0xFF) |
◆ VBI_B
#define VBI_B |
( |
|
rgba | ) |
(((rgba) >> 16) & 0xFF) |
◆ VBI_A
#define VBI_A |
( |
|
rgba | ) |
(((rgba) >> 24) & 0xFF) |
◆ MAX_BUFFERED_PAGES
#define MAX_BUFFERED_PAGES 25 |
◆ BITMAP_CHAR_WIDTH
#define BITMAP_CHAR_WIDTH 12 |
◆ BITMAP_CHAR_HEIGHT
#define BITMAP_CHAR_HEIGHT 10 |
◆ MAX_SLICES
◆ IS_TXT_SPACE
#define IS_TXT_SPACE |
( |
|
ch | ) |
|
Value: ((ch).unicode < 0x0020 || (ch).unicode >= 0xe000 || (ch).unicode == 0x00a0 ||\
(ch).size > VBI_DOUBLE_SIZE || (ch).opacity == VBI_TRANSPARENT_SPACE)
Definition at line 242 of file libzvbi-teletextdec.c.
◆ OFFSET
◆ SD
◆ my_ass_subtitle_header()
◆ chop_spaces_utf8()
static int chop_spaces_utf8 |
( |
const unsigned char * |
t, |
|
|
int |
len |
|
) |
| |
|
static |
◆ subtitle_rect_free()
◆ create_ass_text()
◆ gen_sub_text()
◆ bprint_color()
static void bprint_color |
( |
const char * |
type, |
|
|
AVBPrint * |
buf, |
|
|
vbi_page * |
page, |
|
|
unsigned |
ci |
|
) |
| |
|
static |
◆ get_trim_info()
static void get_trim_info |
( |
vbi_page * |
page, |
|
|
vbi_char * |
row, |
|
|
int * |
leading, |
|
|
int * |
trailing, |
|
|
int * |
olen |
|
) |
| |
|
static |
◆ decode_string()
static void decode_string |
( |
vbi_page * |
page, |
|
|
vbi_char * |
row, |
|
|
AVBPrint * |
buf, |
|
|
int |
start, |
|
|
int |
end, |
|
|
vbi_color * |
cur_color, |
|
|
vbi_color * |
cur_back_color |
|
) |
| |
|
static |
◆ gen_sub_ass()
◆ fix_transparency()
◆ gen_sub_bitmap()
◆ handler()
static void handler |
( |
vbi_event * |
ev, |
|
|
void * |
user_data |
|
) |
| |
|
static |
◆ slice_to_vbi_lines()
◆ teletext_decode_frame()
◆ teletext_init_decoder()
◆ teletext_close_decoder()
◆ teletext_flush()
◆ options
Initial value:= {
{
"txt_page",
"page numbers to decode, subtitle for subtitles, * for all",
OFFSET(pgno),
AV_OPT_TYPE_STRING, {.str =
"*"}, 0, 0,
SD},
{
"txt_default_region",
"default G0 character set used for decoding",
OFFSET(default_region),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, 87,
SD},
{
"txt_format",
"format of the subtitles (bitmap or text or ass)",
OFFSET(format_id),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, 2,
SD, .unit =
"txt_format"},
{
"txt_chop_spaces",
"chops leading and trailing spaces from text",
OFFSET(chop_spaces),
AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1,
SD},
{
"txt_duration",
"display duration of teletext pages in msecs",
OFFSET(sub_duration),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, 86400000,
SD},
{
"txt_transparent",
"force transparent background of the teletext",
OFFSET(transparent_bg),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1,
SD},
{
"txt_opacity",
"set opacity of the transparent background",
OFFSET(opacity),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, 255,
SD},
}
Definition at line 790 of file libzvbi-teletextdec.c.
◆ teletext_class
◆ ff_libzvbi_teletext_decoder
const FFCodec ff_libzvbi_teletext_decoder |
Initial value:= {
.p.name = "libzvbi_teletextdec",
.p.wrapper_name = "libzvbi",
}
Definition at line 814 of file libzvbi-teletextdec.c.
static int teletext_close_decoder(AVCodecContext *avctx)
static int teletext_decode_frame(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *pkt)
static int teletext_init_decoder(AVCodecContext *avctx)
static const AVOption options[]
static void teletext_flush(AVCodecContext *avctx)
static const AVClass teletext_class