MythTV  master
Functions | Variables
lines.c File Reference
#include "lines.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include "goom_tools.h"
#include "drawmethods.h"
Include dependency graph for lines.c:

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 gint16 data[512], 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 15 of file lines.c.

Referenced by lightencolor().

◆ lightencolor()

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

Definition at line 32 of file lines.c.

Referenced by goom_lines_draw().

◆ genline()

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

Definition at line 47 of file lines.c.

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

◆ getcouleur()

static guint32 getcouleur ( int  mode)
static

Definition at line 80 of file lines.c.

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 102 of file lines.c.

Referenced by goom_set_resolution().

◆ goom_lines_move()

static void goom_lines_move ( GMLine l)
static

Definition at line 116 of file lines.c.

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 154 of file lines.c.

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 166 of file lines.c.

Referenced by goom_init().

◆ goom_lines_free()

void goom_lines_free ( GMLine **  l)

Definition at line 203 of file lines.c.

Referenced by goom_close().

◆ goom_lines_draw()

void goom_lines_draw ( GMLine line,
const gint16  data[512],
unsigned int *  p 
)

Definition at line 212 of file lines.c.

Referenced by goom_update().

Variable Documentation

◆ resolx

unsigned int resolx

Definition at line 65 of file goom_core.c.

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

◆ c_resoly

unsigned int c_resoly

Definition at line 65 of file goom_core.c.

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