libragephoto Version: 0.6.0
|
#include <RagePhoto.h>
Public Types | |
typedef void * | ragephoto_t |
Public Member Functions | |
ragephoto_t | ragephoto_open () |
void | ragephoto_addparser (ragephoto_t instance, RagePhotoFormatParser *rp_parser) |
void | ragephoto_clear (ragephoto_t instance) |
bool | ragephoto_load (ragephoto_t instance, const char *data, size_t size) |
bool | ragephoto_loadfile (ragephoto_t instance, const char *filename) |
int32_t | ragephoto_error (ragephoto_t instance) |
RagePhotoData * | ragephoto_getphotodata (ragephoto_t instance) |
const char * | ragephoto_getphotodesc (ragephoto_t instance) |
uint32_t | ragephoto_getphotoformat (ragephoto_t instance) |
const char * | ragephoto_getphotojpeg (ragephoto_t instance) |
const char * | ragephoto_getphotojson (ragephoto_t instance) |
const char * | ragephoto_getphotoheader (ragephoto_t instance) |
uint64_t | ragephoto_getphotosign (ragephoto_t instance) |
uint64_t | ragephoto_getphotosignf (ragephoto_t instance, uint32_t photoFormat) |
void | ragephoto_getphotosigns (ragephoto_t instance, char *data, size_t size) |
void | ragephoto_getphotosignsf (ragephoto_t instance, char *data, size_t size, uint32_t photoFormat) |
uint32_t | ragephoto_getphotosize (ragephoto_t instance) |
const char * | ragephoto_getphototitle (ragephoto_t instance) |
size_t | ragephoto_getsavesize (ragephoto_t instance) |
size_t | ragephoto_getsavesizef (ragephoto_t instance, uint32_t photoFormat) |
bool | ragephoto_save (ragephoto_t instance, char *data) |
bool | ragephoto_savef (ragephoto_t instance, char *data, uint32_t photoFormat) |
bool | ragephoto_savefile (ragephoto_t instance, const char *filename) |
bool | ragephoto_savefilef (ragephoto_t instance, const char *filename, uint32_t photoFormat) |
void | ragephoto_setbufferdefault (ragephoto_t instance) |
void | ragephoto_setbufferoffsets (ragephoto_t instance) |
bool | ragephoto_setphotodata (ragephoto_t instance, RagePhotoData *rp_data) |
bool | ragephoto_setphotodatac (ragephoto_t instance, RagePhotoData *rp_data) |
void | ragephoto_setphotodesc (ragephoto_t instance, const char *description, uint32_t bufferSize) |
void | ragephoto_setphotoformat (ragephoto_t instance, uint32_t photoFormat) |
bool | ragephoto_setphotojpeg (ragephoto_t instance, const char *data, uint32_t size, uint32_t bufferSize) |
void | ragephoto_setphotojson (ragephoto_t instance, const char *json, uint32_t bufferSize) |
void | ragephoto_setphotoheader (ragephoto_t instance, const char *header, uint32_t headerSum) |
void | ragephoto_setphotoheader2 (ragephoto_t instance, const char *header, uint32_t headerSum, uint32_t headerSum2) |
void | ragephoto_setphototitle (ragephoto_t instance, const char *title, uint32_t bufferSize) |
void | ragephoto_close (ragephoto_t instance) |
Public Attributes | |
RagePhotoData * | data |
RagePhotoFormatParser * | parser |
Related Symbols | |
(Note that these are not member symbols.) | |
uint32_t | ragephoto_defpbuf_gta5 () |
uint32_t | ragephoto_defpbuf_rdr2 () |
uint32_t | ragephoto_format_gta5 () |
uint32_t | ragephoto_format_rdr2 () |
void | ragephoto_setlibraryflag (RagePhotoLibraryFlag flag, bool state) |
const char * | ragephoto_version () |
RagePhoto instance struct for storing data and format parser pointer.
typedef void* ragephoto_t |
RagePhoto typedef for C instance/C++ object.
void ragephoto_addparser | ( | ragephoto_t | instance, |
RagePhotoFormatParser * | rp_parser ) |
Add a custom defined RagePhotoFormatParser.
instance | ragephoto_t instance |
rp_parser | Parser to add |
void ragephoto_clear | ( | ragephoto_t | instance | ) |
Resets the Data object to default values.
instance | ragephoto_t instance |
void ragephoto_close | ( | ragephoto_t | instance | ) |
Closes a ragephoto_t
instance.
instance | ragephoto_t instance |
int32_t ragephoto_error | ( | ragephoto_t | instance | ) |
Returns the last error occurred.
instance | ragephoto_t instance |
RagePhotoData * ragephoto_getphotodata | ( | ragephoto_t | instance | ) |
Returns the internal Data object.
instance | ragephoto_t instance |
const char * ragephoto_getphotodesc | ( | ragephoto_t | instance | ) |
Returns the Photo description.
instance | ragephoto_t instance |
uint32_t ragephoto_getphotoformat | ( | ragephoto_t | instance | ) |
Returns the Photo Format (GTA V or RDR 2).
instance | ragephoto_t instance |
const char * ragephoto_getphotoheader | ( | ragephoto_t | instance | ) |
Returns the Photo header.
instance | ragephoto_t instance |
const char * ragephoto_getphotojpeg | ( | ragephoto_t | instance | ) |
Returns the Photo JPEG data.
instance | ragephoto_t instance |
const char * ragephoto_getphotojson | ( | ragephoto_t | instance | ) |
Returns the Photo JSON data.
instance | ragephoto_t instance |
uint64_t ragephoto_getphotosign | ( | ragephoto_t | instance | ) |
Returns the Photo JPEG sign.
instance | ragephoto_t instance |
uint64_t ragephoto_getphotosignf | ( | ragephoto_t | instance, |
uint32_t | photoFormat ) |
Returns the Photo JPEG sign.
instance | ragephoto_t instance |
photoFormat | Photo Format (GTA V or RDR 2) |
void ragephoto_getphotosigns | ( | ragephoto_t | instance, |
char * | data, | ||
size_t | size ) |
Returns the Photo JPEG sign as string.
instance | ragephoto_t instance |
data | String data |
size | String size |
void ragephoto_getphotosignsf | ( | ragephoto_t | instance, |
char * | data, | ||
size_t | size, | ||
uint32_t | photoFormat ) |
Returns the Photo JPEG sign as string.
instance | ragephoto_t instance |
data | String data |
size | String size |
photoFormat | Photo Format (GTA V or RDR 2) |
uint32_t ragephoto_getphotosize | ( | ragephoto_t | instance | ) |
Returns the Photo JPEG data size.
instance | ragephoto_t instance |
const char * ragephoto_getphototitle | ( | ragephoto_t | instance | ) |
Returns the Photo title.
instance | ragephoto_t instance |
size_t ragephoto_getsavesize | ( | ragephoto_t | instance | ) |
Returns the Photo save file size.
instance | ragephoto_t instance |
size_t ragephoto_getsavesizef | ( | ragephoto_t | instance, |
uint32_t | photoFormat ) |
Returns the Photo save file size.
instance | ragephoto_t instance |
photoFormat | Photo Format (GTA V or RDR 2) |
bool ragephoto_load | ( | ragephoto_t | instance, |
const char * | data, | ||
size_t | size ) |
Loads a Photo from a const char*.
instance | ragephoto_t instance |
data | Photo data |
size | Photo data size |
bool ragephoto_loadfile | ( | ragephoto_t | instance, |
const char * | filename ) |
Loads a Photo from a file.
instance | ragephoto_t instance |
filename | File to load |
ragephoto_t ragephoto_open | ( | ) |
Opens a ragephoto_t
instance.
bool ragephoto_save | ( | ragephoto_t | instance, |
char * | data ) |
Saves a Photo to a char*.
instance | ragephoto_t instance |
data | Photo data |
bool ragephoto_savef | ( | ragephoto_t | instance, |
char * | data, | ||
uint32_t | photoFormat ) |
Saves a Photo to a char*.
instance | ragephoto_t instance |
data | Photo data |
photoFormat | Photo Format (GTA V or RDR 2) |
bool ragephoto_savefile | ( | ragephoto_t | instance, |
const char * | filename ) |
Saves a Photo to a file.
instance | ragephoto_t instance |
filename | File to save |
bool ragephoto_savefilef | ( | ragephoto_t | instance, |
const char * | filename, | ||
uint32_t | photoFormat ) |
Saves a Photo to a file.
instance | ragephoto_t instance |
filename | File to save |
photoFormat | Photo Format (GTA V or RDR 2) |
void ragephoto_setbufferdefault | ( | ragephoto_t | instance | ) |
Sets all cross-format Buffer to default size.
instance | ragephoto_t instance |
void ragephoto_setbufferoffsets | ( | ragephoto_t | instance | ) |
Moves all Buffer offsets to correct position.
instance | ragephoto_t instance |
bool ragephoto_setphotodata | ( | ragephoto_t | instance, |
RagePhotoData * | rp_data ) |
Sets the internal RagePhotoData object.
instance | ragephoto_t instance |
rp_data | Data object used to replace |
bool ragephoto_setphotodatac | ( | ragephoto_t | instance, |
RagePhotoData * | rp_data ) |
Copies RagePhotoData object to internal RagePhotoData object.
instance | ragephoto_t instance |
rp_data | Data object used to copy |
void ragephoto_setphotodesc | ( | ragephoto_t | instance, |
const char * | description, | ||
uint32_t | bufferSize ) |
Sets the Photo description.
instance | ragephoto_t instance |
description | Description |
bufferSize | Description buffer size |
Default bufferSize: 256UL
void ragephoto_setphotoformat | ( | ragephoto_t | instance, |
uint32_t | photoFormat ) |
Sets the Photo Format (GTA V or RDR 2).
instance | ragephoto_t instance |
photoFormat | Photo Format (GTA V or RDR 2) |
void ragephoto_setphotoheader | ( | ragephoto_t | instance, |
const char * | header, | ||
uint32_t | headerSum ) |
Sets the Photo header.
void ragephoto_setphotoheader2 | ( | ragephoto_t | instance, |
const char * | header, | ||
uint32_t | headerSum, | ||
uint32_t | headerSum2 ) |
Sets the Photo header. (RDR 2)
bool ragephoto_setphotojpeg | ( | ragephoto_t | instance, |
const char * | data, | ||
uint32_t | size, | ||
uint32_t | bufferSize ) |
Sets the Photo JPEG data.
instance | ragephoto_t instance |
data | JPEG data |
size | JPEG data size |
bufferSize | JPEG buffer size |
Default bufferSize: ragephoto_defpbuf_gta5() or ragephoto_defpbuf_rdr2()
void ragephoto_setphotojson | ( | ragephoto_t | instance, |
const char * | json, | ||
uint32_t | bufferSize ) |
Sets the Photo JSON data.
instance | ragephoto_t instance |
json | JSON data |
bufferSize | JSON data buffer size |
Default bufferSize: 3072UL
void ragephoto_setphototitle | ( | ragephoto_t | instance, |
const char * | title, | ||
uint32_t | bufferSize ) |
Sets the Photo title.
instance | ragephoto_t instance |
title | Title |
bufferSize | Title buffer size |
Default bufferSize: 256UL
|
related |
Returns the GTA V default Photo Buffer Size.
|
related |
Returns the RDR 2 default Photo Buffer Size.
|
related |
Returns the GTA V Photo Format.
|
related |
Returns the RDR 2 Photo Format.
|
related |
Sets a library flag.
flag | Library flag |
state | Flag state |
|
related |
Returns the library version.
RagePhotoData* RagePhotoInstance::data |
Pointer for internal data
RagePhotoFormatParser* RagePhotoInstance::parser |
Pointer for internal format parser