Go to the source code of this file.
|
static void | dvd_encode_rle (uint8_t **pq, const uint8_t *bitmap, int linesize, int w, int h, const int cmap[256]) |
|
static int | color_distance (uint32_t a, uint32_t b) |
|
static void | count_colors (AVCodecContext *avctx, unsigned hits[33], const AVSubtitleRect *r) |
| Count colors used in a rectangle, quantizing alpha and grouping by nearest global palette entry. More...
|
|
static void | select_palette (AVCodecContext *avctx, int out_palette[4], int out_alpha[4], unsigned hits[33]) |
|
static void | build_color_map (AVCodecContext *avctx, int cmap[], const uint32_t palette[], const int out_palette[], unsigned int const out_alpha[]) |
|
static void | copy_rectangle (AVSubtitleRect *dst, AVSubtitleRect *src, int cmap[]) |
|
static int | encode_dvd_subtitles (AVCodecContext *avctx, uint8_t *outbuf, int outbuf_size, const AVSubtitle *h) |
|
static int | dvdsub_init (AVCodecContext *avctx) |
|
static int | dvdsub_encode (AVCodecContext *avctx, unsigned char *buf, int buf_size, const AVSubtitle *sub) |
|
Value:
*q++ = bitbuf | ((
val) & 0x0f);\
else\
} while(0)
const char const char void * val
Definition at line 36 of file dvdsubenc.c.
Referenced by dvd_encode_rle().
static void dvd_encode_rle |
( |
uint8_t ** |
pq, |
|
|
const uint8_t * |
bitmap, |
|
|
int |
linesize, |
|
|
int |
w, |
|
|
int |
h, |
|
|
const int |
cmap[256] |
|
) |
| |
|
static |
static int color_distance |
( |
uint32_t |
a, |
|
|
uint32_t |
b |
|
) |
| |
|
static |
static void select_palette |
( |
AVCodecContext * |
avctx, |
|
|
int |
out_palette[4], |
|
|
int |
out_alpha[4], |
|
|
unsigned |
hits[33] |
|
) |
| |
|
static |
static void build_color_map |
( |
AVCodecContext * |
avctx, |
|
|
int |
cmap[], |
|
|
const uint32_t |
palette[], |
|
|
const int |
out_palette[], |
|
|
unsigned int const |
out_alpha[] |
|
) |
| |
|
static |
Initial value:= {
{
"even_rows_fix",
"Make number of rows even (workaround for some players)",
OFFSET(even_rows_fix),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1,
SE},
}
Definition at line 454 of file dvdsubenc.c.
Initial value:= {
.class_name = "VOBSUB subtitle encoder",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 459 of file dvdsubenc.c.
Initial value:= {
.name = "dvdsub",
}
static const AVClass dvdsubenc_class
static int dvdsub_encode(AVCodecContext *avctx, unsigned char *buf, int buf_size, const AVSubtitle *sub)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int dvdsub_init(AVCodecContext *avctx)
Definition at line 466 of file dvdsubenc.c.