// SPDX-License-Identifier: MIT // // EmulationStation Desktop Edition // CImgUtil.h // // Utility functions using the CImg image processing library. // #ifndef ES_CORE_UTILS_CIMG_UTIL_H #define ES_CORE_UTILS_CIMG_UTIL_H // Disable the CImg display capabilities. #define cimg_display 0 #include #include namespace Utils { namespace CImg { void convertRGBAToCImg(std::vector imageRGBA, cimg_library::CImg& image); void convertCImgToRGBA(cimg_library::CImg image, std::vector& imageRGBA); void getTransparentPaddingCoords(cimg_library::CImg& image, int (&imageCoords)[4]); void removeTransparentPadding(cimg_library::CImg& image); void cropLetterboxes(cimg_library::CImg& image); void cropPillarboxes(cimg_library::CImg& image); void addDropShadow(cimg_library::CImg& image, unsigned int shadowDistance, float transparency, unsigned int iterations); } } #endif // ES_CORE_UTILS_CIMG_UTIL_H