diff options
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/deinterlace/plugins/double.c | 1 | ||||
-rw-r--r-- | src/post/deinterlace/plugins/greedy.c | 1 | ||||
-rw-r--r-- | src/post/deinterlace/plugins/greedy2frame.c | 2 | ||||
-rw-r--r-- | src/post/deinterlace/plugins/linear.c | 1 | ||||
-rw-r--r-- | src/post/deinterlace/plugins/linearblend.c | 1 | ||||
-rw-r--r-- | src/post/deinterlace/plugins/vfir.c | 1 | ||||
-rw-r--r-- | src/post/deinterlace/plugins/weave.c | 1 | ||||
-rw-r--r-- | src/post/goom/Makefile.am | 2 | ||||
-rw-r--r-- | src/post/goom/filters.c | 18 | ||||
-rw-r--r-- | src/post/goom/goom_core.c | 4 | ||||
-rw-r--r-- | src/post/goom/goom_core.h | 4 | ||||
-rw-r--r-- | src/post/goom/ifs.c | 2 | ||||
-rw-r--r-- | src/post/goom/ifs.h | 2 | ||||
-rw-r--r-- | src/post/goom/ifs_display.c | 4 | ||||
-rw-r--r-- | src/post/goom/lines.c | 10 | ||||
-rw-r--r-- | src/post/goom/zoom_filter_mmx.c | 7 | ||||
-rw-r--r-- | src/post/goom/zoom_filter_mmx.h | 9 |
17 files changed, 42 insertions, 28 deletions
diff --git a/src/post/deinterlace/plugins/double.c b/src/post/deinterlace/plugins/double.c index 44ab0d492..6566df293 100644 --- a/src/post/deinterlace/plugins/double.c +++ b/src/post/deinterlace/plugins/double.c @@ -26,6 +26,7 @@ #endif #include "speedy.h" #include "deinterlace.h" +#include "plugins.h" static void deinterlace_scanline_double( uint8_t *output, deinterlace_scanline_data_t *data, diff --git a/src/post/deinterlace/plugins/greedy.c b/src/post/deinterlace/plugins/greedy.c index 1384bd0cd..e12c0c1e0 100644 --- a/src/post/deinterlace/plugins/greedy.c +++ b/src/post/deinterlace/plugins/greedy.c @@ -35,6 +35,7 @@ #include "deinterlace.h" #include "speedtools.h" #include "speedy.h" +#include "plugins.h" // This is a simple lightweight DeInterlace method that uses little CPU time // but gives very good results for low or intermedite motion. diff --git a/src/post/deinterlace/plugins/greedy2frame.c b/src/post/deinterlace/plugins/greedy2frame.c index 0b2f1e40f..065bd2ac8 100644 --- a/src/post/deinterlace/plugins/greedy2frame.c +++ b/src/post/deinterlace/plugins/greedy2frame.c @@ -35,7 +35,7 @@ #include "deinterlace.h" #include "speedtools.h" #include "speedy.h" - +#include "plugins.h" // debugging feature // output the value of mm4 at this point which is pink where we will weave diff --git a/src/post/deinterlace/plugins/linear.c b/src/post/deinterlace/plugins/linear.c index 97f286f86..8d2e23f29 100644 --- a/src/post/deinterlace/plugins/linear.c +++ b/src/post/deinterlace/plugins/linear.c @@ -24,6 +24,7 @@ #endif #include "speedy.h" #include "deinterlace.h" +#include "plugins.h" static void deinterlace_scanline_linear( uint8_t *output, deinterlace_scanline_data_t *data, diff --git a/src/post/deinterlace/plugins/linearblend.c b/src/post/deinterlace/plugins/linearblend.c index 06e6d105a..8caaac5e7 100644 --- a/src/post/deinterlace/plugins/linearblend.c +++ b/src/post/deinterlace/plugins/linearblend.c @@ -37,6 +37,7 @@ #include "speedtools.h" #include "speedy.h" #include "deinterlace.h" +#include "plugins.h" static void deinterlace_scanline_linear_blend( uint8_t *output, deinterlace_scanline_data_t *data, diff --git a/src/post/deinterlace/plugins/vfir.c b/src/post/deinterlace/plugins/vfir.c index c57960f05..ddf2ae4c8 100644 --- a/src/post/deinterlace/plugins/vfir.c +++ b/src/post/deinterlace/plugins/vfir.c @@ -36,6 +36,7 @@ #include "xineutils.h" #include "speedy.h" #include "deinterlace.h" +#include "plugins.h" /** * The MPEG2 spec uses a slightly harsher filter, they specify diff --git a/src/post/deinterlace/plugins/weave.c b/src/post/deinterlace/plugins/weave.c index 287357526..7107a07a6 100644 --- a/src/post/deinterlace/plugins/weave.c +++ b/src/post/deinterlace/plugins/weave.c @@ -26,6 +26,7 @@ #endif #include "speedy.h" #include "deinterlace.h" +#include "plugins.h" static void deinterlace_scanline_weave( uint8_t *output, deinterlace_scanline_data_t *data, diff --git a/src/post/goom/Makefile.am b/src/post/goom/Makefile.am index 76aee8ca8..1d35308b5 100644 --- a/src/post/goom/Makefile.am +++ b/src/post/goom/Makefile.am @@ -29,3 +29,5 @@ xineplug_post_goom_la_SOURCES = xine_goom.c \ xineplug_post_goom_la_LIBADD = $(XINE_LIB) xineplug_post_goom_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@ + +noinst_HEADERS = zoom_filter_mmx.h diff --git a/src/post/goom/filters.c b/src/post/goom/filters.c index e2aad6466..4628bc0aa 100644 --- a/src/post/goom/filters.c +++ b/src/post/goom/filters.c @@ -36,10 +36,7 @@ extern volatile int use_asm; #ifdef MMX /*int mmx_zoom () ;*/ -void zoom_filter_mmx (int prevX, int prevY, - unsigned int *expix1, unsigned int *expix2, - int *brutS, int *brutD, int buffratio, - int precalCoef[16][16]); +#include "zoom_filter_mmx.h" #endif /* MMX */ @@ -106,7 +103,7 @@ static int *firedec = 0; /* retourne x>>s , en testant le signe de x */ -int ShiftRight (int x, const unsigned char s) +static int ShiftRight (int x, const unsigned char s) { if (x < 0) return -(-x >> s); @@ -118,7 +115,7 @@ int ShiftRight (int x, const unsigned char s) /** modif d'optim by Jeko : precalcul des 4 coefs résultant des 2 pos */ int precalCoef[16][16]; -void generatePrecalCoef () +static void generatePrecalCoef (void) { static int firstime = 1; @@ -173,7 +170,7 @@ void generatePrecalCoef () px et py indique la nouvelle position (en sqrtperte ieme de pixel) (valeur * 16) */ -void calculatePXandPY (int x, int y, int *px, int *py) +static void calculatePXandPY (int x, int y, int *px, int *py) { if (theMode == WATER_MODE) { static int wave = 0; @@ -311,7 +308,7 @@ void setPixelRGB (Uint * buffer, Uint x, Uint y, Color c) } -void setPixelRGB_ (Uint * buffer, Uint x, Color c) +static void setPixelRGB_ (Uint * buffer, Uint x, Color c) { #ifdef _DEBUG if (x >= resolx * c_resoly) { @@ -363,7 +360,7 @@ void getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c) } -void getPixelRGB_ (Uint * buffer, Uint x, Color * c) +static void getPixelRGB_ (Uint * buffer, Uint x, Color * c) { register unsigned char *tmp8; @@ -390,8 +387,7 @@ void getPixelRGB_ (Uint * buffer, Uint x, Color * c) } -void -c_zoom () +static void c_zoom (void) { int myPos, myPos2; Color couleur; diff --git a/src/post/goom/goom_core.c b/src/post/goom/goom_core.c index 3c467b875..fb9dbac9a 100644 --- a/src/post/goom/goom_core.c +++ b/src/post/goom/goom_core.c @@ -761,7 +761,7 @@ goom_update (gint16 data[2][512], } void -goom_close () +goom_close (void) { if (pixel != NULL) free (pixel); @@ -955,7 +955,7 @@ void goom_setAsmUse (int useIt) use_asm = useIt; } -int goom_getAsmUse () +int goom_getAsmUse (void) { return use_asm; } diff --git a/src/post/goom/goom_core.h b/src/post/goom/goom_core.h index 5c5efd286..343285891 100644 --- a/src/post/goom/goom_core.h +++ b/src/post/goom/goom_core.h @@ -33,11 +33,11 @@ void goom_set_resolution (guint32 resx, guint32 resy, int cinemascope); guint32 *goom_update (gint16 data[2][512], int forceMode, float fps, char *songTitle, char *message); -void goom_close (); +void goom_close (void); void goom_set_font (int ***chars, int *width, int *height); void goom_setAsmUse (int useIt); -int goom_getAsmUse (); +int goom_getAsmUse (void); #endif diff --git a/src/post/goom/ifs.c b/src/post/goom/ifs.c index 40037b6b7..fa1c2c190 100644 --- a/src/post/goom/ifs.c +++ b/src/post/goom/ifs.c @@ -538,7 +538,7 @@ draw_ifs ( /* ModeInfo * mi */ int *nbpt) /***************************************************************/ void -release_ifs () +release_ifs (void) { if (Root != NULL) { (void) free ((void *) Root); diff --git a/src/post/goom/ifs.h b/src/post/goom/ifs.h index c91df183a..9cb19514f 100644 --- a/src/post/goom/ifs.h +++ b/src/post/goom/ifs.h @@ -22,7 +22,7 @@ void ifs_update (guint32 * buffer, guint32 * back, int width, int height, int increment); /* free all ifs's data. */ -void release_ifs (); +void release_ifs (void); /* DONT USE !!! deprecated diff --git a/src/post/goom/ifs_display.c b/src/post/goom/ifs_display.c index 53530ccf6..c3d3783f3 100644 --- a/src/post/goom/ifs_display.c +++ b/src/post/goom/ifs_display.c @@ -5,7 +5,7 @@ extern volatile int use_asm; #ifdef MMX -void +static void ifs_fun_mmx(guint32 * data, guint32 * back, int width, int height, int increment, int nbpt, IFSPoint *points, int couleursl) { @@ -27,7 +27,7 @@ ifs_fun_mmx(guint32 * data, guint32 * back, int width, int height, } #endif -void +static void ifs_fun_c(guint32 * data, guint32 * back, int width, int height, int increment, int nbpt, IFSPoint *points, int couleursl) { diff --git a/src/post/goom/lines.c b/src/post/goom/lines.c index 7cda48ef4..e7a9b60e0 100644 --- a/src/post/goom/lines.c +++ b/src/post/goom/lines.c @@ -201,7 +201,7 @@ draw_line (int *data, int x1, int y1, int x2, int y2, int col, int screenx, } } -void +static void genline (int id, float param, GMUnitPointer * l, int rx, int ry) { int i; @@ -235,7 +235,7 @@ genline (int id, float param, GMUnitPointer * l, int rx, int ry) } } -guint32 getcouleur (int mode) +static guint32 getcouleur (int mode) { switch (mode) { case GML_RED: @@ -268,7 +268,7 @@ goom_lines_set_res (GMLine * gml, int rx, int ry) } -void +static void goom_lines_move (GMLine * l) { int i; @@ -314,7 +314,7 @@ goom_lines_switch_to (GMLine * gml, int IDdest, float param, int col) /* printf ("couleur %d : %x\n",col,gml->color2); */ } -inline unsigned char +static inline unsigned char lighten (unsigned char value, float power) { int val = value; @@ -333,7 +333,7 @@ lighten (unsigned char value, float power) } } -void +static void lightencolor (int *col, float power) { unsigned char *color; diff --git a/src/post/goom/zoom_filter_mmx.c b/src/post/goom/zoom_filter_mmx.c index eb364ac86..de8a37096 100644 --- a/src/post/goom/zoom_filter_mmx.c +++ b/src/post/goom/zoom_filter_mmx.c @@ -1,5 +1,6 @@ #include "goom_config.h" #include "xineutils.h" +#include "zoom_filter_mmx.h" #ifdef MMX #define BUFFPOINTNB 16 @@ -13,9 +14,9 @@ #define PERTEDEC 4 void zoom_filter_mmx (int prevX, int prevY, - unsigned int *expix1, unsigned int *expix2, - int *brutS, int *brutD, int buffratio, - int precalCoef[16][16]) + unsigned int *expix1, unsigned int *expix2, + int *brutS, int *brutD, int buffratio, + int precalCoef[16][16]) { unsigned int ax = (prevX-1)<<PERTEDEC, ay = (prevY-1)<<PERTEDEC; diff --git a/src/post/goom/zoom_filter_mmx.h b/src/post/goom/zoom_filter_mmx.h new file mode 100644 index 000000000..f81f2dca7 --- /dev/null +++ b/src/post/goom/zoom_filter_mmx.h @@ -0,0 +1,9 @@ +#ifndef ZOOM_FILTER_MMX_H +#define ZOOM_FILTER_MMX_H + +void zoom_filter_mmx (int prevX, int prevY, + unsigned int *expix1, unsigned int *expix2, + int *brutS, int *brutD, int buffratio, + int precalCoef[16][16]); + +#endif |