FFmpeg
|
#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "libavutil/colorspace.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Data Structures | |
struct | DVDSubContext |
Macros | |
#define | READ_OFFSET(a) (big_offsets ? AV_RB32(a) : AV_RB16(a)) |
#define | OFFSET(field) offsetof(DVDSubContext, field) |
#define | VD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static void | yuv_a_to_rgba (const uint8_t *ycbcr, const uint8_t *alpha, uint32_t *rgba, int num_values) |
static int | decode_run_2bit (GetBitContext *gb, int *color) |
static int | decode_run_8bit (GetBitContext *gb, int *color) |
static int | decode_rle (uint8_t *bitmap, int linesize, int w, int h, const uint8_t *buf, int start, int buf_size, int is_8bit) |
static void | guess_palette (DVDSubContext *ctx, uint32_t *rgba_palette, uint32_t subtitle_color) |
static int | decode_dvd_subtitles (DVDSubContext *ctx, AVSubtitle *sub_header, const uint8_t *buf, int buf_size) |
static int | is_transp (const uint8_t *buf, int pitch, int n, const uint8_t *transp_color) |
static int | find_smallest_bounding_rectangle (AVSubtitle *s) |
static int | dvdsub_decode (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static void | parse_palette (DVDSubContext *ctx, char *p) |
static int | dvdsub_parse_extradata (AVCodecContext *avctx) |
static int | dvdsub_init (AVCodecContext *avctx) |
Variables | |
static const AVOption | options [] |
class { | |
class_name = "dvdsubdec" | |
item_name = av_default_item_name | |
option = options | |
version = LIBAVUTIL_VERSION_INT | |
}; | |
AVCodec | ff_dvdsub_decoder |
Definition at line 188 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
#define OFFSET | ( | field | ) | offsetof(DVDSubContext, field) |
Definition at line 589 of file dvdsubdec.c.
#define VD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 590 of file dvdsubdec.c.
|
static |
Definition at line 41 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
|
static |
Definition at line 58 of file dvdsubdec.c.
Referenced by decode_rle().
|
static |
Definition at line 72 of file dvdsubdec.c.
Referenced by decode_rle().
|
static |
Definition at line 94 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
|
static |
Definition at line 131 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
|
static |
Definition at line 190 of file dvdsubdec.c.
Referenced by dvdsub_decode().
Definition at line 390 of file dvdsubdec.c.
Referenced by find_smallest_bounding_rectangle().
|
static |
Definition at line 403 of file dvdsubdec.c.
Referenced by dvdsub_decode().
|
static |
Definition at line 487 of file dvdsubdec.c.
|
static |
Definition at line 520 of file dvdsubdec.c.
Referenced by dvdsub_init(), and dvdsub_parse_extradata().
|
static |
Definition at line 532 of file dvdsubdec.c.
Referenced by dvdsub_init().
|
static |
Definition at line 568 of file dvdsubdec.c.
|
static |
Definition at line 591 of file dvdsubdec.c.
class_name = "dvdsubdec" |
Definition at line 596 of file dvdsubdec.c.
item_name = av_default_item_name |
Definition at line 597 of file dvdsubdec.c.
option = options |
Definition at line 598 of file dvdsubdec.c.
version = LIBAVUTIL_VERSION_INT |
Definition at line 599 of file dvdsubdec.c.
const { ... } |
AVCodec ff_dvdsub_decoder |
Definition at line 602 of file dvdsubdec.c.