MythTV  master
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Synaesthesia Class Reference

#include <synaesthesia.h>

Inheritance diagram for Synaesthesia:
Inheritance graph
[legend]
Collaboration diagram for Synaesthesia:
Collaboration graph
[legend]

Public Member Functions

 Synaesthesia (void)
 
 ~Synaesthesia () override
 
void resize (const QSize &size) override
 
bool process (VisualNode *node) override
 
bool draw (QPainter *p, const QColor &back) override
 
void handleKeyPress (const QString &action) override
 
- Public Member Functions inherited from VisualBase
 VisualBase (bool screensaverenable=false)
 
virtual ~VisualBase (void)
 
virtual bool processUndisplayed (VisualNode *)
 
virtual int getDesiredFPS (void)
 
virtual unsigned long getDesiredSamples (void)
 

Private Member Functions

void setupPalette (void)
 
void coreInit (void)
 
void fft (double *x, double *y)
 
void setStarSize (double lsize)
 
void addPixel (int x, int y, int br1, int br2)
 
unsigned char getPixel (int x, int y, int where)
 
void fadePixelWave (int x, int y, int where, int step)
 
void fadeWave (void)
 
void fadePixelHeat (int x, int y, int where, int step)
 
void fadeHeat (void)
 
void fadeFade (void)
 
void fade (void)
 

Static Private Member Functions

static int bitReverser (int i)
 
static void addPixelFast (unsigned char *p, int br1, int br2)
 

Private Attributes

QSize m_size {0,0}
 
double m_cosTable [NumSamples] {}
 
double m_negSinTable [NumSamples] {}
 
int m_bitReverse [NumSamples] {}
 
int m_scaleDown [256] {}
 
int m_maxStarRadius {1}
 
int m_fadeMode {Stars}
 
bool m_pointsAreDiamonds {true}
 
double m_brightnessTwiddler {0.3}
 
double m_starSize {0.5}
 
int m_outWidth {0}
 
int m_outHeight {0}
 
Bitmap< unsigned short > m_outputBmp
 
Bitmap< unsigned short > m_lastOutputBmp
 
Bitmap< unsigned short > m_lastLastOutputBmp
 
QImage * m_outputImage {nullptr}
 
unsigned char m_palette [768] {}
 
double m_fgRedSlider {0.0}
 
double m_fgGreenSlider {0.5}
 
double m_bgRedSlider {0.75}
 
double m_bgGreenSlider {0.4}
 
double m_energyAvg {80.0}
 

Additional Inherited Members

- Static Public Member Functions inherited from VisualBase
static void drawWarning (QPainter *p, const QColor &back, const QSize &size, const QString &warning, int fontsize=28)
 
- Protected Attributes inherited from VisualBase
int m_fps {20}
 
bool m_xscreensaverenable {true}
 

Detailed Description

Definition at line 19 of file synaesthesia.h.

Constructor & Destructor Documentation

◆ Synaesthesia()

Synaesthesia::Synaesthesia ( void  )

Definition at line 32 of file synaesthesia.cpp.

◆ ~Synaesthesia()

Synaesthesia::~Synaesthesia ( )
override

Definition at line 41 of file synaesthesia.cpp.

Member Function Documentation

◆ resize()

void Synaesthesia::resize ( const QSize &  size)
overridevirtual

Implements VisualBase.

Definition at line 105 of file synaesthesia.cpp.

◆ process()

bool Synaesthesia::process ( VisualNode node)
overridevirtual

Implements VisualBase.

Definition at line 442 of file synaesthesia.cpp.

◆ draw()

bool Synaesthesia::draw ( QPainter *  p,
const QColor &  back 
)
overridevirtual

Implements VisualBase.

Definition at line 589 of file synaesthesia.cpp.

◆ handleKeyPress()

void Synaesthesia::handleKeyPress ( const QString &  action)
inlineoverridevirtual

Implements VisualBase.

Definition at line 28 of file synaesthesia.h.

◆ setupPalette()

void Synaesthesia::setupPalette ( void  )
private

Definition at line 46 of file synaesthesia.cpp.

◆ coreInit()

void Synaesthesia::coreInit ( void  )
private

Definition at line 211 of file synaesthesia.cpp.

◆ bitReverser()

int Synaesthesia::bitReverser ( int  i)
staticprivate

Definition at line 155 of file synaesthesia.cpp.

◆ fft()

void Synaesthesia::fft ( double *  x,
double *  y 
)
private

Definition at line 167 of file synaesthesia.cpp.

◆ setStarSize()

void Synaesthesia::setStarSize ( double  lsize)
private

Definition at line 192 of file synaesthesia.cpp.

◆ addPixel()

void Synaesthesia::addPixel ( int  x,
int  y,
int  br1,
int  br2 
)
inlineprivate

