MythTV  master
Functions | Variables
lines.cpp File Reference
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include "lines.h"
#include "drawmethods.h"
#include "goom_core.h"
#include "goom_tools.h"
Include dependency graph for lines.cpp:

Go to the source code of this file.

Functions

static unsigned char lighten (unsigned char value, float power)
 
static void lightencolor (int *col, float power)
 
static void genline (int id, float param, GMUnitPointer *l, int rx, int ry)
 
static guint32 getcouleur (int mode)
 
void goom_lines_set_res (GMLine *gml, int rx, int ry)
 
static void goom_lines_move (GMLine *l)
 
void goom_lines_switch_to (GMLine *gml, int IDdest, float param, float amplitude, int col)
 
GMLinegoom_lines_init (int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD)
 
void goom_lines_free (GMLine **l)
 
void goom_lines_draw (GMLine *line, const GoomSingleData &data, unsigned int *p)
 

Variables

unsigned int resolx
 
unsigned int c_resoly
 

Function Documentation

◆ lighten()

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

Definition at line 17 of file lines.cpp.

Referenced by lightencolor().

◆ lightencolor()

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

Definition at line 32 of file lines.cpp.

Referenced by goom_lines_draw().

◆ genline()

static void genline ( int  id,
float  param,
GMUnitPointer l,
int  rx,
int  ry 
)
static

Definition at line 45 of file lines.cpp.

Referenced by goom_lines_init(), goom_lines_set_res(), and goom_lines_switch_to().

◆ getcouleur()

static guint32 getcouleur ( int  mode)
static

Definition at line 74 of file lines.cpp.

Referenced by goom_lines_init(), and goom_lines_switch_to().

◆ goom_lines_set_res()

void goom_lines_set_res ( GMLine gml,
int  rx,
int  ry 
)

Definition at line 96 of file lines.cpp.

Referenced by goom_set_resolution().

◆ goom_lines_move()

static void goom_lines_move ( GMLine l)
static

Definition at line 110 of file lines.cpp.

Referenced by goom_lines_draw().

◆ goom_lines_switch_to()

void goom_lines_switch_to ( GMLine gml,
int  IDdest,
float  param,
float  amplitude,
int  col 
)

Definition at line 143 of file lines.cpp.

Referenced by goom_lines_init(), and goom_update().

◆ goom_lines_init()

GMLine* goom_lines_init ( int  rx,
int  ry,
int  IDsrc,
float  paramS,
int  coulS,
int  IDdest,
float  paramD,
int  coulD 
)

Definition at line 155 of file lines.cpp.

Referenced by goom_init().

◆ goom_lines_free()

void goom_lines_free ( GMLine **  l)

Definition at line 192 of file lines.cpp.

Referenced by goom_close().

◆ goom_lines_draw()

void goom_lines_draw ( GMLine line,
const GoomSingleData data,
unsigned int *  p 
)

Definition at line 201 of file lines.cpp.

Referenced by goom_update().

Variable Documentation

◆ resolx

unsigned int resolx

Definition at line 56 of file goom_core.cpp.

Referenced by choose_a_goom_line(), goom_init(), goom_set_resolution(), and goom_update().

◆ c_resoly

unsigned int c_resoly

Definition at line 14 of file lines.cpp.

Referenced by calculatePXandPY(), getPixelRGB(), getPixelRGB_(), pointFilter(), and setPixelRGB_().