|
MythTV master
|
#include <algorithm>#include <array>#include <cmath>#include <cstdint>#include <cstdio>#include <cstdlib>#include "filters.h"#include "goom_tools.h"#include "goomconfig.h"#include "graphic.h"#include "zoom_filters.h"#include "libmythbase/mythconfig.h"#include "libmythbase/mythrandom.h"Go to the source code of this file.
Functions | |
| void | c_zoom (unsigned int *expix1, unsigned int *expix2, unsigned int prevX, unsigned int prevY, const signed int *brutS, const signed int *brutD) |
| static void | select_zoom_filter (void) |
| static int | ShiftRight (int x, int s) |
| void | generatePrecalCoef (void) |
| void | calculatePXandPY (int x, int y, int *px, int *py) |
| void | setPixelRGB (unsigned int *buffer, unsigned int x, unsigned int y, Color c) |
| void | setPixelRGB_ (unsigned int *buffer, unsigned int x, Color c) |
| void | getPixelRGB (const unsigned int *buffer, unsigned int x, unsigned int y, Color *c) |
| void | getPixelRGB_ (const unsigned int *buffer, unsigned int x, Color *c) |
| void | zoomFilterFastRGB (unsigned int *pix1, unsigned int *pix2, ZoomFilterData *zf, unsigned int resx, unsigned int resy, int switchIncr, float switchMult) |
| void | pointFilter (unsigned int *pix1, Color c, float t1, float t2, float t3, float t4, unsigned int cycle) |
Variables | |
| static constexpr int8_t | EFFECT_DISTORS { 4 } |
| static constexpr int8_t | EFFECT_DISTORS_SL { 2 } |
| volatile uint32_t | resolx |
| volatile uint32_t | c_resoly |
| uint32_t | mmx_zoom_size |
| unsigned int * | coeffs = nullptr |
| unsigned int * | freecoeffs = nullptr |
| signed int * | brutS = nullptr |
| signed int * | freebrutS = nullptr |
| signed int * | brutD = nullptr |
| signed int * | freebrutD = nullptr |
| signed int * | brutT = nullptr |
| signed int * | freebrutT = nullptr |
| uint32_t * | expix1 = nullptr |
| uint32_t * | expix2 = nullptr |
| uint32_t | zoom_width |
| unsigned int | prevX = 0 |
| unsigned int | prevY = 0 |
| static std::array< int, 0x10000 > | sintable |
| static int | vitesse = 127 |
| static char | theMode = AMULETTE_MODE |
| static bool | waveEffect = false |
| static bool | hypercosEffect = false |
| static int | vPlaneEffect = 0 |
| static int | hPlaneEffect = 0 |
| static char | noisify = 1 |
| static int | middleX |
| static int | middleY |
| int | buffratio = 0 |
| modif by jeko : fixedpoint : buffration = (16:16) (donc 0<=buffration<=2^16) More... | |
| static constexpr uint8_t | BUFFPOINTNB { 16 } |
| static constexpr int32_t | BUFFPOINTMASK { 0xffff } |
| static constexpr int8_t | sqrtperte { 16 } |
| static constexpr int8_t | PERTEMASK { 0xf } |
| static constexpr uint8_t | PERTEDEC { 4 } |
| static int * | firedec = nullptr |
| GoomCoefficients | precalCoef = {} |
| modif d'optim by Jeko : precalcul des 4 coefs résultant des 2 pos More... | |
| void c_zoom | ( | unsigned int * | expix1, |
| unsigned int * | expix2, | ||
| unsigned int | prevX, | ||
| unsigned int | prevY, | ||
| const signed int * | brutS, | ||
| const signed int * | brutD | ||
| ) |
Definition at line 379 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| void calculatePXandPY | ( | int | x, |
| int | y, | ||
| int * | px, | ||
| int * | py | ||
| ) |
Definition at line 184 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| void generatePrecalCoef | ( | void | ) |
Definition at line 138 of file filters.cpp.
Referenced by zoomFilterFastRGB().
|
inline |
Definition at line 334 of file filters.cpp.
| void getPixelRGB_ | ( | const unsigned int * | buffer, |
| unsigned int | x, | ||
| Color * | c | ||
| ) |
Definition at line 352 of file filters.cpp.
Referenced by c_zoom().
| void pointFilter | ( | unsigned int * | pix1, |
| Color | c, | ||
| float | t1, | ||
| float | t2, | ||
| float | t3, | ||
| float | t4, | ||
| unsigned int | cycle | ||
| ) |
Definition at line 673 of file filters.cpp.
Referenced by goom_update().
|
static |
Definition at line 66 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| void setPixelRGB | ( | unsigned int * | buffer, |
| unsigned int | x, | ||
| unsigned int | y, | ||
| Color | c | ||
| ) |
Definition at line 303 of file filters.cpp.
Referenced by pointFilter().
| void setPixelRGB_ | ( | unsigned int * | buffer, |
| unsigned int | x, | ||
| Color | c | ||
| ) |
Definition at line 319 of file filters.cpp.
Referenced by c_zoom().
|
inlinestatic |
Definition at line 124 of file filters.cpp.
Referenced by calculatePXandPY().
| void zoomFilterFastRGB | ( | unsigned int * | pix1, |
| unsigned int * | pix2, | ||
| ZoomFilterData * | zf, | ||
| unsigned int | resx, | ||
| unsigned int | resy, | ||
| int | switchIncr, | ||
| float | switchMult | ||
| ) |
Definition at line 450 of file filters.cpp.
Referenced by goom_update().
| signed int* brutD = nullptr |
Definition at line 82 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| signed int* brutS = nullptr |
Definition at line 81 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| signed int* brutT = nullptr |
Definition at line 83 of file filters.cpp.
Referenced by zoomFilterFastRGB().
|
staticconstexpr |
Definition at line 111 of file filters.cpp.
Referenced by zoomFilterFastRGB().
|
staticconstexpr |
Definition at line 110 of file filters.cpp.
Referenced by c_zoom(), and zoomFilterFastRGB().
| int buffratio = 0 |
modif by jeko : fixedpoint : buffration = (16:16) (donc 0<=buffration<=2^16)
Definition at line 108 of file filters.cpp.
Referenced by c_zoom(), and zoomFilterFastRGB().
|
extern |
Definition at line 58 of file goom_core.cpp.
Referenced by calculatePXandPY(), choose_a_goom_line(), getPixelRGB(), getPixelRGB_(), goom_init(), goom_set_resolution(), goom_update(), pointFilter(), and setPixelRGB_().
| unsigned int* coeffs = nullptr |
Definition at line 79 of file filters.cpp.
|
staticconstexpr |
Definition at line 30 of file filters.cpp.
Referenced by calculatePXandPY().
|
staticconstexpr |
Definition at line 31 of file filters.cpp.
Referenced by calculatePXandPY().
| uint32_t* expix1 = nullptr |
Definition at line 86 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| uint32_t* expix2 = nullptr |
Definition at line 87 of file filters.cpp.
Referenced by zoomFilterFastRGB().
|
static |
Definition at line 120 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
| signed int * freebrutD = nullptr |
Definition at line 82 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| signed int * freebrutS = nullptr |
Definition at line 81 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| signed int * freebrutT = nullptr |
Definition at line 83 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| unsigned int * freecoeffs = nullptr |
Definition at line 79 of file filters.cpp.
|
static |
Definition at line 100 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
Definition at line 98 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
|
static |
Definition at line 102 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
|
static |
Definition at line 102 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
| uint32_t mmx_zoom_size |
Definition at line 77 of file filters.cpp.
Referenced by zoomFilterFastRGB().
|
static |
Definition at line 101 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
|
staticconstexpr |
Definition at line 118 of file filters.cpp.
Referenced by c_zoom().
|
staticconstexpr |
Definition at line 116 of file filters.cpp.
Referenced by c_zoom().
| GoomCoefficients precalCoef = {} |
modif d'optim by Jeko : precalcul des 4 coefs résultant des 2 pos
Definition at line 127 of file filters.cpp.
Referenced by c_zoom(), generatePrecalCoef(), and zoomFilterFastRGB().
| unsigned int prevX = 0 |
Definition at line 92 of file filters.cpp.
Referenced by zoomFilterFastRGB().
| unsigned int prevY = 0 |
Definition at line 92 of file filters.cpp.
Referenced by FormattedTextSubtitle608::Layout(), and zoomFilterFastRGB().
|
extern |
Definition at line 58 of file goom_core.cpp.
Referenced by getPixelRGB(), getPixelRGB_(), pointFilter(), setPixelRGB(), and setPixelRGB_().
|
static |
Definition at line 94 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
|
staticconstexpr |
Definition at line 114 of file filters.cpp.
Referenced by generatePrecalCoef(), and zoomFilterFastRGB().
|
static |
Definition at line 96 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
|
static |
Definition at line 95 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
|
static |
Definition at line 99 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
Definition at line 97 of file filters.cpp.
Referenced by calculatePXandPY(), and zoomFilterFastRGB().
| uint32_t zoom_width |
Definition at line 90 of file filters.cpp.
Referenced by zoomFilterFastRGB().