xine-lib 1.2.11
Macros | Functions
goom_core.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "goom.h"
#include "goom_tools.h"
#include "goom_filters.h"
#include "lines.h"
#include "ifs.h"
#include "tentacle3d.h"
#include "gfontlib.h"
#include "sound_tester.h"
#include "goom_plugin_info.h"
#include "goom_fx.h"
#include <xine/xine_internal.h>

Macros

#define STOP_SPEED   128
 
#define TIME_BTW_CHG   300
 
#define ECART_VARIATION   1.5
 
#define POS_VARIATION   3.0
 
#define SCROLLING_SPEED   80
 

Functions

static void choose_a_goom_line (PluginInfo *goomInfo, float *param1, float *param2, int *couleur, int *mode, float *amplitude, int isfar)
 
static void update_message (PluginInfo *goomInfo, char *message)
 
static void init_buffers (PluginInfo *goomInfo, int buffsize)
 
PluginInfogoom_init (unsigned int resx, unsigned int resy)
 
void goom_set_resolution (PluginInfo *goomInfo, unsigned int resx, unsigned int resy)
 
int goom_set_screenbuffer (PluginInfo *goomInfo, void *buffer)
 
unsigned int * goom_update (PluginInfo *goomInfo, signed short int data[2][512], int forceMode, float fps, char *songTitle, char *message)
 
void goom_close (PluginInfo *goomInfo)
 

Macro Definition Documentation

◆ ECART_VARIATION

#define ECART_VARIATION   1.5

◆ POS_VARIATION

#define POS_VARIATION   3.0

◆ SCROLLING_SPEED

#define SCROLLING_SPEED   80

◆ STOP_SPEED

#define STOP_SPEED   128

file: goom_core.c author: Jean-Christophe Hoelt (which is not so proud of it)

Contains the core of goom's work.

(c)2000-2003, by iOS-software.

◆ TIME_BTW_CHG

#define TIME_BTW_CHG   300

Function Documentation

◆ choose_a_goom_line()

void choose_a_goom_line ( PluginInfo goomInfo,
float *  param1,
float *  param2,
int *  couleur,
int *  mode,
float *  amplitude,
int  isfar 
)
static

◆ goom_close()

void goom_close ( PluginInfo goomInfo)

◆ goom_init()

PluginInfo * goom_init ( unsigned int  resx,
unsigned int  resy 
)

◆ goom_set_resolution()

void goom_set_resolution ( PluginInfo goomInfo,
unsigned int  resx,
unsigned int  resy 
)

◆ goom_set_screenbuffer()

int goom_set_screenbuffer ( PluginInfo goomInfo,
void *  buffer 
)

◆ goom_update()

unsigned int * goom_update ( PluginInfo goomInfo,
signed short int  data[2][512],
int  forceMode,
float  fps,
char *  songTitle,
char *  message 
)

References AMULETTE_MODE, _VISUAL_FX::apply, BLACK, choose_a_goom_line(), CRYSTAL_BALL_MODE, _PLUGIN_INFO::curGState, _PLUGIN_INFO::cycle, _PLUGIN_INFO::cyclesSinceLastChange, _PLUGIN_INFO::decay_ifs, GoomState::drawIFS, _PLUGIN_INFO::drawLinesDuration, GoomState::drawPoints, GoomState::drawScope, evaluate_sound(), _PLUGIN_INFO::font, GML_BLACK, _PLUGIN_INFO::gmline1, _PLUGIN_INFO::gmline2, goom_draw_text(), goom_irand(), goom_lines_draw(), goom_lines_switch_to(), _PLUGIN_INFO::goomvar, _PLUGIN_INFO::gRandom, guint32, _PLUGIN_INFO::_SIZE_TYPE::height, _ZOOM_FILTER_DATA::hPlaneEffect, HYPERCOS1_MODE, HYPERCOS2_MODE, _ZOOM_FILTER_DATA::hypercosEffect, _PLUGIN_INFO::ifs_fx, _PLUGIN_INFO::ifs_incr, _PLUGIN_INFO::lineMode, _PLUGIN_INFO::lockvar, _PLUGIN_INFO::loopvar, _ZOOM_FILTER_DATA::middleX, _ZOOM_FILTER_DATA::middleY, mode(), _ZOOM_FILTER_DATA::mode, NB_FX, _ZOOM_FILTER_DATA::noisify, NORMAL_MODE, NULL, ORANGE, _PLUGIN_INFO::outputBuf, _PLUGIN_INFO::p1, _PLUGIN_INFO::p2, _ZOOM_FILTER_DATA::pertedec, pointFilter(), _GMLINE::power, _PLUGIN_INFO::previousZoomSpeed, GoomState::rangemax, GoomState::rangemin, _PLUGIN_INFO::recay_ifs, _ZOOM_FILTER_DATA::reverse, _PLUGIN_INFO::screen, SCRUNCH_MODE, _PLUGIN_INFO::_SIZE_TYPE::size, _PLUGIN_INFO::sound, _SOUND_INFO::speedvar, SPEEDWAY_MODE, _ZOOM_FILTER_DATA::sqrtperte, _PLUGIN_INFO::star_fx, _PLUGIN_INFO::states, _PLUGIN_INFO::stateSelectionBlocker, _PLUGIN_INFO::stateSelectionRnd, _PLUGIN_INFO::statesNumber, _PLUGIN_INFO::statesRangeMax, _PLUGIN_INFO::stop_lines, STOP_SPEED, _PLUGIN_INFO::switchIncr, _PLUGIN_INFO::switchIncrAmount, _PLUGIN_INFO::switchMult, _PLUGIN_INFO::switchMultAmount, _PLUGIN_INFO::tentacles_fx, TIME_BTW_CHG, _PLUGIN_INFO::timeOfTitleDisplay, _SOUND_INFO::timeSinceLastGoom, _PLUGIN_INFO::titleText, _SOUND_INFO::totalgoom, _PLUGIN_INFO::update, update_message(), VIOLET, _ZOOM_FILTER_DATA::vitesse, _SOUND_INFO::volume, _ZOOM_FILTER_DATA::vPlaneEffect, WATER_MODE, WAVE_MODE, _ZOOM_FILTER_DATA::waveEffect, WHITE, _PLUGIN_INFO::_SIZE_TYPE::width, xine_fast_memcpy, YELLOW, YONLY_MODE, _PLUGIN_INFO::zoomFilterData, and zoomFilterFastRGB().

Referenced by goom_port_put_buffer().

◆ init_buffers()

static void init_buffers ( PluginInfo goomInfo,
int  buffsize 
)
static

◆ update_message()

void update_message ( PluginInfo goomInfo,
char *  message 
)
static