Clean-ups for #3616
This commit is contained in:
@@ -19,23 +19,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <type_traits>
|
||||
#include <glibmm.h>
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
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);
|
||||
// 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);
|
||||
void hflip (unsigned char* img, int w, int h);
|
||||
void vflip (unsigned char* img, int w, int h);
|
||||
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);
|
||||
void hflip(unsigned char* img, int w, int h);
|
||||
void vflip(unsigned char* img, int w, int h);
|
||||
|
||||
template<typename ENUM>
|
||||
typename std::underlying_type<ENUM>::type toUnderlying(ENUM value)
|
||||
@@ -43,24 +43,13 @@ typename std::underlying_type<ENUM>::type toUnderlying(ENUM value)
|
||||
return static_cast<typename std::underlying_type<ENUM>::type>(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return lower case extension without the "." or "" if the given name contains no "."
|
||||
*/
|
||||
Glib::ustring getFileExtension(const Glib::ustring &fname);
|
||||
|
||||
/**
|
||||
* Return true if file has .jpeg or .jpg extension (ignoring case)
|
||||
*/
|
||||
bool hasJpegExtension(const Glib::ustring &fname);
|
||||
|
||||
/**
|
||||
* Return true if file has .tiff or .tif extension (ignoring case)
|
||||
*/
|
||||
bool hasTiffExtension(const Glib::ustring &fname);
|
||||
|
||||
/**
|
||||
* Return true if file has .png extension (ignoring case)
|
||||
*/
|
||||
bool hasPngExtension(const Glib::ustring &fname);
|
||||
// Return lower case extension without the "." or "" if the given name contains no "."
|
||||
Glib::ustring getFileExtension(const Glib::ustring& filename);
|
||||
// Return true if file has .jpeg or .jpg extension (ignoring case)
|
||||
bool hasJpegExtension(const Glib::ustring& filename);
|
||||
// Return true if file has .tiff or .tif extension (ignoring case)
|
||||
bool hasTiffExtension(const Glib::ustring& filename);
|
||||
// Return true if file has .png extension (ignoring case)
|
||||
bool hasPngExtension(const Glib::ustring& filename);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user