xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions
tentacle3d.c File Reference
#include <stdlib.h>
#include "v3d.h"
#include "surf3d.h"
#include "goom_tools.h"
#include "goom_config.h"
#include "goom_plugin_info.h"
#include "tentacle3d.h"

Data Structures

struct  _TENTACLE_FX_DATA
 

Macros

#define D   256.0f
 
#define nbgrid   6
 
#define definitionx   9
 
#define definitionz   45
 
#define NB_TENTACLE_COLORS   4
 
#define ShiftRight(_x, _s)   ((_x<0) ? -(-_x>>_s) : (_x>>_s))
 

Typedefs

typedef struct _TENTACLE_FX_DATA TentacleFXData
 

Functions

static void tentacle_new (TentacleFXData *data)
 
static void tentacle_update (PluginInfo *goomInfo, Pixel *buf, Pixel *back, int W, int H, short[2][512], float, int drawit, TentacleFXData *data)
 
static void tentacle_free (TentacleFXData *data)
 
static void tentacle_fx_init (VisualFX *_this, PluginInfo *info)
 
static void tentacle_fx_apply (VisualFX *_this, Pixel *src, Pixel *dest, PluginInfo *goomInfo)
 
static void tentacle_fx_free (VisualFX *_this)
 
VisualFX tentacle_fx_create (void)
 
static unsigned char lighten (unsigned char value, float power)
 
static void lightencolor (int *col, float power)
 
static int evolutecolor (unsigned int src, unsigned int dest, unsigned int mask, unsigned int incr)
 
static void pretty_move (PluginInfo *goomInfo, float cycle, float *dist, float *dist2, float *rotangle, TentacleFXData *fx_data)
 

Macro Definition Documentation

◆ D

#define D   256.0f

◆ definitionx

#define definitionx   9

◆ definitionz

#define definitionz   45

◆ NB_TENTACLE_COLORS

#define NB_TENTACLE_COLORS   4

◆ nbgrid

#define nbgrid   6

◆ ShiftRight

#define ShiftRight (   _x,
  _s 
)    ((_x<0) ? -(-_x>>_s) : (_x>>_s))

Typedef Documentation

◆ TentacleFXData

Function Documentation

◆ evolutecolor()

static int evolutecolor ( unsigned int  src,
unsigned int  dest,
unsigned int  mask,
unsigned int  incr 
)
static

Referenced by tentacle_update().

◆ lighten()

static unsigned char lighten ( unsigned char  value,
float  power 
)
inlinestatic

Referenced by lightencolor().

◆ lightencolor()

static void lightencolor ( int *  col,
float  power 
)
static

References lighten().

Referenced by tentacle_update().

◆ pretty_move()

static void pretty_move ( PluginInfo goomInfo,
float  cycle,
float *  dist,
float *  dist2,
float *  rotangle,
TentacleFXData fx_data 
)
static

◆ tentacle_free()

static void tentacle_free ( TentacleFXData data)
static

◆ tentacle_fx_apply()

static void tentacle_fx_apply ( VisualFX _this,
Pixel src,
Pixel dest,
PluginInfo goomInfo 
)
static

◆ tentacle_fx_create()

VisualFX tentacle_fx_create ( void  )

◆ tentacle_fx_free()

static void tentacle_fx_free ( VisualFX _this)
static

◆ tentacle_fx_init()

static void tentacle_fx_init ( VisualFX _this,
PluginInfo info 
)
static

◆ tentacle_new()

static void tentacle_new ( TentacleFXData data)
static

◆ tentacle_update()

static void tentacle_update ( PluginInfo goomInfo,
Pixel buf,
Pixel back,
int  W,
int  H,
short  data[2][512],
float  rapport,
int  drawit,
TentacleFXData data 
)
static