MythTV master
Classes | Functions | Variables
goom_core.cpp File Reference
#include "goomconfig.h"
#include <algorithm>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include "goom_core.h"
#include "goom_tools.h"
#include "filters.h"
#include "lines.h"
#include "ifs.h"
#include "tentacle3d.h"
#include "libmythbase/mythrandom.h"
Include dependency graph for goom_core.cpp:

Go to the source code of this file.

Classes

struct  GoomState
 

Functions

void choose_a_goom_line (float *param1, float *param2, int *couleur, int *mode, float *amplitude, int far)
 
void goom_init (uint32_t resx, uint32_t resy, int cinemascope)
 
void goom_set_resolution (uint32_t resx, uint32_t resy, int cinemascope)
 
uint32_t * goom_update (GoomDualData &data, int forceMode)
 
void goom_close ()
 

Variables

static constexpr int32_t STOP_SPEED { 128 }
 
static constexpr int16_t TIME_BTW_CHG { 300 }
 
static std::vector< uint32_t > pixel
 --------------------------------------------------—** More...
 
static std::vector< uint32_t > back
 
static uint32_t * p1
 
static uint32_t * p2
 
static uint32_t cycle
 
static constexpr size_t STATES_NB { 8 }
 
static constexpr uint16_t STATES_RANGEMAX { 510 }
 
const std::array< const GoomState, STATES_NBkStates
 
const GoomStatecurGState = &kStates[4]
 
uint32_t resolx
 
uint32_t resoly
 
uint32_t buffsize
 
uint32_t c_black_height = 0
 
uint32_t c_offset = 0
 
uint32_t c_resoly = 0
 
static GMLinegmline1 = nullptr
 
static GMLinegmline2 = nullptr
 

Function Documentation

◆ choose_a_goom_line()

void choose_a_goom_line ( float *  param1,
float *  param2,
int *  couleur,
int *  mode,
float *  amplitude,
int  far 
)

Definition at line 840 of file goom_core.cpp.

Referenced by goom_update().

◆ goom_close()

void goom_close ( void  )

Definition at line 830 of file goom_core.cpp.

Referenced by Goom::~Goom(), and VideoVisualGoom::~VideoVisualGoom().

◆ goom_init()

void goom_init ( uint32_t  resx,
uint32_t  resy,
int  cinemascope 
)

Definition at line 66 of file goom_core.cpp.

Referenced by Goom::Goom(), and VideoVisualGoom::VideoVisualGoom().

◆ goom_set_resolution()

void goom_set_resolution ( uint32_t  resx,
uint32_t  resy,
int  cinemascope 
)

Definition at line 100 of file goom_core.cpp.

Referenced by Goom::resize().

◆ goom_update()

uint32_t * goom_update ( GoomDualData data,
int  forceMode 
)

Definition at line 127 of file goom_core.cpp.

Referenced by VideoVisualGoom::Draw(), and Goom::process().

Variable Documentation

◆ back

std::vector<uint32_t> back
static

◆ buffsize

uint32_t buffsize

Definition at line 58 of file goom_core.cpp.

Referenced by goom_init(), and goom_set_resolution().

◆ c_black_height

uint32_t c_black_height = 0

Definition at line 58 of file goom_core.cpp.

Referenced by goom_init(), and goom_set_resolution().

◆ c_offset

uint32_t c_offset = 0

Definition at line 58 of file goom_core.cpp.

Referenced by goom_init(), goom_set_resolution(), and goom_update().

◆ c_resoly

uint32_t c_resoly = 0

Definition at line 58 of file goom_core.cpp.

Referenced by choose_a_goom_line(), goom_init(), goom_set_resolution(), and goom_update().

◆ curGState

const GoomState* curGState = &kStates[4]

Definition at line 56 of file goom_core.cpp.

Referenced by goom_update().

◆ cycle

uint32_t cycle
static

Definition at line 29 of file goom_core.cpp.

Referenced by goom_init(), goom_update(), and pointFilter().

◆ gmline1

GMLine* gmline1 = nullptr
static

Definition at line 61 of file goom_core.cpp.

Referenced by goom_close(), goom_init(), goom_set_resolution(), and goom_update().

◆ gmline2

GMLine* gmline2 = nullptr
static

Definition at line 62 of file goom_core.cpp.

Referenced by goom_close(), goom_init(), goom_set_resolution(), and goom_update().

◆ kStates

const std::array<const GoomState,STATES_NB> kStates
Initial value:
{{
{1,0,0,1,4, 000, 100},
{1,0,0,1,1, 101, 140},
{1,0,0,1,2, 141, 200},
{0,1,0,1,2, 201, 260},
{0,1,0,1,0, 261, 330},
{0,1,1,1,4, 331, 400},
{0,0,1,1,5, 401, 450},
{0,0,1,1,1, 451, 510}
}}

Definition at line 45 of file goom_core.cpp.

Referenced by goom_update().

◆ p1

uint32_t* p1
static

◆ p2

uint32_t * p2
static

◆ pixel

std::vector<uint32_t> pixel
static

◆ resolx

uint32_t resolx

◆ resoly

uint32_t resoly

Definition at line 58 of file goom_core.cpp.

Referenced by goom_init(), goom_set_resolution(), and setPixelRGB().

◆ STATES_NB

constexpr size_t STATES_NB { 8 }
staticconstexpr

Definition at line 43 of file goom_core.cpp.

◆ STATES_RANGEMAX

constexpr uint16_t STATES_RANGEMAX { 510 }
staticconstexpr

Definition at line 44 of file goom_core.cpp.

Referenced by goom_update().

◆ STOP_SPEED

constexpr int32_t STOP_SPEED { 128 }
staticconstexpr

Definition at line 20 of file goom_core.cpp.

Referenced by goom_update().

◆ TIME_BTW_CHG

constexpr int16_t TIME_BTW_CHG { 300 }
staticconstexpr

Definition at line 21 of file goom_core.cpp.

Referenced by goom_update().