#include "avcodec.h"#include "get_bits.h"#include "dsputil.h"#include "libavutil/colorspace.h"Go to the source code of this file.
Data Structures | |
| struct | DVDSubContext |
Defines | |
| #define | READ_OFFSET(a) (big_offsets ? AV_RB32(a) : AV_RB16(a)) |
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 (uint32_t *rgba_palette, DVDSubContext *ctx, 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 int | dvdsub_init (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_dvdsub_decoder |
| #define READ_OFFSET | ( | a | ) | (big_offsets ? AV_RB32(a) : AV_RB16(a)) |
| static int decode_dvd_subtitles | ( | DVDSubContext * | ctx, | |
| AVSubtitle * | sub_header, | |||
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [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 89 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles(), and display_end_segment().
| static int decode_run_2bit | ( | GetBitContext * | gb, | |
| int * | color | |||
| ) | [static] |
| static int decode_run_8bit | ( | GetBitContext * | gb, | |
| int * | color | |||
| ) | [static] |
| static int dvdsub_decode | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
Definition at line 483 of file dvdsubdec.c.
| static int dvdsub_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 516 of file dvdsubdec.c.
| static int find_smallest_bounding_rectangle | ( | AVSubtitle * | s | ) | [static] |
| static void guess_palette | ( | uint32_t * | rgba_palette, | |
| DVDSubContext * | ctx, | |||
| uint32_t | subtitle_color | |||
| ) | [static] |
| static int is_transp | ( | const uint8_t * | buf, | |
| int | pitch, | |||
| int | n, | |||
| const uint8_t * | transp_color | |||
| ) | [static] |
| static void yuv_a_to_rgba | ( | const uint8_t * | ycbcr, | |
| const uint8_t * | alpha, | |||
| uint32_t * | rgba, | |||
| int | num_values | |||
| ) | [static] |
Initial value:
{
.name = "dvdsub",
.type = AVMEDIA_TYPE_SUBTITLE,
.id = CODEC_ID_DVD_SUBTITLE,
.priv_data_size = sizeof(DVDSubContext),
.init = dvdsub_init,
.decode = dvdsub_decode,
.long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"),
}
Definition at line 562 of file dvdsubdec.c.
1.5.8