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) const
 
unsigned char getPixel (int x, int y, int where) const
 
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) const
 
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}
 
samp_dbl_array m_cosTable {}
 
samp_dbl_array m_negSinTable {}
 
samp_int_array m_bitReverse {}
 
std::array< int, 256 > m_scaleDown {}
 
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}
 
std::array< uint8_t, 768 > m_palette {}
 
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, 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 27 of file synaesthesia.h.

Constructor & Destructor Documentation

◆ Synaesthesia()

Synaesthesia::Synaesthesia ( void  )

Definition at line 29 of file synaesthesia.cpp.

◆ ~Synaesthesia()

Synaesthesia::~Synaesthesia ( )
override

Definition at line 38 of file synaesthesia.cpp.

Member Function Documentation

◆ resize()

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

Implements VisualBase.

Definition at line 102 of file synaesthesia.cpp.

◆ process()

bool Synaesthesia::process ( VisualNode node)
overridevirtual

Implements VisualBase.

Definition at line 439 of file synaesthesia.cpp.

◆ draw()

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

Implements VisualBase.

Definition at line 583 of file synaesthesia.cpp.

◆ handleKeyPress()

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

Implements VisualBase.

Definition at line 36 of file synaesthesia.h.

◆ setupPalette()

void Synaesthesia::setupPalette ( void  )
private

Definition at line 43 of file synaesthesia.cpp.

Referenced by Synaesthesia().

◆ coreInit()

void Synaesthesia::coreInit ( void  )
private

Definition at line 208 of file synaesthesia.cpp.

Referenced by Synaesthesia().

◆ bitReverser()

int Synaesthesia::bitReverser ( int  i)
staticprivate

Definition at line 152 of file synaesthesia.cpp.

Referenced by coreInit().

◆ fft()

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

Definition at line 164 of file synaesthesia.cpp.

Referenced by process().

◆ setStarSize()

void Synaesthesia::setStarSize ( double  lsize)
private

Definition at line 189 of file synaesthesia.cpp.

Referenced by Synaesthesia().

◆ addPixel()

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

Definition at line 222 of file synaesthesia.cpp.

Referenced by process().

◆ addPixelFast()

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

Definition at line 238 of file synaesthesia.cpp.

Referenced by process().

◆ getPixel()

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

Definition at line 250 of file synaesthesia.cpp.

Referenced by fadePixelHeat(), and fadePixelWave().

◆ fadePixelWave()

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

Definition at line 276 of file synaesthesia.cpp.

Referenced by fadeWave().

◆ fadeWave()

void Synaesthesia::fadeWave ( void  )
private

Definition at line 298 of file synaesthesia.cpp.

Referenced by fade().

◆ fadePixelHeat()

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

Definition at line 353 of file synaesthesia.cpp.

Referenced by fadeHeat().

◆ fadeHeat()

void Synaesthesia::fadeHeat ( void  )
private

Definition at line 374 of file synaesthesia.cpp.

Referenced by fade().

◆ fadeFade()

void Synaesthesia::fadeFade ( void  ) const
private

Definition at line 258 of file synaesthesia.cpp.

Referenced by fade().

◆ fade()

void Synaesthesia::fade ( void  )
private

Definition at line 428 of file synaesthesia.cpp.

Referenced by process().

Member Data Documentation

◆ m_size

QSize Synaesthesia::m_size {0,0}
private

Definition at line 57 of file synaesthesia.h.

Referenced by resize().

◆ m_cosTable

samp_dbl_array Synaesthesia::m_cosTable {}
private

Definition at line 59 of file synaesthesia.h.

Referenced by coreInit(), and fft().

◆ m_negSinTable

samp_dbl_array Synaesthesia::m_negSinTable {}
private

Definition at line 60 of file synaesthesia.h.

Referenced by coreInit(), and fft().

◆ m_bitReverse

samp_int_array Synaesthesia::m_bitReverse {}
private

Definition at line 61 of file synaesthesia.h.

Referenced by coreInit(), and process().

◆ m_scaleDown

std::array<int,256> Synaesthesia::m_scaleDown {}
private

Definition at line 62 of file synaesthesia.h.

Referenced by process(), and setStarSize().

◆ m_maxStarRadius

int Synaesthesia::m_maxStarRadius {1}
private

Definition at line 63 of file synaesthesia.h.

Referenced by process(), and setStarSize().

◆ m_fadeMode

int Synaesthesia::m_fadeMode {Stars}
private

Definition at line 64 of file synaesthesia.h.

Referenced by fade(), and setStarSize().

◆ m_pointsAreDiamonds

bool Synaesthesia::m_pointsAreDiamonds {true}
private

Definition at line 65 of file synaesthesia.h.

Referenced by process().

◆ m_brightnessTwiddler

double Synaesthesia::m_brightnessTwiddler {0.3}
private

Definition at line 66 of file synaesthesia.h.

Referenced by process().

◆ m_starSize

double Synaesthesia::m_starSize {0.5}
private

Definition at line 67 of file synaesthesia.h.

Referenced by process(), and Synaesthesia().

◆ m_outWidth

int Synaesthesia::m_outWidth {0}
private

Definition at line 69 of file synaesthesia.h.

Referenced by addPixel(), draw(), fadeFade(), fadeHeat(), fadeWave(), getPixel(), process(), and resize().

◆ m_outHeight

int Synaesthesia::m_outHeight {0}
private

Definition at line 70 of file synaesthesia.h.

Referenced by addPixel(), draw(), fadeFade(), fadeHeat(), fadeWave(), getPixel(), process(), and resize().

◆ m_outputBmp

Bitmap<unsigned short> Synaesthesia::m_outputBmp
private

Definition at line 72 of file synaesthesia.h.

Referenced by fadeHeat(), fadeWave(), and resize().

◆ m_lastOutputBmp

Bitmap<unsigned short> Synaesthesia::m_lastOutputBmp
private

Definition at line 73 of file synaesthesia.h.

Referenced by fadeHeat(), fadeWave(), and resize().

◆ m_lastLastOutputBmp

Bitmap<unsigned short> Synaesthesia::m_lastLastOutputBmp
private

Definition at line 74 of file synaesthesia.h.

Referenced by fadeHeat(), fadeWave(), and resize().

◆ m_outputImage

QImage* Synaesthesia::m_outputImage {nullptr}
private

Definition at line 75 of file synaesthesia.h.

Referenced by draw(), resize(), and ~Synaesthesia().

◆ m_palette

std::array<uint8_t,768> Synaesthesia::m_palette {}
private

Definition at line 77 of file synaesthesia.h.

Referenced by resize(), and setupPalette().

◆ m_fgRedSlider

double Synaesthesia::m_fgRedSlider {0.0}
private

Definition at line 78 of file synaesthesia.h.

Referenced by setupPalette().

◆ m_fgGreenSlider

double Synaesthesia::m_fgGreenSlider {0.5}
private

Definition at line 79 of file synaesthesia.h.

Referenced by setupPalette().

◆ m_bgRedSlider

double Synaesthesia::m_bgRedSlider {0.75}
private

Definition at line 80 of file synaesthesia.h.

Referenced by setupPalette().

◆ m_bgGreenSlider

double Synaesthesia::m_bgGreenSlider {0.4}
private

Definition at line 81 of file synaesthesia.h.

Referenced by setupPalette().

◆ m_energyAvg

double Synaesthesia::m_energyAvg {80.0}
private

Definition at line 83 of file synaesthesia.h.

Referenced by process().


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