libragephoto Version: 0.5.0
|
GTA V and RDR 2 Photo Parser (C API wrapper). More...
#include <RagePhotoA.hpp>
Public Member Functions | |
void | addParser (RagePhotoFormatParser *rp_parser) |
void | clear () |
RagePhotoData * | data () |
bool | load (const char *data, size_t size) |
bool | load (const std::string &data) |
bool | loadFile (const char *filename) |
int32_t | error () const |
uint32_t | format () const |
const std::string | jpeg () const |
const std::string_view | jpeg_view () const |
const char * | jpegData () const |
uint64_t | jpegSign (uint32_t photoFormat) const |
uint64_t | jpegSign () const |
uint32_t | jpegSize () const |
const char * | description () const |
const char * | json () const |
const char * | header () const |
const char * | title () const |
bool | save (char *data, uint32_t photoFormat) |
bool | save (char *data) |
const std::string | save (uint32_t photoFormat, bool *ok=nullptr) |
const std::string | save (bool *ok=nullptr) |
bool | saveFile (const char *filename, uint32_t photoFormat) |
bool | saveFile (const char *filename) |
size_t | saveSize (uint32_t photoFormat) |
size_t | saveSize () |
void | setBufferDefault () |
void | setBufferOffsets () |
bool | setData (RagePhotoData *ragePhotoData, bool takeCopy=true) |
void | setDescription (const char *description, uint32_t bufferSize=0) |
void | setFormat (uint32_t photoFormat) |
bool | setJpeg (const char *data, uint32_t size, uint32_t bufferSize=0) |
bool | setJpeg (const std::string &data, uint32_t bufferSize=0) |
void | setJson (const char *json, uint32_t bufferSize=0) |
void | setHeader (const char *header, uint32_t headerSum, uint32_t headerSum2=0) |
void | setTitle (const char *title, uint32_t bufferSize=0) |
Static Public Member Functions | |
static void | clear (RagePhotoData *rp_data) |
static bool | load (const char *data, size_t size, RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser) |
static uint64_t | jpegSign (uint32_t photoFormat, RagePhotoData *rp_data) |
static uint64_t | jpegSign (RagePhotoData *rp_data) |
static const char * | version () |
static bool | save (char *data, uint32_t photoFormat, RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser) |
static bool | save (char *data, RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser) |
static size_t | saveSize (uint32_t photoFormat, RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser) |
static size_t | saveSize (RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser) |
static void | setBufferDefault (RagePhotoData *rp_data) |
static void | setBufferOffsets (RagePhotoData *rp_data) |
GTA V and RDR 2 Photo Parser (C API wrapper).
enum RagePhotoA::DefaultSize : uint32_t |
Default sizes
enum RagePhotoA::Error : int32_t |
Parsing and set errors
enum RagePhotoA::PhotoFormat : uint32_t |
enum RagePhotoA::SignInitials : uint32_t |
|
inline |
Add a custom defined RagePhotoFormatParser.
|
inline |
Resets the RagePhotoData object to default values.
|
inlinestatic |
Resets the RagePhotoData object to default values.
|
inline |
Returns the internal RagePhotoData object.
|
inline |
Returns the Photo description.
|
inline |
Returns the last error occurred.
|
inline |
Returns the Photo Format (GTA V or RDR 2).
|
inline |
Returns the Photo header.
|
inline |
Returns the Photo JPEG data.
|
inline |
Returns the Photo JPEG data.
|
inline |
Returns the Photo JPEG data.
|
inline |
Returns the Photo JPEG sign.
|
inlinestatic |
Returns the Photo JPEG sign.
|
inline |
Returns the Photo JPEG sign.
|
inlinestatic |
Returns the Photo JPEG sign.
|
inline |
Returns the Photo JPEG data size.
|
inline |
Returns the Photo JSON data.
|
inline |
Loads a Photo from a const char*.
data | Photo data |
size | Photo data size |
|
inlinestatic |
Loads a Photo from a const char*.
|
inline |
Loads a Photo from a std::string.
data | Photo data |
|
inline |
Loads a Photo from a file.
filename | File to load |
|
inline |
Saves a Photo to a std::string.
ok | true when saved successfully |
|
inline |
Saves a Photo to a char*.
data | Photo data |
|
inlinestatic |
Saves a Photo to a char*.
|
inline |
Saves a Photo to a char*.
data | Photo data |
photoFormat | Photo Format (GTA V or RDR 2) |
|
inlinestatic |
Saves a Photo to a char*.
|
inline |
Saves a Photo to a std::string.
photoFormat | Photo Format (GTA V or RDR 2) |
ok | true when saved successfully |
|
inline |
Saves a Photo to a file.
|
inline |
Saves a Photo to a file.
|
inline |
Returns the Photo save file size.
|
inlinestatic |
Returns the Photo save file size.
|
inline |
Returns the Photo save file size.
|
inlinestatic |
Returns the Photo save file size.
|
inline |
Sets all cross-format Buffer to default size.
|
inlinestatic |
Sets all cross-format Buffer to default size.
|
inline |
Moves all Buffer offsets to correct position.
|
inlinestatic |
Moves all Buffer offsets to correct position.
|
inline |
Sets the internal RagePhotoData object.
|
inline |
Sets the Photo description.
|
inline |
Sets the Photo Format (GTA V or RDR 2).
|
inline |
Sets the Photo header.
|
inline |
Sets the Photo JPEG data.
data | JPEG data |
size | JPEG data size |
bufferSize | JPEG buffer size |
|
inline |
Sets the Photo JPEG data.
data | JPEG data |
bufferSize | JPEG buffer size |
|
inline |
Sets the Photo JSON data.
|
inline |
Sets the Photo title.
|
inline |
Returns the Photo title.
|
inlinestatic |
Returns the library version.