Go to the source code of this file.
Functions | |
| static void | yuv_a_to_rgba (const uint8_t *ycbcr, const uint8_t *alpha, uint32_t *rgba, int num_values) |
| static int | dvdsub_init_decoder (AVCodecContext *avctx) |
| 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 (uint32_t *rgba_palette, uint8_t *colormap, uint8_t *alpha, uint32_t subtitle_color) |
| static int | decode_dvd_subtitles (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_close_decoder (AVCodecContext *avctx) |
| static void | ppm_save (const char *filename, uint8_t *bitmap, int w, int h, uint32_t *rgba_palette) |
| static int | dvdsub_decode (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
Variables | |
| AVCodec | dvdsub_decoder |
| static void yuv_a_to_rgba | ( | const uint8_t * | ycbcr, | |
| const uint8_t * | alpha, | |||
| uint32_t * | rgba, | |||
| int | num_values | |||
| ) | [static] |
| static int dvdsub_init_decoder | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 45 of file dvdsubdec.c.
| static int decode_run_2bit | ( | GetBitContext * | gb, | |
| int * | color | |||
| ) | [static] |
| static int decode_run_8bit | ( | GetBitContext * | gb, | |
| int * | color | |||
| ) | [static] |
| 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] |
Definition at line 86 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles(), and decode_frame().
| static int decode_dvd_subtitles | ( | AVSubtitle * | sub_header, | |
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static int is_transp | ( | const uint8_t * | buf, | |
| int | pitch, | |||
| int | n, | |||
| const uint8_t * | transp_color | |||
| ) | [static] |
| static int find_smallest_bounding_rectangle | ( | AVSubtitle * | s | ) | [static] |
| static int dvdsub_close_decoder | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 446 of file dvdsubdec.c.
| static void ppm_save | ( | const char * | filename, | |
| uint8_t * | bitmap, | |||
| int | w, | |||
| int | h, | |||
| uint32_t * | rgba_palette | |||
| ) | [static] |
| static int dvdsub_decode | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 480 of file dvdsubdec.c.
Initial value:
{
"dvdsub",
CODEC_TYPE_SUBTITLE,
CODEC_ID_DVD_SUBTITLE,
0,
dvdsub_init_decoder,
NULL,
dvdsub_close_decoder,
dvdsub_decode,
}
Definition at line 510 of file dvdsubdec.c.
1.5.5