Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
imagefilters.cpp File Reference
#include "imagefilters.h"
#include "util/numeric.h"
#include <cmath>
#include <cassert>
#include <vector>
#include <algorithm>
#include <IVideoDriver.h>
+ Include dependency graph for imagefilters.cpp:

Classes

class  Bitmap
 

Functions

template<bool IS_A8R8G8B8>
static void imageCleanTransparentWithInlining (video::IImage *src, u32 threshold)
 
void imageCleanTransparent (video::IImage *src, u32 threshold)
 
void imageScaleNNAA (video::IImage *src, const core::rect< s32 > &srcrect, video::IImage *dest)
 
video::IImage * Align2Npot2 (video::IImage *image, video::IVideoDriver *driver)
 

Function Documentation

◆ Align2Npot2()

video::IImage * Align2Npot2 ( video::IImage * image,
video::IVideoDriver * driver )

References npot2().

Referenced by TextureSource::generateTexture(), MenuTextureSource::getTexture(), and TextureSource::rebuildTexture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ imageCleanTransparent()

void imageCleanTransparent ( video::IImage * src,
u32 threshold )

References imageCleanTransparentWithInlining().

Referenced by ImageSource::generateImagePart(), and guiScalingResizeCached().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ imageCleanTransparentWithInlining()

template<bool IS_A8R8G8B8>
static void imageCleanTransparentWithInlining ( video::IImage * src,
u32 threshold )
static

References Bitmap::all(), Bitmap::copy(), Bitmap::get(), and Bitmap::set().

Referenced by imageCleanTransparent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ imageScaleNNAA()

void imageScaleNNAA ( video::IImage * src,
const core::rect< s32 > & srcrect,
video::IImage * dest )

References rangelim, and SWAP.

Referenced by guiScalingResizeCached().

+ Here is the caller graph for this function: