FFmpeg
|
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "libavutil/attributes.h"
#include "libavutil/colorspace.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "libavutil/avstring.h"
#include "libavutil/bswap.h"
Go to the source code of this file.
Data Structures | |
struct | DVDSubContext |
Macros | |
#define | READ_OFFSET(a) (big_offsets ? AV_RB32(a) : AV_RB16(a)) |
#define | OFFSET(field) offsetof(DVDSubContext, field) |
#define | SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
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 (DVDSubContext *ctx, uint32_t *rgba_palette, uint32_t subtitle_color) |
static void | reset_rects (AVSubtitle *sub_header) |
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 | append_to_cached_buf (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static int | dvdsub_decode (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static void | parse_palette (DVDSubContext *ctx, char *p) |
static int | parse_ifo_palette (DVDSubContext *ctx, char *p) |
static int | dvdsub_parse_extradata (AVCodecContext *avctx) |
static av_cold int | dvdsub_init (AVCodecContext *avctx) |
static void | dvdsub_flush (AVCodecContext *avctx) |
static av_cold int | dvdsub_close (AVCodecContext *avctx) |
Variables | |
static const AVOption | options [] |
static const AVClass | dvdsub_class |
AVCodec | ff_dvdsub_decoder |
Definition at line 218 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
#define OFFSET | ( | field | ) | offsetof(DVDSubContext, field) |
Definition at line 734 of file dvdsubdec.c.
#define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 735 of file dvdsubdec.c.
Referenced by common_vt_4t_24w_msa(), common_vt_4t_8x6_msa(), common_vt_8t_12w_msa(), copy_8x8_msa(), copy_width8_msa(), ff_loop_filter_v_16_8_msa(), ff_loop_filter_v_8_8_msa(), ff_vp8_v_loop_filter8uv_msa(), hevc_hv_4t_6w_msa(), hevc_hz_4t_6w_msa(), hevc_hz_bi_8t_24w_msa(), hevc_hz_biwgt_8t_24w_msa(), hevc_hz_biwgt_8t_48w_msa(), hevc_intra_pred_angular_lower_4width_msa(), hevc_intra_pred_angular_upper_4width_msa(), hevc_intra_pred_dc_8x8_msa(), hevc_intra_pred_horiz_8x8_msa(), hevc_intra_pred_vert_8x8_msa(), hevc_loopfilter_luma_hor_msa(), hevc_sao_edge_filter_0degree_8width_msa(), hevc_sao_edge_filter_135degree_8width_msa(), hevc_sao_edge_filter_45degree_8width_msa(), hevc_sao_edge_filter_90degree_8width_msa(), hevc_vt_4t_6w_msa(), intra_predict_hor_dc_8x8_msa(), intra_predict_mad_cow_dc_0l0_8x8_msa(), intra_predict_mad_cow_dc_l00_8x8_msa(), and intra_predict_plane_8x8_msa().
|
static |
Definition at line 50 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
|
static |
Definition at line 67 of file dvdsubdec.c.
Referenced by decode_rle().
|
static |
Definition at line 81 of file dvdsubdec.c.
Referenced by decode_rle().
|
static |
Definition at line 103 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
|
static |
Definition at line 146 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles().
|
static |
Definition at line 203 of file dvdsubdec.c.
Referenced by decode_dvd_subtitles(), and dvdsub_decode().
|
static |
Definition at line 220 of file dvdsubdec.c.
Referenced by dvdsub_decode().
Definition at line 416 of file dvdsubdec.c.
Referenced by find_smallest_bounding_rectangle().
|
static |
Definition at line 429 of file dvdsubdec.c.
Referenced by dvdsub_decode().
|
static |
Definition at line 514 of file dvdsubdec.c.
Referenced by dvdsub_decode().
|
static |
Definition at line 530 of file dvdsubdec.c.
|
static |
Definition at line 587 of file dvdsubdec.c.
Referenced by dvdsub_init(), and dvdsub_parse_extradata().
|
static |
Definition at line 599 of file dvdsubdec.c.
Referenced by dvdsub_init().
|
static |
Definition at line 659 of file dvdsubdec.c.
Referenced by dvdsub_init().
|
static |
Definition at line 699 of file dvdsubdec.c.
|
static |
Definition at line 722 of file dvdsubdec.c.
Referenced by dvdsub_close().
|
static |
Definition at line 728 of file dvdsubdec.c.
|
static |
Definition at line 736 of file dvdsubdec.c.
|
static |
Definition at line 742 of file dvdsubdec.c.
AVCodec ff_dvdsub_decoder |
Definition at line 749 of file dvdsubdec.c.