libragephoto Version: 0.6.0
|
#include <RagePhotoTypedefs.h>
Public Member Functions | |
void | ragephotodata_clear (RagePhotoData *rp_data) |
bool | ragephotodata_load (RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser, const char *data, size_t size) |
uint64_t | ragephotodata_getphotosign (RagePhotoData *rp_data) |
uint64_t | ragephotodata_getphotosignf (RagePhotoData *rp_data, uint32_t photoFormat) |
size_t | ragephotodata_getsavesize (RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser) |
size_t | ragephotodata_getsavesizef (RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser, uint32_t photoFormat) |
bool | ragephotodata_save (RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser, char *data) |
bool | ragephotodata_savef (RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser, char *data, uint32_t photoFormat) |
void | ragephotodata_setbufferdefault (RagePhotoData *rp_data) |
void | ragephotodata_setbufferoffsets (RagePhotoData *rp_data) |
Public Attributes | |
char * | jpeg |
char * | description |
char * | json |
char * | header |
char * | title |
int32_t | error |
uint32_t | descBuffer |
uint32_t | descOffset |
uint32_t | endOfFile |
uint32_t | headerSum |
uint32_t | headerSum2 |
uint32_t | jpegBuffer |
uint32_t | jpegSize |
uint32_t | jsonBuffer |
uint32_t | jsonOffset |
uint32_t | photoFormat |
uint32_t | titlBuffer |
uint32_t | titlOffset |
RagePhoto data struct for storing internal data.
void ragephotodata_clear | ( | RagePhotoData * | rp_data | ) |
Resets the Data object to default values.
rp_data | Data object |
uint64_t ragephotodata_getphotosign | ( | RagePhotoData * | rp_data | ) |
Returns the Photo JPEG sign.
rp_data | Data object |
uint64_t ragephotodata_getphotosignf | ( | RagePhotoData * | rp_data, |
uint32_t | photoFormat ) |
Returns the Photo JPEG sign.
rp_data | Data object |
photoFormat | Photo Format (GTA V or RDR 2) |
size_t ragephotodata_getsavesize | ( | RagePhotoData * | rp_data, |
RagePhotoFormatParser * | rp_parser ) |
Returns the Photo save file size.
rp_data | Data object |
rp_parser | Parser array |
size_t ragephotodata_getsavesizef | ( | RagePhotoData * | rp_data, |
RagePhotoFormatParser * | rp_parser, | ||
uint32_t | photoFormat ) |
Returns the Photo save file size.
rp_data | Data object |
rp_parser | Parser array |
photoFormat | Photo Format (GTA V or RDR 2) |
bool ragephotodata_load | ( | RagePhotoData * | rp_data, |
RagePhotoFormatParser * | rp_parser, | ||
const char * | data, | ||
size_t | size ) |
Loads a Photo from a const char*.
rp_data | Data object |
rp_parser | Parser array |
data | Photo data |
size | Photo data size |
bool ragephotodata_save | ( | RagePhotoData * | rp_data, |
RagePhotoFormatParser * | rp_parser, | ||
char * | data ) |
Saves a Photo to a char*.
rp_data | Data object |
rp_parser | Parser array |
data | Photo data |
bool ragephotodata_savef | ( | RagePhotoData * | rp_data, |
RagePhotoFormatParser * | rp_parser, | ||
char * | data, | ||
uint32_t | photoFormat ) |
Saves a Photo to a char*.
rp_data | Data object |
rp_parser | Parser array |
data | Photo data |
photoFormat | Photo Format (GTA V or RDR 2) |
void ragephotodata_setbufferdefault | ( | RagePhotoData * | rp_data | ) |
Sets all cross-format Buffer to default size.
rp_data | Data object |
void ragephotodata_setbufferoffsets | ( | RagePhotoData * | rp_data | ) |
Moves all Buffer offsets to correct position.
rp_data | Data object |
uint32_t RagePhotoData::descBuffer |
Description buffer length
uint32_t RagePhotoData::descOffset |
Description buffer offset
char* RagePhotoData::description |
Pointer for internal Description buffer
uint32_t RagePhotoData::endOfFile |
End Of File offset
int32_t RagePhotoData::error |
RagePhoto error code
char* RagePhotoData::header |
Pointer for internal Header buffer
uint32_t RagePhotoData::headerSum |
Checksum of the header 1
uint32_t RagePhotoData::headerSum2 |
Checksum of the header 2 (RDR 2 only)
char* RagePhotoData::jpeg |
Pointer for internal JPEG buffer
uint32_t RagePhotoData::jpegBuffer |
JPEG buffer length
uint32_t RagePhotoData::jpegSize |
Internal JPEG buffer length and size of JPEG
char* RagePhotoData::json |
Pointer for internal JSON buffer
uint32_t RagePhotoData::jsonBuffer |
JSON buffer length
uint32_t RagePhotoData::jsonOffset |
JSON buffer offset
uint32_t RagePhotoData::photoFormat |
Photo file format magic
uint32_t RagePhotoData::titlBuffer |
Title buffer length
char* RagePhotoData::title |
Pointer for internal Title buffer
uint32_t RagePhotoData::titlOffset |
Title buffer offset