FFmpeg
|
#include "avcodec.h"
#include "libavcodec/ass.h"
#include "libavcodec/dvbtxt.h"
#include "libavutil/opt.h"
#include "libavutil/bprint.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.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) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) |
#define | VBI_R(rgba) (((rgba) >> 0) & 0xFF) |
#define | VBI_G(rgba) (((rgba) >> 8) & 0xFF) |
#define | VBI_B(rgba) (((rgba) >> 16) & 0xFF) |
#define | VBI_A(rgba) (((rgba) >> 24) & 0xFF) |
#define | MAX_BUFFERED_PAGES 25 |
#define | BITMAP_CHAR_WIDTH 12 |
#define | BITMAP_CHAR_HEIGHT 10 |
#define | MAX_SLICES 64 |
#define | OFFSET(x) offsetof(TeletextContext, x) |
#define | SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
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 | 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, uint8_t *buf, int size) |
static int | teletext_decode_frame (AVCodecContext *avctx, void *data, int *data_size, 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 |
AVCodec | ff_libzvbi_teletext_decoder |
#define TEXT_MAXSZ (25 * (56 + 1) * 4 + 2) |
Definition at line 32 of file libzvbi-teletextdec.c.
Referenced by gen_sub_text().
#define VBI_NB_COLORS 40 |
Definition at line 33 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), and gen_sub_bitmap().
#define VBI_TRANSPARENT_BLACK 8 |
Definition at line 34 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), and gen_sub_bitmap().
Definition at line 35 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
#define VBI_R | ( | rgba | ) | (((rgba) >> 0) & 0xFF) |
Definition at line 36 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
#define VBI_G | ( | rgba | ) | (((rgba) >> 8) & 0xFF) |
Definition at line 37 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
#define VBI_B | ( | rgba | ) | (((rgba) >> 16) & 0xFF) |
Definition at line 38 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
#define VBI_A | ( | rgba | ) | (((rgba) >> 24) & 0xFF) |
Definition at line 39 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
#define MAX_BUFFERED_PAGES 25 |
Definition at line 40 of file libzvbi-teletextdec.c.
Referenced by handler().
#define BITMAP_CHAR_WIDTH 12 |
Definition at line 41 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), gen_sub_bitmap(), and teletext_init_decoder().
#define BITMAP_CHAR_HEIGHT 10 |
Definition at line 42 of file libzvbi-teletextdec.c.
Referenced by fix_transparency(), gen_sub_bitmap(), and teletext_init_decoder().
#define MAX_SLICES 64 |
Definition at line 43 of file libzvbi-teletextdec.c.
Referenced by slice_to_vbi_lines().
#define OFFSET | ( | x | ) | offsetof(TeletextContext, x) |
Definition at line 540 of file libzvbi-teletextdec.c.
#define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 541 of file libzvbi-teletextdec.c.
Definition at line 81 of file libzvbi-teletextdec.c.
Referenced by gen_sub_text().
|
static |
Definition at line 92 of file libzvbi-teletextdec.c.
Referenced by teletext_close_decoder(), and teletext_decode_frame().
|
static |
Definition at line 100 of file libzvbi-teletextdec.c.
Referenced by gen_sub_text().
|
static |
Definition at line 117 of file libzvbi-teletextdec.c.
Referenced by handler().
|
static |
Definition at line 184 of file libzvbi-teletextdec.c.
Referenced by gen_sub_bitmap().
|
static |
Definition at line 223 of file libzvbi-teletextdec.c.
Referenced by handler().
Definition at line 280 of file libzvbi-teletextdec.c.
Referenced by avi_read_header(), 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 358 of file libzvbi-teletextdec.c.
Referenced by teletext_decode_frame().
|
static |
Definition at line 388 of file libzvbi-teletextdec.c.
|
static |
Definition at line 486 of file libzvbi-teletextdec.c.
|
static |
Definition at line 518 of file libzvbi-teletextdec.c.
Referenced by teletext_flush().
|
static |
Definition at line 535 of file libzvbi-teletextdec.c.
|
static |
Definition at line 542 of file libzvbi-teletextdec.c.
|
static |
Definition at line 557 of file libzvbi-teletextdec.c.
AVCodec ff_libzvbi_teletext_decoder |
Definition at line 564 of file libzvbi-teletextdec.c.