The Battle for Wesnoth  1.19.7+dev
Namespaces | Functions
xbrz_tools.hpp File Reference
#include <cassert>
#include <algorithm>
#include <type_traits>
Include dependency graph for xbrz_tools.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 xbrz
 

Functions

template<uint32_t N>
unsigned char xbrz::getByte (uint32_t val)
 
unsigned char xbrz::getAlpha (uint32_t pix)
 
unsigned char xbrz::getRed (uint32_t pix)
 
unsigned char xbrz::getGreen (uint32_t pix)
 
unsigned char xbrz::getBlue (uint32_t pix)
 
uint32_t xbrz::makePixel (unsigned char a, unsigned char r, unsigned char g, unsigned char b)
 
uint32_t xbrz::makePixel (unsigned char r, unsigned char g, unsigned char b)
 
uint32_t xbrz::rgb555to888 (uint16_t pix)
 
uint32_t xbrz::rgb565to888 (uint16_t pix)
 
uint16_t xbrz::rgb888to555 (uint32_t pix)
 
uint16_t xbrz::rgb888to565 (uint32_t pix)
 
template<class Pix >
Pix * xbrz::byteAdvance (Pix *ptr, int bytes)
 
template<class Pix >
void xbrz::fillBlock (Pix *trg, int pitch, Pix col, int blockWidth, int blockHeight)
 
template<class PixSrc , class PixTrg , class PixConverter >
void xbrz::nearestNeighborScale (const PixSrc *src, int srcWidth, int srcHeight, int srcPitch, PixTrg *trg, int trgWidth, int trgHeight, int trgPitch, int yFirst, int yLast, PixConverter pixCvrt)
 
template<class PixSrc , class PixTrg , class PixConverter >
void xbrz::nearestNeighborScaleOverSource (const PixSrc *src, int srcWidth, int srcHeight, int srcPitch, PixTrg *trg, int trgWidth, int trgHeight, int trgPitch, int yFirst, int yLast, PixConverter pixCvrt)
 
template<class PixTrg , class PixConverter >
void xbrz::bilinearScale (const uint32_t *src, int srcWidth, int srcHeight, int srcPitch, PixTrg *trg, int trgWidth, int trgHeight, int trgPitch, int yFirst, int yLast, PixConverter pixCvrt)