21 #ifndef GRAPHICS_SCALER_EDGE_H 22 #define GRAPHICS_SCALER_EDGE_H 24 #include "graphics/scalerplugin.h" 35 virtual void internScale(
const uint8 *srcPtr, uint32 srcPitch,
36 uint8 *dstPtr, uint32 dstPitch,
37 const uint8 *oldSrcPtr, uint32 oldSrcPitch,
38 int width,
int height,
const uint8 *buffer, uint32 bufferPitch)
override;
66 template<
typename ColorMask>
67 int16 *chooseGreyscale(
typename ColorMask::PixelType *pixels);
75 template<
typename ColorMask>
76 int32 calcPixelDiffNosqrt(
typename ColorMask::PixelType pixel1,
typename ColorMask::PixelType pixel2);
91 int findPrincipleAxis(int16 *diffs, int16 *bplane,
98 template<
typename Pixel>
99 int checkArrows(
int best_dir, Pixel *pixels, int8 *sim,
int half_flag);
108 template<
typename Pixel>
109 int refineDirection(
char edge_type, Pixel *pixels, int16 *bptr,
110 int8 *sim,
double angle);
115 template<
typename Pixel>
116 int fixKnights(
int sub_type, Pixel *pixels, int8 *sim);
121 void initTables(
const uint8 *srcPtr, uint32 srcPitch,
122 int width,
int height);
127 template<
typename ColorMask>
128 void antiAliasGrid2x(uint8 *dptr,
int dstPitch,
129 typename ColorMask::PixelType *pixels,
int sub_type, int16 *bptr,
136 template<
typename ColorMask>
137 void antiAliasGridClean3x(uint8 *dptr,
int dstPitch,
138 typename ColorMask::PixelType *pixels,
int sub_type, int16 *bptr);
143 template<
typename ColorMask>
144 void antiAliasPass2x(
const uint8 *src, uint8 *dst,
146 int srcPitch,
int dstPitch,
149 const uint8 *oldSrc,
int oldSrcPitch,
150 const uint8 *buffer,
int bufferPitch);
155 template<
typename ColorMask>
156 void antiAliasPass3x(
const uint8 *src, uint8 *dst,
158 int srcPitch,
int dstPitch,
160 const uint8* oldSrc,
int oldPitch,
161 const uint8 *buffer,
int bufferPitch);
163 int16 _rgbTable[65536][3];
164 int16 _greyscaleTable[3][65536];
165 int16 *_chosenGreyscale;
168 int16 _greyscaleDiffs[3][8];
169 int16 _bplanes[3][9];
Definition: scalerplugin.h:112
uint increaseFactor() override
uint decreaseFactor() override
virtual void internScale(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, const uint8 *oldSrcPtr, uint32 oldSrcPitch, int width, int height, const uint8 *buffer, uint32 bufferPitch) override