xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions
spu.c File Reference
#include <xine/configfile.h>
#include <xine/xine_internal.h>
#include <xine/spu.h>
#include <xine.h>
#include "xine_private.h"

Data Structures

union  clut_union_t
 

Macros

#define BLACK_OPACITY   67
 
#define COLOUR_OPACITY   100
 

Functions

static void _spu_dvbsub_make_tab (xine_private_t *xine)
 
static void _spu_dvbsub_set_black (void *data, xine_cfg_entry_t *entry)
 
static void _spu_dvbsub_set_color (void *data, xine_cfg_entry_t *entry)
 
void _x_spu_misc_init (xine_t *this)
 
void _x_spu_get_opacity (xine_t *this, xine_spu_opacity_t *opacity)
 
int _x_spu_calculate_opacity (const clut_t *clut, uint8_t trans, const xine_spu_opacity_t *opacity)
 
void _x_spu_dvb_opacity (xine_t *this, uint8_t *opacity, const clut_t *clut, int *gen, uint32_t n)
 (re)calculate DVB subtitle opacity table if needed.
 

Macro Definition Documentation

◆ BLACK_OPACITY

#define BLACK_OPACITY   67

◆ COLOUR_OPACITY

#define COLOUR_OPACITY   100

Function Documentation

◆ _spu_dvbsub_make_tab()

static void _spu_dvbsub_make_tab ( xine_private_t * xine)
static

◆ _spu_dvbsub_set_black()

static void _spu_dvbsub_set_black ( void * data,
xine_cfg_entry_t * entry )
static

◆ _spu_dvbsub_set_color()

static void _spu_dvbsub_set_color ( void * data,
xine_cfg_entry_t * entry )
static

◆ _x_spu_calculate_opacity()

int _x_spu_calculate_opacity ( const clut_t * clut,
uint8_t trans,
const xine_spu_opacity_t * opacity )

◆ _x_spu_dvb_opacity()

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.

Parameters
xinepointer to the xine instance.
opacitypointer to an array of 0...15 opacity values to fill in for each color.
clutpointer to an array of colors, with .foo set to 0...255 transparency value.
genpointer to an int that you set to 0 initially, and when colors have changed.
ncount 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().

◆ _x_spu_get_opacity()

void _x_spu_get_opacity ( xine_t * this,
xine_spu_opacity_t * opacity )

◆ _x_spu_misc_init()

void _x_spu_misc_init ( xine_t * this)