xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions
convolve_fx.c File Reference
#include "goom_fx.h"
#include "goom_plugin_info.h"
#include "goom_config.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "motif_goom1.h"
#include "motif_goom2.h"

Data Structures

struct  _CONV_DATA
 

Macros

#define CONV_MOTIF_W   128
 
#define CONV_MOTIF_WMASK   0x7f
 
#define NB_THETA   512
 
#define sat(a)   ((a)>0xFF?0xFF:(a))
 

Typedefs

typedef unsigned char Motif[128][128]
 
typedef struct _CONV_DATA ConvData
 

Functions

static void compute_tables (VisualFX *_this, PluginInfo *info)
 
static void set_motif (ConvData *data, const Motif motif)
 
static void convolve_init (VisualFX *_this, PluginInfo *info)
 
static void convolve_free (VisualFX *_this)
 
static void create_output_with_brightness (VisualFX *_this, Pixel *src, Pixel *dest, PluginInfo *info, int iff)
 
static void convolve_apply (VisualFX *_this, Pixel *src, Pixel *dest, PluginInfo *info)
 
VisualFX convolve_create (void)
 

Macro Definition Documentation

◆ CONV_MOTIF_W

#define CONV_MOTIF_W   128

◆ CONV_MOTIF_WMASK

#define CONV_MOTIF_WMASK   0x7f

◆ NB_THETA

#define NB_THETA   512

Referenced by compute_tables(), and convolve_apply().

◆ sat

#define sat ( a)    ((a)>0xFF?0xFF:(a))

Typedef Documentation

◆ ConvData

typedef struct _CONV_DATA ConvData

◆ Motif

typedef unsigned char Motif[128][128]

Function Documentation

◆ compute_tables()

static void compute_tables ( VisualFX * _this,
PluginInfo * info )
static

◆ convolve_apply()

static void convolve_apply ( VisualFX * _this,
Pixel * src,
Pixel * dest,
PluginInfo * info )
static

◆ convolve_create()

VisualFX convolve_create ( void )

◆ convolve_free()

static void convolve_free ( VisualFX * _this)
static

◆ convolve_init()

static void convolve_init ( VisualFX * _this,
PluginInfo * info )
static

◆ create_output_with_brightness()

static void create_output_with_brightness ( VisualFX * _this,
Pixel * src,
Pixel * dest,
PluginInfo * info,
int iff )
static

◆ set_motif()

static void set_motif ( ConvData * data,
const Motif motif )
static