#include "xbrz.hpp"
#include <cassert>
#include <vector>
#include <algorithm>
#include <cmath>
#include "xbrz_tools.hpp"
#include "../global.hpp"
Go to the source code of this file.
|
#define | FORCE_INLINE inline |
|
#define | DEF_GETTER(x) template <RotationDegree rotDeg> uint32_t inline get_##x(const Kernel_3x3& ker) { return ker.x; } |
|
#define | DEF_GETTER(x, y) template <> inline uint32_t get_##x<ROT_90>(const Kernel_3x3& ker) { return ker.y; } |
|
#define | DEF_GETTER(x, y) template <> inline uint32_t get_##x<ROT_180>(const Kernel_3x3& ker) { return ker.y; } |
|
#define | DEF_GETTER(x, y) template <> inline uint32_t get_##x<ROT_270>(const Kernel_3x3& ker) { return ker.y; } |
|
#define | b get_b<rotDeg>(ker) |
|
#define | c get_c<rotDeg>(ker) |
|
#define | d get_d<rotDeg>(ker) |
|
#define | e get_e<rotDeg>(ker) |
|
#define | f get_f<rotDeg>(ker) |
|
#define | g get_g<rotDeg>(ker) |
|
#define | h get_h<rotDeg>(ker) |
|
#define | i get_i<rotDeg>(ker) |
|
#define b get_b<rotDeg>(ker) |
#define c get_c<rotDeg>(ker) |
#define d get_d<rotDeg>(ker) |
◆ DEF_GETTER [1/4]
#define DEF_GETTER |
( |
|
x | ) |
template <RotationDegree rotDeg> uint32_t inline get_##x(const Kernel_3x3& ker) { return ker.x; } |
◆ DEF_GETTER [2/4]
#define DEF_GETTER |
( |
|
x, |
|
|
|
y |
|
) |
| template <> inline uint32_t get_##x<ROT_90>(const Kernel_3x3& ker) { return ker.y; } |
◆ DEF_GETTER [3/4]
#define DEF_GETTER |
( |
|
x, |
|
|
|
y |
|
) |
| template <> inline uint32_t get_##x<ROT_180>(const Kernel_3x3& ker) { return ker.y; } |
◆ DEF_GETTER [4/4]
#define DEF_GETTER |
( |
|
x, |
|
|
|
y |
|
) |
| template <> inline uint32_t get_##x<ROT_270>(const Kernel_3x3& ker) { return ker.y; } |
#define e get_e<rotDeg>(ker) |
#define f get_f<rotDeg>(ker) |
◆ FORCE_INLINE
#define FORCE_INLINE inline |
#define g get_g<rotDeg>(ker) |
#define h get_h<rotDeg>(ker) |
#define i get_i<rotDeg>(ker) |