libragephoto Version: 0.6.0
Loading...
Searching...
No Matches
RagePhotoData Struct Reference

#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
 

Detailed Description

RagePhoto data struct for storing internal data.

Member Function Documentation

◆ ragephotodata_clear()

void ragephotodata_clear ( RagePhotoData * rp_data)

Resets the Data object to default values.

Parameters
rp_dataData object

◆ ragephotodata_getphotosign()

uint64_t ragephotodata_getphotosign ( RagePhotoData * rp_data)

Returns the Photo JPEG sign.

Parameters
rp_dataData object

◆ ragephotodata_getphotosignf()

uint64_t ragephotodata_getphotosignf ( RagePhotoData * rp_data,
uint32_t photoFormat )

Returns the Photo JPEG sign.

Parameters
rp_dataData object
photoFormatPhoto Format (GTA V or RDR 2)

◆ ragephotodata_getsavesize()

size_t ragephotodata_getsavesize ( RagePhotoData * rp_data,
RagePhotoFormatParser * rp_parser )

Returns the Photo save file size.

Parameters
rp_dataData object
rp_parserParser array

◆ ragephotodata_getsavesizef()

size_t ragephotodata_getsavesizef ( RagePhotoData * rp_data,
RagePhotoFormatParser * rp_parser,
uint32_t photoFormat )

Returns the Photo save file size.

Parameters
rp_dataData object
rp_parserParser array
photoFormatPhoto Format (GTA V or RDR 2)

◆ ragephotodata_load()

bool ragephotodata_load ( RagePhotoData * rp_data,
RagePhotoFormatParser * rp_parser,
const char * data,
size_t size )

Loads a Photo from a const char*.

Parameters
rp_dataData object
rp_parserParser array
dataPhoto data
sizePhoto data size

◆ ragephotodata_save()

bool ragephotodata_save ( RagePhotoData * rp_data,
RagePhotoFormatParser * rp_parser,
char * data )

Saves a Photo to a char*.

Parameters
rp_dataData object
rp_parserParser array
dataPhoto data

◆ ragephotodata_savef()

bool ragephotodata_savef ( RagePhotoData * rp_data,
RagePhotoFormatParser * rp_parser,
char * data,
uint32_t photoFormat )

Saves a Photo to a char*.

Parameters
rp_dataData object
rp_parserParser array
dataPhoto data
photoFormatPhoto Format (GTA V or RDR 2)

◆ ragephotodata_setbufferdefault()

void ragephotodata_setbufferdefault ( RagePhotoData * rp_data)

Sets all cross-format Buffer to default size.

Parameters
rp_dataData object

◆ ragephotodata_setbufferoffsets()

void ragephotodata_setbufferoffsets ( RagePhotoData * rp_data)

Moves all Buffer offsets to correct position.

Parameters
rp_dataData object

Member Data Documentation

◆ descBuffer

uint32_t RagePhotoData::descBuffer

Description buffer length

◆ descOffset

uint32_t RagePhotoData::descOffset

Description buffer offset

◆ description

char* RagePhotoData::description

Pointer for internal Description buffer

◆ endOfFile

uint32_t RagePhotoData::endOfFile

End Of File offset

◆ error

int32_t RagePhotoData::error

RagePhoto error code

◆ header

char* RagePhotoData::header

Pointer for internal Header buffer

◆ headerSum

uint32_t RagePhotoData::headerSum

Checksum of the header 1

◆ headerSum2

uint32_t RagePhotoData::headerSum2

Checksum of the header 2 (RDR 2 only)

◆ jpeg

char* RagePhotoData::jpeg

Pointer for internal JPEG buffer

◆ jpegBuffer

uint32_t RagePhotoData::jpegBuffer

JPEG buffer length

◆ jpegSize

uint32_t RagePhotoData::jpegSize

Internal JPEG buffer length and size of JPEG

◆ json

char* RagePhotoData::json

Pointer for internal JSON buffer

◆ jsonBuffer

uint32_t RagePhotoData::jsonBuffer

JSON buffer length

◆ jsonOffset

uint32_t RagePhotoData::jsonOffset

JSON buffer offset

◆ photoFormat

uint32_t RagePhotoData::photoFormat

Photo file format magic

◆ titlBuffer

uint32_t RagePhotoData::titlBuffer

Title buffer length

◆ title

char* RagePhotoData::title

Pointer for internal Title buffer

◆ titlOffset

uint32_t RagePhotoData::titlOffset

Title buffer offset


The documentation for this struct was generated from the following files: