The Battle for Wesnoth  1.19.5+dev
Namespaces | Enumerations | Functions | Variables
xbrz.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <limits>
#include "xbrz_config.hpp"
Include dependency graph for xbrz.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 xbrz
 

Enumerations

enum class  xbrz::ColorFormat { xbrz::RGB , xbrz::ARGB , xbrz::ARGB_UNBUFFERED }
 

Functions

void xbrz::scale (size_t factor, const uint32_t *src, uint32_t *trg, int srcWidth, int srcHeight, ColorFormat colFmt, const ScalerCfg &cfg=ScalerCfg(), int yFirst=0, int yLast=std::numeric_limits< int >::max())
 
void xbrz::bilinearScale (const uint32_t *src, int srcWidth, int srcHeight, uint32_t *trg, int trgWidth, int trgHeight)
 
void xbrz::nearestNeighborScale (const uint32_t *src, int srcWidth, int srcHeight, uint32_t *trg, int trgWidth, int trgHeight)
 
bool xbrz::equalColorTest (uint32_t col1, uint32_t col2, ColorFormat colFmt, double luminanceWeight, double equalColorTolerance)
 

Variables

const int xbrz::SCALE_FACTOR_MAX = 6