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

Functions

template<bool IS_A8R8G8B8>
static void imageCleanTransparentWithInlining (video::IImage *src, u32 threshold)
 
void imageCleanTransparent (video::IImage *src, u32 threshold)
 
template<bool IS_A8R8G8B8>
static video::SColor imageAverageColorInline (const video::IImage *src)
 
video::SColor imageAverageColor (const video::IImage *img)
 
void imageScaleNNAA (video::IImage *src, const core::rect< s32 > &srcrect, video::IImage *dest)
 

Function Documentation

◆ imageAverageColor()

video::SColor imageAverageColor ( const video::IImage * img)

References imageAverageColorInline().

Referenced by TextureSource::getTextureAverageColor().

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

◆ imageAverageColorInline()

template<bool IS_A8R8G8B8>
static video::SColor imageAverageColorInline ( const video::IImage * src)
static

References x, and y.

Referenced by imageAverageColor().

+ 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::get(), Bitmap::set(), x, and y.

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().

Referenced by guiScalingResizeCached().

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