Go to the source code of this file.
Classes | |
| struct | DVBSubCLUT |
| struct | DVBSubObjectDisplay |
| struct | DVBSubObject |
| struct | DVBSubRegionDisplay |
| struct | DVBSubRegion |
| struct | DVBSubContext |
Functions | |
| static void | png_save (const char *filename, uint8_t *bitmap, int w, int h, uint32_t *rgba_palette) |
| static void | png_save2 (const char *filename, uint32_t *bitmap, int w, int h) |
| static DVBSubObject * | get_object (DVBSubContext *ctx, int object_id) |
| static DVBSubCLUT * | get_clut (DVBSubContext *ctx, int clut_id) |
| static DVBSubRegion * | get_region (DVBSubContext *ctx, int region_id) |
| static void | delete_region_display_list (DVBSubContext *ctx, DVBSubRegion *region) |
| static void | delete_state (DVBSubContext *ctx) |
| static int | dvbsub_init_decoder (AVCodecContext *avctx) |
| static int | dvbsub_close_decoder (AVCodecContext *avctx) |
| static int | dvbsub_read_2bit_string (uint8_t *destbuf, int dbuf_len, uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table) |
| static int | dvbsub_read_4bit_string (uint8_t *destbuf, int dbuf_len, uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table) |
| static int | dvbsub_read_8bit_string (uint8_t *destbuf, int dbuf_len, uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table) |
| static void | dvbsub_parse_pixel_data_block (AVCodecContext *avctx, DVBSubObjectDisplay *display, uint8_t *buf, int buf_size, int top_bottom, int non_mod) |
| static void | dvbsub_parse_object_segment (AVCodecContext *avctx, uint8_t *buf, int buf_size) |
| static void | dvbsub_parse_clut_segment (AVCodecContext *avctx, uint8_t *buf, int buf_size) |
| static void | dvbsub_parse_region_segment (AVCodecContext *avctx, uint8_t *buf, int buf_size) |
| static void | dvbsub_parse_page_segment (AVCodecContext *avctx, uint8_t *buf, int buf_size) |
| static void | save_display_set (DVBSubContext *ctx) |
| static int | dvbsub_display_end_segment (AVCodecContext *avctx, uint8_t *buf, int buf_size, AVSubtitle *sub) |
| static int | dvbsub_decode (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
Variables | |
| static DVBSubCLUT | default_clut |
| AVCodec | dvbsub_decoder |
| static void png_save | ( | const char * | filename, | |
| uint8_t * | bitmap, | |||
| int | w, | |||
| int | h, | |||
| uint32_t * | rgba_palette | |||
| ) | [static] |
Definition at line 41 of file dvbsubdec.c.
| static void png_save2 | ( | const char * | filename, | |
| uint32_t * | bitmap, | |||
| int | w, | |||
| int | h | |||
| ) | [static] |
| static DVBSubObject* get_object | ( | DVBSubContext * | ctx, | |
| int | object_id | |||
| ) | [static] |
Definition at line 233 of file dvbsubdec.c.
Referenced by delete_region_display_list(), dvbsub_parse_object_segment(), and dvbsub_parse_region_segment().
| static DVBSubCLUT* get_clut | ( | DVBSubContext * | ctx, | |
| int | clut_id | |||
| ) | [static] |
Definition at line 244 of file dvbsubdec.c.
Referenced by dvbsub_display_end_segment(), dvbsub_parse_clut_segment(), and save_display_set().
| static DVBSubRegion* get_region | ( | DVBSubContext * | ctx, | |
| int | region_id | |||
| ) | [static] |
Definition at line 255 of file dvbsubdec.c.
Referenced by dvbsub_display_end_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), and save_display_set().
| static void delete_region_display_list | ( | DVBSubContext * | ctx, | |
| DVBSubRegion * | region | |||
| ) | [static] |
Definition at line 266 of file dvbsubdec.c.
Referenced by delete_state(), and dvbsub_parse_region_segment().
| static void delete_state | ( | DVBSubContext * | ctx | ) | [static] |
Definition at line 311 of file dvbsubdec.c.
Referenced by dvbsub_close_decoder(), and dvbsub_parse_page_segment().
| static int dvbsub_init_decoder | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 343 of file dvbsubdec.c.
| static int dvbsub_close_decoder | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 416 of file dvbsubdec.c.
| static int dvbsub_read_2bit_string | ( | uint8_t * | destbuf, | |
| int | dbuf_len, | |||
| uint8_t ** | srcbuf, | |||
| int | buf_size, | |||
| int | non_mod, | |||
| uint8_t * | map_table | |||
| ) | [static] |
| static int dvbsub_read_4bit_string | ( | uint8_t * | destbuf, | |
| int | dbuf_len, | |||
| uint8_t ** | srcbuf, | |||
| int | buf_size, | |||
| int | non_mod, | |||
| uint8_t * | map_table | |||
| ) | [static] |
| static int dvbsub_read_8bit_string | ( | uint8_t * | destbuf, | |
| int | dbuf_len, | |||
| uint8_t ** | srcbuf, | |||
| int | buf_size, | |||
| int | non_mod, | |||
| uint8_t * | map_table | |||
| ) | [static] |
| static void dvbsub_parse_pixel_data_block | ( | AVCodecContext * | avctx, | |
| DVBSubObjectDisplay * | display, | |||
| uint8_t * | buf, | |||
| int | buf_size, | |||
| int | top_bottom, | |||
| int | non_mod | |||
| ) | [static] |
| static void dvbsub_parse_object_segment | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static void dvbsub_parse_clut_segment | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static void dvbsub_parse_region_segment | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static void dvbsub_parse_page_segment | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static void save_display_set | ( | DVBSubContext * | ctx | ) | [static] |
| static int dvbsub_display_end_segment | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size, | |||
| AVSubtitle * | sub | |||
| ) | [static] |
| static int dvbsub_decode | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 1366 of file dvbsubdec.c.
DVBSubCLUT default_clut [static] |
Definition at line 166 of file dvbsubdec.c.
Initial value:
{
"dvbsub",
CODEC_TYPE_SUBTITLE,
CODEC_ID_DVB_SUBTITLE,
sizeof(DVBSubContext),
dvbsub_init_decoder,
NULL,
dvbsub_close_decoder,
dvbsub_decode,
}
Definition at line 1450 of file dvbsubdec.c.
1.5.5