Definition at line 225 of file synaesthesia.cpp.

◆ addPixelFast()

void Synaesthesia::addPixelFast ( unsigned char *  p,
int  br1,
int  br2 
)
inlinestaticprivate

Definition at line 241 of file synaesthesia.cpp.

◆ getPixel()

unsigned char Synaesthesia::getPixel ( int  x,
int  y,
int  where 
)
inlineprivate

Definition at line 253 of file synaesthesia.cpp.

◆ fadePixelWave()

void Synaesthesia::fadePixelWave ( int  x,
int  y,
int  where,
int  step 
)
inlineprivate

Definition at line 279 of file synaesthesia.cpp.

◆ fadeWave()

void Synaesthesia::fadeWave ( void  )
private

Definition at line 301 of file synaesthesia.cpp.

◆ fadePixelHeat()

void Synaesthesia::fadePixelHeat ( int  x,
int  y,
int  where,
int  step 
)
inlineprivate

Definition at line 356 of file synaesthesia.cpp.

◆ fadeHeat()

void Synaesthesia::fadeHeat ( void  )
private

Definition at line 377 of file synaesthesia.cpp.

◆ fadeFade()

void Synaesthesia::fadeFade ( void  )
private

Definition at line 261 of file synaesthesia.cpp.

◆ fade()

void Synaesthesia::fade ( void  )
private

Definition at line 431 of file synaesthesia.cpp.

Member Data Documentation

◆ m_size

QSize Synaesthesia::m_size {0,0}
private

Definition at line 49 of file synaesthesia.h.

◆ m_cosTable

double Synaesthesia::m_cosTable[NumSamples] {}
private

Definition at line 51 of file synaesthesia.h.

◆ m_negSinTable

double Synaesthesia::m_negSinTable[NumSamples] {}
private

Definition at line 52 of file synaesthesia.h.

◆ m_bitReverse

int Synaesthesia::m_bitReverse[NumSamples] {}
private

Definition at line 53 of file synaesthesia.h.

◆ m_scaleDown

int Synaesthesia::m_scaleDown[256] {}
private

Definition at line 54 of file synaesthesia.h.

◆ m_maxStarRadius

int Synaesthesia::m_maxStarRadius {1}
private

Definition at line 55 of file synaesthesia.h.

◆ m_fadeMode

int Synaesthesia::m_fadeMode {Stars}
private

Definition at line 56 of file synaesthesia.h.

◆ m_pointsAreDiamonds

bool Synaesthesia::m_pointsAreDiamonds {true}
private

Definition at line 57 of file synaesthesia.h.

◆ m_brightnessTwiddler

double Synaesthesia::m_brightnessTwiddler {0.3}
private

Definition at line 58 of file synaesthesia.h.

◆ m_starSize

double Synaesthesia::m_starSize {0.5}
private

Definition at line 59 of file synaesthesia.h.

◆ m_outWidth

int Synaesthesia::m_outWidth {0}
private

Definition at line 61 of file synaesthesia.h.

◆ m_outHeight

int Synaesthesia::m_outHeight {0}
private

Definition at line 62 of file synaesthesia.h.

◆ m_outputBmp

Bitmap<unsigned short> Synaesthesia::m_outputBmp
private

Definition at line 64 of file synaesthesia.h.

◆ m_lastOutputBmp

Bitmap<unsigned short> Synaesthesia::m_lastOutputBmp
private

Definition at line 65 of file synaesthesia.h.

◆ m_lastLastOutputBmp

Bitmap<unsigned short> Synaesthesia::m_lastLastOutputBmp
private

Definition at line 66 of file synaesthesia.h.

◆ m_outputImage

QImage* Synaesthesia::m_outputImage {nullptr}
private

Definition at line 67 of file synaesthesia.h.

◆ m_palette

unsigned char Synaesthesia::m_palette[768] {}
private

Definition at line 69 of file synaesthesia.h.

◆ m_fgRedSlider

double Synaesthesia::m_fgRedSlider {0.0}
private

Definition at line 70 of file synaesthesia.h.

◆ m_fgGreenSlider

double Synaesthesia::m_fgGreenSlider {0.5}
private

Definition at line 71 of file synaesthesia.h.

◆ m_bgRedSlider

double Synaesthesia::m_bgRedSlider {0.75}
private

Definition at line 72 of file synaesthesia.h.

◆ m_bgGreenSlider

double Synaesthesia::m_bgGreenSlider {0.4}
private

Definition at line 73 of file synaesthesia.h.

◆ m_energyAvg

double Synaesthesia::m_energyAvg {80.0}
private

Definition at line 75 of file synaesthesia.h.


The documentation for this class was generated from the following files: