File: main.h

package info (click to toggle)
libvisual-plugins 1%3A0.4.0%2Bdfsg1-13
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,644 kB
  • sloc: ansic: 9,358; sh: 8,809; cpp: 871; makefile: 221; sed: 16
file content (64 lines) | stat: -rw-r--r-- 1,062 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef _INF_MAIN_H
#define _INF_MAIN_H

#include <libvisual/libvisual.h>

#define NB_PALETTES 5

struct infinite_col {
	uint8_t r;
	uint8_t g;
	uint8_t b;
};

typedef struct t_coord {
	int x,y;
} t_coord;

typedef struct t_complex {
	float x,y;
} t_complex;

typedef struct t_interpol {
	uint32_t coord ;  //coordinates of the top left pixel.
	uint32_t weight; //32 bits = 4*8= weights of the four corners
} t_interpol;

typedef struct t_effect {
	int num_effect;
	int x_curve;
	int curve_color;
	int curve_amplitude;
	int spectral_amplitude;
	int spectral_color;
	int mode_spectre;
	int spectral_shift;
} t_effect;

typedef struct {
	float pcm_data[2][512];
	int plugwidth;
	int plugheight;
	VisPalette pal;

	/* Random context for this plugin */
	VisRandomContext *rcontext;

	uint8_t *surface1;
	uint8_t *surface2;

	int teff;
	int tcol;

	struct infinite_col color_table[NB_PALETTES][256];

	int old_color;
	int color;
	int t_last_color;
	int t_last_effect;

	t_effect current_effect;
	t_interpol *vector_field;
} InfinitePrivate;

#endif /* _INF_MAIN_H */