diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-27 18:38:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-21 20:02:00 +0900 |
commit | f378f80d41bd9f85f5473d1af5920d00377faab3 (patch) | |
tree | 47c83ff3040f2f5ccc9ce8f9219f0859882aaf09 /kernel/include/ksquirrel-libs/fmt_utils.h | |
parent | 2a7760d9b697a6845c3f0256edc0aaef3a202295 (diff) | |
download | libksquirrel-f378f80d.tar.gz libksquirrel-f378f80d.zip |
Conversion to cmake building system
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit af121719c99a99fc3444d181777a6177f0d59dba)
Diffstat (limited to 'kernel/include/ksquirrel-libs/fmt_utils.h')
-rw-r--r-- | kernel/include/ksquirrel-libs/fmt_utils.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/include/ksquirrel-libs/fmt_utils.h b/kernel/include/ksquirrel-libs/fmt_utils.h index 1ab42e3..b320b08 100644 --- a/kernel/include/ksquirrel-libs/fmt_utils.h +++ b/kernel/include/ksquirrel-libs/fmt_utils.h @@ -39,26 +39,26 @@ struct RGBA; namespace fmt_utils { - void fillAlpha(RGBA *scan, int w, u8 value = 255); + void LIBKSQUIRREL_EXPORT fillAlpha(RGBA *scan, int w, u8 value = 255); // flip the image vertically // usually BMP, SGI (or some other formats) need to be flipped - void flipv(s8 *image, s32 bytes_w, s32 h); + void LIBKSQUIRREL_EXPORT flipv(s8 *image, s32 bytes_w, s32 h); // flip the image horizontally - void fliph(s8 *image, s32 w, s32 h, s32 bpp); + void LIBKSQUIRREL_EXPORT fliph(s8 *image, s32 w, s32 h, s32 bpp); // Big endian to Little endian conversion - u16 konvertWord(u16 a); - u32 konvertLong(u32 a); + u16 LIBKSQUIRREL_EXPORT konvertWord(u16 a); + u32 LIBKSQUIRREL_EXPORT konvertLong(u32 a); // return color system name by bpp. // for example 32 bpp means RGBA image, 1 bpp - monochrome - std::string colorSpaceByBpp(const s32 bpp); + std::string LIBKSQUIRREL_EXPORT colorSpaceByBpp(const s32 bpp); - void expandMono1Byte(const u32 byte, u8 *array); - void expandMono2Byte(const u32 byte, u8 *array); - void expandMono4Byte(const u32 byte, u8 *array); + void LIBKSQUIRREL_EXPORT expandMono1Byte(const u32 byte, u8 *array); + void LIBKSQUIRREL_EXPORT expandMono2Byte(const u32 byte, u8 *array); + void LIBKSQUIRREL_EXPORT expandMono4Byte(const u32 byte, u8 *array); } #endif |