Syping
d13c22dc05
RagePhoto: add clear() and load() as static functions
2023-02-20 11:56:23 +01:00
Syping
2a8070b75e
libragephoto: add custom parser feature
...
- RagePhoto: add addParser()
- RagePhotoC: add ragephoto_addparser()
- RagePhoto(C): rename all ragePhotoData to rp_data
2023-02-20 11:27:14 +01:00
Syping
659feb0cbf
RagePhoto: update ragephoto_setphotodata function
...
- RagePhotoTypedefs: add saveSize function
2023-02-11 22:40:13 +01:00
Syping
df388acaec
RagePhoto: improve C compatibility further
2023-02-11 20:47:05 +01:00
Syping
255c1a28b9
C API: ragephoto_setphotodata(c) returns now bool
2023-02-08 19:59:56 +01:00
Syping
45a45701f6
libragephoto: various changes
...
- libragephoto_global.h seperated to RagePhotoConfig.h and
RagePhotoLibrary.h
- RagePhotoData.h renamed to RagePhotoTypedefs.h
- RagePhotoData: updated struct and documentated it
- RagePhotoC: changed ragephoto_setphotodata ABI, added
ragephoto_setphotodatac for copying
- RagePhotoA: adapted for the ABI changes
- RagePhoto: adapted for the ABI changes and updated struct
2023-02-07 03:06:22 +01:00
Syping
1173db1aa8
RagePhoto: avoid setData() replacing it's own RagePhotoData
2023-01-08 18:34:47 +01:00
Syping
96eae4f957
change setData() attitude with the internal data object
...
- when takeOwnership is false, instead of deleting the old object and
generating a new object from scratch, it clears now the old object
2023-01-08 18:18:28 +01:00
Syping
a704ee046a
add setData() and ragephoto_setphotodata() functions
...
RagePhoto: add setData() and ragephoto_setphotodata() functions
RagePhotoA: wrap setData() function to ragephoto_setphotodata()
RagePhotoC: update header for ragephoto_setphotodata()
2023-01-08 17:45:54 +01:00
Syping
24d6f58b74
RagePhoto: fix build error for older C++ standards
2023-01-08 15:44:28 +01:00
Syping
2b878cf416
RagePhoto: make RagePhotoData m_data a pointer
2023-01-08 15:21:16 +01:00
Syping
db9a0eaf9a
RagePhoto: uncomment setHeader HeaderMallocError code
2023-01-08 14:09:36 +01:00
Syping
13650527be
add function ragephoto_getphotodata() to the C API
...
RagePhoto: add function ragephoto_getphotodata() to the C API
RagePhotoA: wrap data() function to ragephoto_getphotodata()
RagePhotoC: update header for ragephoto_getphotodata()
RagePhotoData: improve header include statement
2023-01-08 13:57:37 +01:00
Syping
d7e31ecada
struct, enum and few other changes
...
RagePhoto: updated comments to the new error codes, update code for the
new RagePhotoData names
RagePhotoData: change names of photoData to jpeg, photoSize to jpegSize
RagePhotoA: copied documentation from RagePhoto
RagePhoto::Error: add error type HeaderMallocError
2023-01-08 13:35:32 +01:00
Syping
f0a0580682
RagePhoto: fix iconv regression
2023-01-07 21:17:49 +01:00
Syping
e08b45d980
low level improvements and data type changes
...
- RagePhoto: removed setFormatLoadFunction (will be replaced with a
better solution later)
- RagePhoto: code updates for the RagePhotoData changes
- RagePhotoA: have now RagePhoto enum's available
- RagePhotoData: changed description, json, header and title types to
char*
- RagePhotoData: removed photoLoaded in favour of nullptr check
- examples: prepared for the API update
2023-01-07 20:43:11 +01:00
Syping
95943203e0
libragephoto: 2022 update
2022-12-28 07:39:06 +01:00
Syping
6a50ca75a1
CMakeLists.txt update, RagePhoto add data() function
...
RagePhoto::data() returns internal RagePhotoData object
2021-12-14 03:15:52 +01:00
Syping
7326cc26c7
unicode.cmake improvements, RagePhoto API changes
...
RagePhoto: remove class from Error enum
RagePhotoA: error() uint32_t -> uint8_t
RagePhoto-Extract: remove Error:: from Error enums
ragephoto-gtkviewer: RagePhoto::Error -> uint8_t, remove Error:: from
Error enum
ragephoto-qtviewer: RagePhoto::Error -> uint8_t, remove Error:: from
Error enum
2021-12-02 05:55:50 +01:00
Syping
81675355b0
RagePhoto: full read support for RDR 2 Photos
...
RagePhoto: fix RDR 2 Photos rewriting (using new data values)
RagePhotoData: added unnamedSum1 and unnamedSum2
2021-11-22 14:01:06 +01:00
Syping
c89296c775
RagePhoto: improve save efficiency by using std::string as buffer
2021-11-19 09:55:52 +01:00
Syping
285df4893d
RagePhoto: remove static library functions from the class
2021-11-18 18:00:09 +01:00
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
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
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
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
2fcc5b0ba7
add version features
2021-11-03 10:54:35 +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
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
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
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
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