Lynkeos  1.2
Functions | Variables
fourier.c File Reference
#include <stdlib.h>
#include <assert.h>
#include <sys/sysctl.h>
#include <CarbonCore/Multiprocessing.h>
#include <pthread.h>
#include "fourier.h"
Include dependency graph for fourier.c:

Functions

void initializeProcessing ()
void FFT_DATA_INIT (FFT_DATA *d)
void free_spectrum (FFT_DATA *s)
void allocate_spectrum (FFT_DATA *s, u_short w, u_short h, u_char nplanes, u_char goal)
short log_2 (short val)
void fourier (FFT_DATA sample)
void fourier_inverse (FFT_DATA sample, REAL *vmin, REAL *vmax)
void * rgbPlane (FFT_DATA sample, u_char c)
REALcolorValue (FFT_DATA sample, u_short x, u_short y, u_char c)

Variables

u_short numberOfCpus
static unsigned fftwDefaultFlag
static pthread_mutex_t fftwLock

Function Documentation

void allocate_spectrum ( FFT_DATA s,
u_short  w,
u_short  h,
u_char  nplanes,
u_char  goal 
)
REAL* colorValue ( FFT_DATA  sample,
u_short  x,
u_short  y,
u_char  c 
) [inline]
void FFT_DATA_INIT ( FFT_DATA d) [inline]
void fourier ( FFT_DATA  sample)
void fourier_inverse ( FFT_DATA  sample,
REAL vmin,
REAL vmax 
)
void free_spectrum ( FFT_DATA s)

References fftwDefaultFlag, fftwLock, and numberOfCpus.

Referenced by main().

short log_2 ( short  val)
void* rgbPlane ( FFT_DATA  sample,
u_char  c 
) [inline]

Variable Documentation

unsigned fftwDefaultFlag [static]
pthread_mutex_t fftwLock [static]
u_short numberOfCpus