Commit graph

104 commits

Author SHA1 Message Date
Syping
b900df55cc Add std:: at some forgotten malloc and free 2021-11-18 17:42:25 +01:00
Syping
584105eeed Use std:: at malloc, realloc and free
+ Fix non-Cvt build
2021-11-18 17:33:20 +01:00
Syping
c6566c8f17 WebAssembly CMake support and other changes
RagePhoto-Extract: removed unnecessary includes
Windows RagePhoto-Extract: included Windows resource file

RagePhotoA: include iostream to fix undefined std::

RagePhoto: seperate C and CXX exports to export only C functions with
WebAssembly
Windows RagePhoto: changed Windows resource file language to 0x0

Doxyfile: change PROJECT_VERSION variable to ragephoto_VERSION variable
2021-11-16 06:20:20 +01:00
Syping
44d67fa78f Improve ragephoto-extract, RagePhoto header change
RagePhoto-Extract.c: use fopen_s on Windows
RagePhoto-Extract.cpp: use good() to check if file successfully written
RagePhoto.h: remove LIBRAGEPHOTO_C_API #ifdef to force error if compiled
without C API
2021-11-13 09:47:03 +01:00
Syping
a5a501f6fe C API and .gitattributes improvements
C API: separate C++ and C Header files
.gitattributes: use cp1252 as encoding for .rc.in files
2021-11-13 04:41:01 +01:00
Syping
f75fcef519 WinCvt: fixing MSVC build with including windows.h 2021-11-12 07:10:36 +01:00
Syping
2b6e581c8e Win32 resources: use "lib" prefix 2021-11-12 06:58:37 +01:00
Syping
bb53b342b7 CMake updates, Win32 resources and .gitattributes added
CMake: Improve RPATH handling for both TARGET and non-TARGET builds
CMake: Updating configure_file's to handle ragephoto_ instead of PROJECT_
variables
Win32 resources: Add basic library description with CMake's configure_file
2021-11-12 06:55:37 +01:00
Syping
adebf504bb Unicode: changed implementation selection 2021-11-07 20:32:06 +01:00
Syping
05890541dc add Win32 API Unicode converter, other small changes
Qt Example: add file.close() (consistency between GTK example)
RagePhoto: saveFile() checks for good(), more data() -> c_str()
2021-11-06 20:17:28 +01:00
Syping
81ac027d5d pkg-config: improve ragephoto.pc 2021-11-06 14:28:46 +01:00
Syping
624191e9f4 C API: fix small documentation mistake 2021-11-05 16:22:24 +01:00
Syping
4c43596e2a C API: add ragephoto_clear() 2021-11-05 16:20:43 +01:00
Syping
67ed433f6b C/C++ API improvements, CMake include dir change
C API: add format functions
C++ API: add ABI stable wrapper RagePhotoA based on C API
2021-11-04 13:21:18 +01:00
Syping
d8c99b9067 RagePhoto-Extract: use C API when enabled 2021-11-03 11:21:37 +01:00
Syping
2fcc5b0ba7 add version features 2021-11-03 10:54:35 +01:00
Syping
1be4ae5e4a improve library structure, update documentation 2021-11-03 10:19:32 +01:00
Syping
9d9e0c8b05 RagePhoto-Extract: use RagePhoto::loadFile 2021-11-02 10:24:22 +01:00
Syping
a396d014f7 C++ API: add loadFile and saveFile 2021-11-02 10:16:56 +01:00
Syping
af547bd89f C API: improvements and saving added 2021-11-02 09:26:56 +01:00
Syping
0ff2718cab C API: fix documented mix-up 2021-10-30 17:49:51 +02:00
Syping
b4d65b24af C API: more functions added, improve C++ references 2021-10-30 17:40:58 +02:00
Syping
6b262e2ddc C API: bool -> int, size_t included 2021-10-29 12:33:43 +02:00
Syping
48f8d12246 fix no C API build 2021-10-29 12:03:01 +02:00
Syping
5f46f18040 skip extern "C" when building without C API 2021-10-29 11:58:01 +02:00
Syping
18b92c24f2 added a Simple C API 2021-10-29 11:52:59 +02:00
Syping
4785fafd67 make static functions, moveOffsets -> setBufferOffsets 2021-10-29 08:38:26 +02:00
Syping
136520372d add custom load functions, move private data to struct 2021-10-28 03:28:36 +02:00
Syping
1d48cd0fbd efficiency improvements and CMake WIN32 flags 2021-10-24 05:03:14 +02:00
Syping
b5b96a841c fix setPhoto() photoSize not being updated 2021-10-20 09:24:48 +02:00
Syping
d71f3641e2 fix potential iconv memleak 2021-10-20 08:53:55 +02:00
Syping
e996f4399d iconv saving support 2021-10-20 08:49:35 +02:00
Syping
2f66a69f6b move defaults to a enum 2021-10-20 04:03:45 +02:00
Syping
8ea05274f0 fix non-Codecvt build 2021-10-12 01:03:17 +02:00
Syping
cfc0af179f fix MSVC warnings and add consts 2021-09-22 05:14:04 +02:00
Syping
3c59996591 use C++ stream classes 2021-09-17 08:17:25 +02:00
Syping
5bdbb09c7a add save feature 2021-09-17 07:22:49 +02:00
Syping
84b5937c95 add photo and saveSize, change setPhotoData to setPhoto 2021-09-16 05:02:08 +02:00
Syping
87d61c1c69 improve docs, add setFormat and setBufferDefault 2021-09-16 03:07:11 +02:00
Syping
af5c571b16 improved documentation, setHeader adapted 2021-09-15 16:17:51 +02:00
Syping
3fa0068251 add documentation and set functions 2021-09-14 19:35:46 +02:00
Syping
9af28f0aa6 CMake improvements, photoFormat improvement 2021-09-04 17:13:03 +02:00
Syping
464e5bf6dd add format() function 2021-09-03 18:36:00 +02:00
Syping
1049c8e383 allow loading of std::string, README update 2021-09-03 17:59:54 +02:00
Syping
dfeafa3368 Improve performance 2021-09-03 15:46:44 +02:00
Syping
85949e36a1 RDR 2 support 2021-09-03 15:21:02 +02:00
Syping
7721aab48b fix Windows static build 2021-08-29 03:06:14 +02:00
Syping
8c860855ae RagePhoto improvements, GTK example fix 2021-08-29 02:35:25 +02:00
Syping
dd47087afd add pkgconfig, improve Qt example 2021-08-27 21:48:33 +02:00
Syping
33c3dcb512 add Qt example, GTK example fixes, README update 2021-08-27 20:07:14 +02:00
Syping
e1bdccfb0d memory fixes, GTK example added 2021-08-27 05:33:20 +02:00
Syping
c9b33b324d add codecvt support 2021-08-27 01:47:09 +02:00
Syping
63c0977ed6 add error function, README and CI 2021-08-26 00:22:11 +02:00
Syping
93b81484a6 initial commit 2021-08-25 00:30:10 +02:00