|
FFmpeg
|
#include "avcodec.h"#include "libavcodec/ass.h"#include "codec_internal.h"#include "libavcodec/dvbtxt.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/bprint.h"#include "libavutil/internal.h"#include "libavutil/log.h"#include "libavutil/common.h"#include <libzvbi.h>Go to the source code of this file.
Data Structures | |
| struct | TeletextPage |
| struct | TeletextContext |
Macros | |
| #define | TEXT_MAXSZ (25 * (56 + 1) * 4 + 2) |
| #define | VBI_NB_COLORS 40 |
| #define | VBI_TRANSPARENT_BLACK 8 |
| #define | RGBA(r, g, b, a) |
| #define | VBI_R(rgba) |
| #define | VBI_G(rgba) |
| #define | VBI_B(rgba) |
| #define | VBI_A(rgba) |
| #define | MAX_BUFFERED_PAGES 25 |
| #define | BITMAP_CHAR_WIDTH 12 |
| #define | BITMAP_CHAR_HEIGHT 10 |
| #define | MAX_SLICES 64 |
| #define | IS_TXT_SPACE(ch) |
| #define | OFFSET(x) |
| #define | SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
| 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) |
Variables | |
| static const AVOption | options [] |
| static const AVClass | teletext_class |
| const FFCodec | ff_libzvbi_teletext_decoder |
| #define TEXT_MAXSZ (25 * (56 + 1) * 4 + 2) |
Definition at line 34 of file libzvbi-teletextdec.c.
Referenced by gen_sub_text().
| #define VBI_NB_COLORS 40 |
Definition at line 35 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), and gen_sub_bitmap().
| #define VBI_TRANSPARENT_BLACK 8 |
Definition at line 36 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), and gen_sub_bitmap().
| #define VBI_R | ( | rgba | ) |
Definition at line 38 of file libzvbi-teletextdec.c.
Referenced by bprint_color(), and gen_sub_bitmap().
| #define VBI_G | ( | rgba | ) |
Definition at line 39 of file libzvbi-teletextdec.c.
Referenced by bprint_color(), and gen_sub_bitmap().
| #define VBI_B | ( | rgba | ) |
Definition at line 40 of file libzvbi-teletextdec.c.
Referenced by bprint_color(), and gen_sub_bitmap().
| #define VBI_A | ( | rgba | ) |
Definition at line 41 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
| #define MAX_BUFFERED_PAGES 25 |
Definition at line 42 of file libzvbi-teletextdec.c.
Referenced by handler().
| #define BITMAP_CHAR_WIDTH 12 |
Definition at line 43 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), gen_sub_bitmap(), and teletext_init_decoder().
| #define BITMAP_CHAR_HEIGHT 10 |
Definition at line 44 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), gen_sub_bitmap(), and teletext_init_decoder().
| #define MAX_SLICES 64 |
Definition at line 45 of file libzvbi-teletextdec.c.
| #define IS_TXT_SPACE | ( | ch | ) |
Definition at line 242 of file libzvbi-teletextdec.c.
Referenced by decode_string(), and get_trim_info().
| #define OFFSET | ( | x | ) |
Definition at line 790 of file libzvbi-teletextdec.c.
| #define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 791 of file libzvbi-teletextdec.c.
|
static |
Definition at line 85 of file libzvbi-teletextdec.c.
Referenced by teletext_init_decoder().
|
static |
Definition at line 131 of file libzvbi-teletextdec.c.
Referenced by gen_sub_text().
|
static |
Definition at line 142 of file libzvbi-teletextdec.c.
Referenced by teletext_close_decoder(), and teletext_decode_frame().
|
static |
Definition at line 150 of file libzvbi-teletextdec.c.
Referenced by gen_sub_text().
|
static |
Definition at line 167 of file libzvbi-teletextdec.c.
Referenced by handler().
|
static |
Definition at line 234 of file libzvbi-teletextdec.c.
Referenced by decode_string().
|
static |
Definition at line 245 of file libzvbi-teletextdec.c.
Referenced by gen_sub_ass().
|
static |
Definition at line 265 of file libzvbi-teletextdec.c.
Referenced by gen_sub_ass().
|
static |
Definition at line 295 of file libzvbi-teletextdec.c.
Referenced by handler().
|
static |
Definition at line 412 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
|
static |
Definition at line 453 of file libzvbi-teletextdec.c.
Referenced by handler().
|
static |
Definition at line 510 of file libzvbi-teletextdec.c.
Referenced by avi_read_header(), ff_rdt_parse_open(), ff_rtp_handler_find_by_id(), ff_rtp_handler_find_by_name(), ff_rtp_parse_set_dynamic_protocol(), and teletext_decode_frame().
|
static |
Definition at line 586 of file libzvbi-teletextdec.c.
Referenced by teletext_decode_frame().
|
static |
Definition at line 642 of file libzvbi-teletextdec.c.
|
static |
Definition at line 728 of file libzvbi-teletextdec.c.
|
static |
Definition at line 765 of file libzvbi-teletextdec.c.
Referenced by teletext_flush().
|
static |
Definition at line 785 of file libzvbi-teletextdec.c.
|
static |
Definition at line 792 of file libzvbi-teletextdec.c.
|
static |
Definition at line 809 of file libzvbi-teletextdec.c.
| const FFCodec ff_libzvbi_teletext_decoder |
Definition at line 816 of file libzvbi-teletextdec.c.