xine-lib 1.2.11
Data Structures | Typedefs | Functions | Variables
xine_cc_decoder.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <xine/buffer.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include "cc_decoder.h"

Data Structures

struct  spucc_decoder_s
 

Typedefs

typedef struct spucc_decoder_s spucc_decoder_t
 

Functions

static void copy_str (char *d, const char *s, size_t maxbytes)
 
static void spucc_update_intrinsics (spucc_decoder_t *this)
 
static void spucc_do_close (spucc_decoder_t *this)
 
static void spucc_do_init (spucc_decoder_t *this)
 
static void spucc_cfg_enable_change (void *this_gen, xine_cfg_entry_t *value)
 
static void spucc_cfg_scheme_change (void *this_gen, xine_cfg_entry_t *value)
 
static void spucc_font_change (void *this_gen, xine_cfg_entry_t *value)
 
static void spucc_num_change (void *this_gen, xine_cfg_entry_t *value)
 
static void spucc_register_cfg_vars (spucc_class_t *this, config_values_t *xine_cfg)
 
static void spucc_notify_frame_change (spucc_decoder_t *this, int width, int height)
 
static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf)
 
static void spudec_reset (spu_decoder_t *this_gen)
 
static void spudec_discontinuity (spu_decoder_t *this_gen)
 
static void spudec_dispose (spu_decoder_t *this_gen)
 
static spu_decoder_tspudec_open_plugin (spu_decoder_class_t *class, xine_stream_t *stream)
 
static void * init_spu_decoder_plugin (xine_t *xine, const void *data)
 

Variables

static const char *const cc_schemes [2+1]
 
static const uint32_t supported_types [] = { BUF_SPU_CC, 0 }
 
static const decoder_info_t spudec_info
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Typedef Documentation

◆ spucc_decoder_t

Function Documentation

◆ copy_str()

static void copy_str ( char *  d,
const char *  s,
size_t  maxbytes 
)
static

◆ init_spu_decoder_plugin()

static void * init_spu_decoder_plugin ( xine_t xine,
const void *  data 
)
static

◆ spucc_cfg_enable_change()

static void spucc_cfg_enable_change ( void *  this_gen,
xine_cfg_entry_t value 
)
static

◆ spucc_cfg_scheme_change()

static void spucc_cfg_scheme_change ( void *  this_gen,
xine_cfg_entry_t value 
)
static

◆ spucc_do_close()

static void spucc_do_close ( spucc_decoder_t this)
static

◆ spucc_do_init()

static void spucc_do_init ( spucc_decoder_t this)
static

◆ spucc_font_change()

static void spucc_font_change ( void *  this_gen,
xine_cfg_entry_t value 
)
static

◆ spucc_notify_frame_change()

static void spucc_notify_frame_change ( spucc_decoder_t this,
int  width,
int  height 
)
static

References height, spucc_update_intrinsics(), and width.

Referenced by spudec_decode_data().

◆ spucc_num_change()

static void spucc_num_change ( void *  this_gen,
xine_cfg_entry_t value 
)
static

◆ spucc_register_cfg_vars()

static void spucc_register_cfg_vars ( spucc_class_t this,
config_values_t xine_cfg 
)
static

◆ spucc_update_intrinsics()

static void spucc_update_intrinsics ( spucc_decoder_t this)
static

◆ spudec_decode_data()

static void spudec_decode_data ( spu_decoder_t this_gen,
buf_element_t buf 
)
static

◆ spudec_discontinuity()

static void spudec_discontinuity ( spu_decoder_t this_gen)
static

Referenced by spudec_open_plugin().

◆ spudec_dispose()

static void spudec_dispose ( spu_decoder_t this_gen)
static

◆ spudec_open_plugin()

static spu_decoder_t * spudec_open_plugin ( spu_decoder_class_t class,
xine_stream_t stream 
)
static

◆ spudec_reset()

static void spudec_reset ( spu_decoder_t this_gen)
static

Referenced by spudec_open_plugin().

Variable Documentation

◆ cc_schemes

const char* const cc_schemes[2+1]
static
Initial value:
= {
"White/Gray/Translucent",
"White/Black/Solid",
}
NULL
Definition: xine_plugin.c:78

Referenced by spucc_cfg_scheme_change(), and spucc_register_cfg_vars().

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static void * init_spu_decoder_plugin(xine_t *xine, const void *data)
Definition: xine_cc_decoder.c:336
static const decoder_info_t spudec_info
Definition: xine_cc_decoder.c:359
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
#define PLUGIN_NONE
Definition: xine_plugin.h:29
#define PLUGIN_SPU_DECODER
Definition: xine_plugin.h:34

◆ spudec_info

const decoder_info_t spudec_info
static
Initial value:
= {
.supported_types = supported_types,
.priority = 1,
}
static const uint32_t supported_types[]
Definition: xine_cc_decoder.c:357

◆ supported_types

const uint32_t supported_types[] = { BUF_SPU_CC, 0 }
static