Copied poke255_uc implementation from gtk3 into master

This commit is contained in:
heckflosse
2016-05-22 14:35:53 +02:00
parent f490c64682
commit 023e7d3695
4 changed files with 58 additions and 25 deletions

View File

@@ -22,6 +22,13 @@
namespace rtengine
{
// update a point of a Cairo::Surface by accessing the raw data
void poke255_uc(unsigned char* &dest, unsigned char r, unsigned char g, unsigned char b);
// update a point of a Cairo::Surface by accessing the raw data
void poke01_d(unsigned char* &dest, double r, double g, double b);
// update a point of a Cairo::Surface by accessing the raw data
void poke01_f(unsigned char* &dest, float r, float g, float b);
void bilinearInterp (const unsigned char* src, int sw, int sh, unsigned char* dst, int dw, int dh);
void nearestInterp (const unsigned char* src, int sw, int sh, unsigned char* dst, int dw, int dh);
void rotate (unsigned char* img, int& w, int& h, int deg);