xine-lib 1.2.13-20230125hg15249
|
Go to the source code of this file.
Data Structures | |
struct | xine_spu_opacity_s |
Typedefs | |
typedef struct xine_spu_opacity_s | xine_spu_opacity_t |
Functions | |
void | _x_spu_misc_init (xine_t *) |
void | _x_spu_get_opacity (xine_t *, xine_spu_opacity_t *) |
int | _x_spu_calculate_opacity (const clut_t *, uint8_t trans, const xine_spu_opacity_t *) |
void | _x_spu_dvb_opacity (xine_t *xine, uint8_t *opacity, const clut_t *clut, int *gen, uint32_t n) |
(re)calculate DVB subtitle opacity table if needed. | |
typedef struct xine_spu_opacity_s xine_spu_opacity_t |
int _x_spu_calculate_opacity | ( | const clut_t * | clut, |
uint8_t | trans, | ||
const xine_spu_opacity_t * | opacity ) |
References xine_spu_opacity_s::black, clut_s::cb, xine_spu_opacity_s::colour, clut_s::cr, and clut_s::y.
void _x_spu_dvb_opacity | ( | xine_t * | xine, |
uint8_t * | opacity, | ||
const clut_t * | clut, | ||
int * | gen, | ||
uint32_t | n ) |
(re)calculate DVB subtitle opacity table if needed.
xine | pointer to the xine instance. |
opacity | pointer to an array of 0...15 opacity values to fill in for each color. |
clut | pointer to an array of colors, with .foo set to 0...255 transparency value. |
gen | pointer to an int that you set to 0 initially, and when colors have changed. |
n | count of colors. |
References clut_union_t::c, xine_private_t::dvbsub, xine_private_t::gen, xine_private_t::tab, v, and clut_s::y.
Referenced by recalculate_trans().
void _x_spu_get_opacity | ( | xine_t * | this, |
xine_spu_opacity_t * | opacity ) |
void _x_spu_misc_init | ( | xine_t * | this | ) |
References _, _spu_dvbsub_make_tab(), _spu_dvbsub_set_black(), _spu_dvbsub_set_color(), xine_private_t::black, BLACK_OPACITY, xine_private_t::color, COLOUR_OPACITY, xine_s::config, xine_private_t::dvbsub, xine_private_t::gen, NULL, config_values_s::register_range, and xine_private_t::x.
Referenced by xine_stream_new().