Go to the source code of this file.
|
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 void | reset_rects (AVSubtitle *sub_header) |
|
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 | append_to_cached_buf (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
|
static int | dvdsub_decode (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
|
static void | parse_palette (DVDSubContext *ctx, char *p) |
|
static int | parse_ifo_palette (DVDSubContext *ctx, char *p) |
|
static int | dvdsub_parse_extradata (AVCodecContext *avctx) |
|
static av_cold int | dvdsub_init (AVCodecContext *avctx) |
|
static void | dvdsub_flush (AVCodecContext *avctx) |
|
static av_cold int | dvdsub_close (AVCodecContext *avctx) |
|
◆ READ_OFFSET
◆ OFFSET
◆ SD
◆ yuv_a_to_rgba()
static void yuv_a_to_rgba |
( |
const uint8_t * |
ycbcr, |
|
|
const uint8_t * |
alpha, |
|
|
uint32_t * |
rgba, |
|
|
int |
num_values |
|
) |
| |
|
static |
◆ decode_run_2bit()
◆ decode_run_8bit()
◆ decode_rle()
◆ guess_palette()
static void guess_palette |
( |
DVDSubContext * |
ctx, |
|
|
uint32_t * |
rgba_palette, |
|
|
uint32_t |
subtitle_color |
|
) |
| |
|
static |
◆ reset_rects()
◆ decode_dvd_subtitles()
◆ is_transp()
◆ find_smallest_bounding_rectangle()
◆ append_to_cached_buf()
◆ dvdsub_decode()
◆ parse_palette()
◆ parse_ifo_palette()
◆ dvdsub_parse_extradata()
◆ dvdsub_init()
◆ dvdsub_flush()
◆ dvdsub_close()
◆ options
Initial value:= {
{
"forced_subs_only",
"Only show forced subtitles",
OFFSET(forced_subs_only),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, SD},
}
Definition at line 771 of file dvdsubdec.c.
◆ dvdsub_class
Initial value:= {
.class_name = "dvdsubdec",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 777 of file dvdsubdec.c.
◆ ff_dvdsub_decoder
Initial value:= {
.name = "dvdsub",
}
static void dvdsub_flush(AVCodecContext *avctx)
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static av_cold int dvdsub_close(AVCodecContext *avctx)
static av_cold int dvdsub_init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass dvdsub_class
static int dvdsub_decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition at line 784 of file dvdsubdec.c.