xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
xine_goom.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/post.h>
#include "goom.h"

Data Structures

struct  post_class_goom_s
 
struct  post_plugin_goom_s
 

Macros

#define LOG_MODULE   "goom"
 
#define LOG_VERBOSE
 
#define BENCHMARK   1
 
#define NUMSAMPLES   512 /* hardcoded into goom api */
 
#define FPS   14
 
#define GOOM_WIDTH   320
 
#define GOOM_HEIGHT   240
 

Typedefs

typedef struct post_plugin_goom_s post_plugin_goom_t
 
typedef struct post_class_goom_s post_class_goom_t
 

Functions

static post_plugin_tgoom_open_plugin (post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target)
 
static void goom_class_dispose (post_class_t *class_gen)
 
static void goom_dispose (post_plugin_t *this_gen)
 
static int goom_rewire_video (xine_post_out_t *output, void *data)
 
static int goom_port_open (xine_audio_port_t *this, xine_stream_t *stream, uint32_t bits, uint32_t rate, int mode)
 
static void goom_port_close (xine_audio_port_t *this, xine_stream_t *stream)
 
static void goom_port_put_buffer (xine_audio_port_t *this, audio_buffer_t *buf, xine_stream_t *stream)
 
static void fps_changed_cb (void *data, xine_cfg_entry_t *cfg)
 
static void width_changed_cb (void *data, xine_cfg_entry_t *cfg)
 
static void height_changed_cb (void *data, xine_cfg_entry_t *cfg)
 
static void csc_method_changed_cb (void *data, xine_cfg_entry_t *cfg)
 
static void * goom_init_plugin (xine_t *xine, const void *data)
 
static int now (void)
 

Variables

static const char *const goom_csc_methods []
 
static const post_info_t goom_special_info
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ BENCHMARK

#define BENCHMARK   1

◆ FPS

#define FPS   14

◆ GOOM_HEIGHT

#define GOOM_HEIGHT   240

◆ GOOM_WIDTH

#define GOOM_WIDTH   320

◆ LOG_MODULE

#define LOG_MODULE   "goom"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ NUMSAMPLES

#define NUMSAMPLES   512 /* hardcoded into goom api */

Typedef Documentation

◆ post_class_goom_t

◆ post_plugin_goom_t

Function Documentation

◆ csc_method_changed_cb()

static void csc_method_changed_cb ( void *  data,
xine_cfg_entry_t cfg 
)
static

◆ fps_changed_cb()

static void fps_changed_cb ( void *  data,
xine_cfg_entry_t cfg 
)
static

◆ goom_class_dispose()

static void goom_class_dispose ( post_class_t class_gen)
static

References NULL.

Referenced by goom_init_plugin().

◆ goom_dispose()

static void goom_dispose ( post_plugin_t this_gen)
static

◆ goom_init_plugin()

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

◆ goom_open_plugin()

static post_plugin_t * goom_open_plugin ( post_class_t class_gen,
int  inputs,
xine_audio_port_t **  audio_target,
xine_video_port_t **  video_target 
)
static

◆ goom_port_close()

static void goom_port_close ( xine_audio_port_t this,
xine_stream_t stream 
)
static

◆ goom_port_open()

static int goom_port_open ( xine_audio_port_t this,
xine_stream_t stream,
uint32_t  bits,
uint32_t  rate,
int  mode 
)
static

◆ goom_port_put_buffer()

static void goom_port_put_buffer ( xine_audio_port_t this,
audio_buffer_t buf,
xine_stream_t stream 
)
static

◆ goom_rewire_video()

static int goom_rewire_video ( xine_post_out_t output,
void *  data 
)
static

◆ height_changed_cb()

static void height_changed_cb ( void *  data,
xine_cfg_entry_t cfg 
)
static

◆ now()

static int now ( void  )
static

◆ width_changed_cb()

static void width_changed_cb ( void *  data,
xine_cfg_entry_t cfg 
)
static

Variable Documentation

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static const post_info_t goom_special_info
Definition: xine_goom.c:623
static void * goom_init_plugin(xine_t *xine, const void *data)
Definition: xine_goom.c:167
#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_MUST_PRELOAD
Definition: xine_plugin.h:46
#define PLUGIN_POST
Definition: xine_plugin.h:37

◆ goom_csc_methods

const char* const goom_csc_methods[]
static
Initial value:
={
"Fast but not photorealistic",
"Slow but looks better",
"Mostly fast and good quality",
}

Referenced by goom_init_plugin().

◆ goom_special_info

const post_info_t goom_special_info
static
Initial value:
= {
}
#define XINE_POST_TYPE_AUDIO_VISUALIZATION
Definition: xine.h:819