xine-lib 1.2.13-20230125hg15249
Functions | Variables
spu_decoder.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include <sys/types.h>
#include <xine/xine_internal.h>
#include <xine/buffer.h>
#include "xine-engine/bswap.h"
#include <xine/xineutils.h>
#include "nav_read.h"
#include "nav_types.h"
#include "spudec.h"

Functions

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 int spudec_get_interact_info (spu_decoder_t *this_gen, void *data)
 
static void spudec_set_button (spu_decoder_t *this_gen, int32_t button, int32_t show)
 
static spu_decoder_topen_plugin (spu_decoder_class_t *class_gen, xine_stream_t *stream)
 
static void * init_plugin (xine_t *xine, const void *data)
 

Variables

static const clut_t default_clut []
 
static const uint32_t supported_types [] = { BUF_SPU_DVD, 0 }
 
static const decoder_info_t dec_info_data
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Function Documentation

◆ init_plugin()

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

◆ open_plugin()

static spu_decoder_t * open_plugin ( spu_decoder_class_t * class_gen,
xine_stream_t * stream )
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

References spudec_clear_nav_list().

Referenced by open_plugin().

◆ spudec_dispose()

static void spudec_dispose ( spu_decoder_t * this_gen)
static

◆ spudec_get_interact_info()

static int spudec_get_interact_info ( spu_decoder_t * this_gen,
void * data )
static

References spudec_update_nav().

Referenced by open_plugin().

◆ spudec_reset()

static void spudec_reset ( spu_decoder_t * this_gen)
static

◆ spudec_set_button()

static void spudec_set_button ( spu_decoder_t * this_gen,
int32_t button,
int32_t show )
static

Variable Documentation

◆ dec_info_data

const decoder_info_t dec_info_data
static
Initial value:
= {
.supported_types = supported_types,
.priority = 5,
}
static const uint32_t supported_types[]
Definition spu_decoder.c:379

◆ default_clut

const clut_t default_clut[]
static
Initial value:
= {
CLUT_Y_CR_CB_INIT(0x00, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0xbf, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x10, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x28, 0x6d, 0xef),
CLUT_Y_CR_CB_INIT(0x51, 0xef, 0x5a),
CLUT_Y_CR_CB_INIT(0xbf, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x36, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x28, 0x6d, 0xef),
CLUT_Y_CR_CB_INIT(0xbf, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x51, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0xbf, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x10, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x28, 0x6d, 0xef),
CLUT_Y_CR_CB_INIT(0x5c, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0xbf, 0x80, 0x80),
CLUT_Y_CR_CB_INIT(0x1c, 0x80, 0x80),
}
#define CLUT_Y_CR_CB_INIT(_y, _cr, _cb)
Definition video_overlay.h:31

Referenced by _clut_reset(), and open_plugin().

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static const decoder_info_t dec_info_data
Definition spu_decoder.c:381
static void * init_plugin(xine_t *xine, const void *data)
Definition spu_decoder.c:365
#define XINE_VERSION_CODE
Definition xine_internal.h:57
NULL
Definition xine_plugin.c:78
#define PLUGIN_NONE
Definition xine_plugin.h:29
#define PLUGIN_SPU_DECODER
Definition xine_plugin.h:34

◆ supported_types

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