mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
6eb6d5b9ac
Original commit message from CVS: * gst/goom/Makefile.am: * gst/goom/README: * gst/goom/config_param.c: * gst/goom/convolve_fx.c: * gst/goom/drawmethods.c: * gst/goom/drawmethods.h: * gst/goom/filters.c: * gst/goom/filters_mmx.s: * gst/goom/flying_stars_fx.c: * gst/goom/goom.h: * gst/goom/goom_config.h: * gst/goom/goom_config_param.h: * gst/goom/goom_core.c: * gst/goom/goom_filters.h: * gst/goom/goom_fx.h: * gst/goom/goom_graphic.h: * gst/goom/goom_plugin_info.h: * gst/goom/goom_tools.c: * gst/goom/goom_tools.h: * gst/goom/goom_typedefs.h: * gst/goom/goom_visual_fx.h: * gst/goom/graphic.c: * gst/goom/ifs.c: * gst/goom/ifs.h: * gst/goom/lines.c: * gst/goom/lines.h: * gst/goom/mathtools.c: * gst/goom/mathtools.h: * gst/goom/mmx.c: * gst/goom/motif_goom1.h: * gst/goom/motif_goom2.h: * gst/goom/plugin_info.c: * gst/goom/ppc_drawings.h: * gst/goom/ppc_zoom_ultimate.h: * gst/goom/sound_tester.c: * gst/goom/sound_tester.h: * gst/goom/surf3d.c: * gst/goom/surf3d.h: * gst/goom/tentacle3d.c: * gst/goom/tentacle3d.h: * gst/goom/v3d.c: * gst/goom/v3d.h: * gst/goom/xmmx.c: Add license headers in all source files. Remove filter.c from EXTRA_DIST, as its in SOURCES already. Mention the files in the REDME which are not used right now. Fixes #557709.
94 lines
2.3 KiB
C
94 lines
2.3 KiB
C
/* Goom Project
|
|
* Copyright (C) <2003> iOS-Software
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef _LINES_H
|
|
#define _LINES_H
|
|
|
|
#include "goom_typedefs.h"
|
|
#include "goom_graphic.h"
|
|
#include "goom_config.h"
|
|
|
|
struct _GMUNITPOINTER
|
|
{
|
|
float x;
|
|
float y;
|
|
float angle;
|
|
};
|
|
|
|
/* tableau de points */
|
|
struct _GMLINE
|
|
{
|
|
|
|
GMUnitPointer *points;
|
|
GMUnitPointer *points2;
|
|
int IDdest;
|
|
float param;
|
|
float amplitudeF;
|
|
float amplitude;
|
|
|
|
int nbPoints;
|
|
guint32 color; /* pour l'instant je stocke la couleur a terme, on stockera le mode couleur et l'on animera */
|
|
guint32 color2;
|
|
|
|
int screenX;
|
|
int screenY;
|
|
|
|
float power;
|
|
float powinc;
|
|
|
|
PluginInfo *goomInfo;
|
|
};
|
|
|
|
/* les ID possibles */
|
|
|
|
#define GML_CIRCLE 0
|
|
/* (param = radius) */
|
|
|
|
#define GML_HLINE 1
|
|
/* (param = y) */
|
|
|
|
#define GML_VLINE 2
|
|
/* (param = x) */
|
|
|
|
/* les modes couleur possible (si tu mets un autre c'est noir) */
|
|
|
|
#define GML_BLEUBLANC 0
|
|
#define GML_RED 1
|
|
#define GML_ORANGE_V 2
|
|
#define GML_ORANGE_J 3
|
|
#define GML_VERT 4
|
|
#define GML_BLEU 5
|
|
#define GML_BLACK 6
|
|
|
|
/* construit un effet de line (une ligne horitontale pour commencer) */
|
|
GMLine *goom_lines_init (PluginInfo *goomInfo, int rx, int ry,
|
|
int IDsrc, float paramS, int modeCoulSrc,
|
|
int IDdest, float paramD, int modeCoulDest);
|
|
|
|
void goom_lines_switch_to (GMLine * gml, int IDdest, float param,
|
|
float amplitude,
|
|
int modeCoul);
|
|
|
|
void goom_lines_set_res (GMLine * gml, int rx, int ry);
|
|
|
|
void goom_lines_free (GMLine ** gml);
|
|
|
|
void goom_lines_draw (PluginInfo *plugInfo, GMLine * gml, gint16 data[512], Pixel *p);
|
|
|
|
#endif /* _LINES_H */
|