xine-lib  1.2.10
lines.h
Go to the documentation of this file.
1 #ifndef _LINES_H
2 #define _LINES_H
3 
4 /*
5  * lines.h
6  * Goom
7  * Copyright (c) 2000-2003 iOS-software. All rights reserved.
8  */
9 
10 #include "goom_typedefs.h"
11 #include "goom_graphic.h"
12 #include "goom_config.h"
13 
15 {
16  float x;
17  float y;
18  float angle;
19 };
20 
21 /* tableau de points */
22 struct _GMLINE
23 {
24 
27  int IDdest;
28  float param;
29  float amplitudeF;
30  float amplitude;
31 
32  int nbPoints;
33  guint32 color; /* pour l'instant je stocke la couleur a terme, on stockera le mode couleur et l'on animera */
35 
36  int screenX;
37  int screenY;
38 
39  float power;
40  float powinc;
41 
43 };
44 
45 /* les ID possibles */
46 
47 #define GML_CIRCLE 0
48 /* (param = radius) */
49 
50 #define GML_HLINE 1
51 /* (param = y) */
52 
53 #define GML_VLINE 2
54 /* (param = x) */
55 
56 /* les modes couleur possible (si tu mets un autre c'est noir) */
57 
58 #define GML_BLEUBLANC 0
59 #define GML_RED 1
60 #define GML_ORANGE_V 2
61 #define GML_ORANGE_J 3
62 #define GML_VERT 4
63 #define GML_BLEU 5
64 #define GML_BLACK 6
65 
66 /* construit un effet de line (une ligne horitontale pour commencer) */
67 GMLine *goom_lines_init (PluginInfo *goomInfo, int rx, int ry,
68  int IDsrc, float paramS, int modeCoulSrc,
69  int IDdest, float paramD, int modeCoulDest);
70 
71 void goom_lines_switch_to (GMLine * gml, int IDdest, float param,
72  float amplitude,
73  int modeCoul);
74 
75 void goom_lines_set_res (GMLine * gml, int rx, int ry);
76 
77 void goom_lines_free (GMLine ** gml);
78 
79 void goom_lines_draw (PluginInfo *plugInfo, GMLine * gml, gint16 data[512], Pixel *p);
80 
81 #endif /* _LINES_H */
genline
static void genline(int id, float param, GMUnitPointer *l, int rx, int ry)
Definition: lines.c:52
lines.h
_GMLINE::goomInfo
PluginInfo * goomInfo
Definition: lines.h:42
goom_plugin_info.h
_PLUGIN_INFO::gRandom
GoomRandom * gRandom
Definition: goom_plugin_info.h:166
_GMLINE::amplitudeF
float amplitudeF
Definition: lines.h:29
GML_CIRCLE
#define GML_CIRCLE
Definition: lines.h:47
_GMLINE::points2
GMUnitPointer * points2
Definition: lines.h:26
goom_lines_draw
void goom_lines_draw(PluginInfo *plug, GMLine *line, signed short int data[512], Pixel *p)
Definition: lines.c:211
GML_BLACK
#define GML_BLACK
Definition: lines.h:64
ROUGE
#define ROUGE
Definition: goom_config.h:16
_PIXEL
Definition: goom_graphic.h:55
_GMLINE::amplitude
float amplitude
Definition: lines.h:30
_GMLINE::power
float power
Definition: lines.h:39
goom_typedefs.h
lightencolor
static void lightencolor(unsigned int *col, float power)
Definition: lines.c:35
goom_lines_set_res
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.c:107
goom_lines_free
void goom_lines_free(GMLine **gml)
Definition: lines.c:203
GML_ORANGE_J
#define GML_ORANGE_J
Definition: lines.h:61
_GMLINE::screenY
int screenY
Definition: lines.h:37
goom_lines_set_res
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.c:107
_GMUNITPOINTER
Definition: lines.h:14
GML_HLINE
#define GML_HLINE
Definition: lines.h:50
goom_lines_switch_to
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int col)
Definition: lines.c:157
GML_RED
#define GML_RED
Definition: lines.h:59
goom_irand
static int goom_irand(GoomRandom *grandom, int i)
Definition: goom_tools.h:24
_PLUGIN_INFO::draw_line
void(* draw_line)(Pixel *data, int x1, int y1, int x2, int y2, int col, int screenx, int screeny)
Definition: goom_plugin_info.h:162
goom_graphic.h
_GMLINE::IDdest
int IDdest
Definition: lines.h:27
NULL
NULL
Definition: xine_plugin.c:78
goom_lines_draw
void goom_lines_draw(PluginInfo *plugInfo, GMLine *gml, signed short int data[512], Pixel *p)
Definition: lines.c:211
gint16
#define gint16
Definition: goom_config.h:30
GML_VLINE
#define GML_VLINE
Definition: lines.h:53
_GMUNITPOINTER::angle
float angle
Definition: lines.h:18
_PLUGIN_INFO::methods
struct _PLUGIN_INFO::@39 methods
drawmethods.h
GML_VERT
#define GML_VERT
Definition: lines.h:62
_GMLINE::param
float param
Definition: lines.h:28
goom_lines_free
void goom_lines_free(GMLine **l)
Definition: lines.c:203
goom_lines_switch_to
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int modeCoul)
Definition: lines.c:157
_PLUGIN_INFO
Definition: goom_plugin_info.h:75
_GMLINE
Definition: lines.h:22
_GMLINE::nbPoints
int nbPoints
Definition: lines.h:32
BLEU
#define BLEU
Definition: goom_config.h:14
_GMUNITPOINTER::y
float y
Definition: lines.h:17
_GMLINE::screenX
int screenX
Definition: lines.h:36
GML_BLEU
#define GML_BLEU
Definition: lines.h:63
lighten
static unsigned char lighten(unsigned char value, float power)
Definition: lines.c:17
mode
enable disable number of frames of telecine pattern sync required before mode change make frames evenly spaced for film mode(24 fps)" ) PARAM_ITEM( POST_PARAM_TYPE_BOOL
_GMUNITPOINTER::x
float x
Definition: lines.h:16
guint32
#define guint32
Definition: goom_config.h:28
_GMLINE::powinc
float powinc
Definition: lines.h:40
GML_ORANGE_V
#define GML_ORANGE_V
Definition: lines.h:60
goom_tools.h
VERT
#define VERT
Definition: goom_config.h:15
_GMLINE::color2
unsigned int color2
Definition: lines.h:34
GML_BLEUBLANC
#define GML_BLEUBLANC
Definition: lines.h:58
config.h
getcouleur
static unsigned int getcouleur(int mode)
Definition: lines.c:85
goom_lines_init
GMLine * goom_lines_init(PluginInfo *goomInfo, int rx, int ry, int IDsrc, float paramS, int modeCoulSrc, int IDdest, float paramD, int modeCoulDest)
Definition: lines.c:168
goom_lines_move
static void goom_lines_move(GMLine *l)
Definition: lines.c:119
_GMLINE::color
unsigned int color
Definition: lines.h:33
goom_lines_init
GMLine * goom_lines_init(PluginInfo *goomInfo, int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD)
Definition: lines.c:168
goom_config.h
_GMLINE::points
GMUnitPointer * points
Definition: lines.h:25