FFmpeg
|
#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
#include "libavutil/colorspace.h"
#include "libavutil/opt.h"
Go to the source code of this file.
Data Structures | |
struct | DVBSubCLUT |
struct | DVBSubObjectDisplay |
struct | DVBSubObject |
struct | DVBSubRegionDisplay |
struct | DVBSubRegion |
struct | DVBSubDisplayDefinition |
struct | DVBSubContext |
Macros | |
#define | DVBSUB_PAGE_SEGMENT 0x10 |
#define | DVBSUB_REGION_SEGMENT 0x11 |
#define | DVBSUB_CLUT_SEGMENT 0x12 |
#define | DVBSUB_OBJECT_SEGMENT 0x13 |
#define | DVBSUB_DISPLAYDEFINITION_SEGMENT 0x14 |
#define | DVBSUB_DISPLAY_SEGMENT 0x80 |
#define | cm (ff_crop_tab + MAX_NEG_CROP) |
#define | RGBA(r, g, b, a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) |
#define | DS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Functions | |
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_cluts (DVBSubContext *ctx) |
static void | delete_objects (DVBSubContext *ctx) |
static void | delete_regions (DVBSubContext *ctx) |
static av_cold int | dvbsub_init_decoder (AVCodecContext *avctx) |
static av_cold int | dvbsub_close_decoder (AVCodecContext *avctx) |
static int | dvbsub_read_2bit_string (uint8_t *destbuf, int dbuf_len, const uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table, int x_pos) |
static int | dvbsub_read_4bit_string (uint8_t *destbuf, int dbuf_len, const uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table, int x_pos) |
static int | dvbsub_read_8bit_string (uint8_t *destbuf, int dbuf_len, const uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table, int x_pos) |
static void | save_subtitle_set (AVCodecContext *avctx, AVSubtitle *sub, int *got_output) |
static void | dvbsub_parse_pixel_data_block (AVCodecContext *avctx, DVBSubObjectDisplay *display, const uint8_t *buf, int buf_size, int top_bottom, int non_mod) |
static void | dvbsub_parse_object_segment (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static int | dvbsub_parse_clut_segment (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static void | dvbsub_parse_region_segment (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static void | dvbsub_parse_page_segment (AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output) |
static void | dvbsub_parse_display_definition_segment (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static void | dvbsub_display_end_segment (AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output) |
static int | dvbsub_decode (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
Variables | |
static DVBSubCLUT | default_clut |
static const AVOption | options [] |
static const AVClass | dvbsubdec_class |
AVCodec | ff_dvbsub_decoder |
#define DVBSUB_PAGE_SEGMENT 0x10 |
Definition at line 28 of file dvbsubdec.c.
Referenced by dvbsub_decode().
#define DVBSUB_REGION_SEGMENT 0x11 |
Definition at line 29 of file dvbsubdec.c.
Referenced by dvbsub_decode().
#define DVBSUB_CLUT_SEGMENT 0x12 |
Definition at line 30 of file dvbsubdec.c.
Referenced by dvbsub_decode().
#define DVBSUB_OBJECT_SEGMENT 0x13 |
Definition at line 31 of file dvbsubdec.c.
Referenced by dvbsub_decode().
#define DVBSUB_DISPLAYDEFINITION_SEGMENT 0x14 |
Definition at line 32 of file dvbsubdec.c.
Referenced by dvbsub_decode().
#define DVBSUB_DISPLAY_SEGMENT 0x80 |
Definition at line 33 of file dvbsubdec.c.
Referenced by dvbsub_decode().
#define cm (ff_crop_tab + MAX_NEG_CROP) |
Definition at line 35 of file dvbsubdec.c.
Referenced by cavs_idct8_add_c(), celt_decode_band(), celt_decode_bands(), config_output(), deinterlace_line_c(), deinterlace_line_inplace_c(), filter_common(), filter_frame(), filter_mbedge(), h_block_filter(), intra_pred_plane(), mp_yuv_to_rgb(), parse_palette_segment(), pred16x16_tm_vp8_c(), pred4x4_tm_vp8_c(), pred8x8_tm_vp8_c(), query_codec(), rv30_weak_loop_filter(), rv40_weak_loop_filter(), uninit(), v_block_filter(), wmv2_mspel8_h_lowpass(), wmv2_mspel8_v_lowpass(), and yuv_a_to_rgba().
Definition at line 152 of file dvbsubdec.c.
Referenced by dvbsub_init_decoder(), dvbsub_parse_clut_segment(), ff_sws_init_swscale_x86(), and findRgbConvFn().
#define DS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM |
Definition at line 1588 of file dvbsubdec.c.
|
static |
Definition at line 249 of file dvbsubdec.c.
Referenced by delete_region_display_list(), dvbsub_parse_object_segment(), and dvbsub_parse_region_segment().
|
static |
Definition at line 260 of file dvbsubdec.c.
Referenced by dvbsub_parse_clut_segment().
|
static |
Definition at line 271 of file dvbsubdec.c.
Referenced by dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), and save_subtitle_set().
|
static |
Definition at line 282 of file dvbsubdec.c.
Referenced by delete_regions(), and dvbsub_parse_region_segment().
|
static |
Definition at line 328 of file dvbsubdec.c.
Referenced by dvbsub_close_decoder(), and dvbsub_parse_page_segment().
|
static |
Definition at line 341 of file dvbsubdec.c.
Referenced by dvbsub_close_decoder(), and dvbsub_parse_page_segment().
|
static |
Definition at line 354 of file dvbsubdec.c.
Referenced by dvbsub_close_decoder(), and dvbsub_parse_page_segment().
|
static |
Definition at line 370 of file dvbsubdec.c.
|
static |
Definition at line 454 of file dvbsubdec.c.
|
static |
Definition at line 477 of file dvbsubdec.c.
Referenced by dvbsub_parse_pixel_data_block().
|
static |
Definition at line 584 of file dvbsubdec.c.
Referenced by dvbsub_parse_pixel_data_block().
|
static |
Definition at line 707 of file dvbsubdec.c.
Referenced by dvbsub_parse_pixel_data_block().
|
static |
Definition at line 766 of file dvbsubdec.c.
Referenced by dvbsub_display_end_segment(), and dvbsub_parse_page_segment().
|
static |
Definition at line 857 of file dvbsubdec.c.
Referenced by dvbsub_parse_object_segment().
|
static |
Definition at line 973 of file dvbsubdec.c.
Referenced by dvbsub_decode().
|
static |
Definition at line 1032 of file dvbsubdec.c.
Referenced by dvbsub_decode().
|
static |
Definition at line 1129 of file dvbsubdec.c.
Referenced by dvbsub_decode().
|
static |
Definition at line 1245 of file dvbsubdec.c.
Referenced by dvbsub_decode().
|
static |
Definition at line 1422 of file dvbsubdec.c.
Referenced by dvbsub_decode().
|
static |
Definition at line 1466 of file dvbsubdec.c.
Referenced by dvbsub_decode().
|
static |
Definition at line 1479 of file dvbsubdec.c.
|
static |
Definition at line 165 of file dvbsubdec.c.
|
static |
Definition at line 1589 of file dvbsubdec.c.
|
static |
Definition at line 1593 of file dvbsubdec.c.
AVCodec ff_dvbsub_decoder |
Definition at line 1600 of file dvbsubdec.c.