xbmc
Public Member Functions | List of all members
KODI::RETRO::CSavestateFlatBuffer Class Reference
Inheritance diagram for KODI::RETRO::CSavestateFlatBuffer:
Inheritance graph
[legend]
Collaboration diagram for KODI::RETRO::CSavestateFlatBuffer:
Collaboration graph
[legend]

Public Member Functions

void Reset () override
 Reset to the initial state.
 
bool Serialize (const uint8_t *&data, size_t &size) const override
 
SAVE_TYPE Type () const override
 The type of save action that created this savestate, either manual or automatic.
 
uint8_t Slot () const override
 The slot this savestate was saved into, or 0 for no slot. More...
 
std::string Label () const override
 The label shown in the GUI for this savestate.
 
std::string Caption () const override
 A caption that describes the state of the game for this savestate.
 
CDateTime Created () const override
 The timestamp of this savestate's creation.
 
std::string GameFileName () const override
 The name of the file belonging to this savestate's game.
 
uint64_t TimestampFrames () const override
 The number of frames in the entire gameplay history.
 
double TimestampWallClock () const override
 The duration of the entire gameplay history as seen by a wall clock.
 
std::string GameClientID () const override
 The game client add-on ID that created this savestate.
 
std::string GameClientVersion () const override
 The semantic version of the game client.
 
AVPixelFormat GetPixelFormat () const override
 The pixel format of the video stream.
 
unsigned int GetNominalWidth () const override
 The nominal width of the video stream, a good guess for subsequent frames.
 
unsigned int GetNominalHeight () const override
 The nominal height of the video stream, a good guess for subsequent frames.
 
unsigned int GetMaxWidth () const override
 The maximum width of the video stream, in pixels.
 
unsigned int GetMaxHeight () const override
 The maximum height of the video stream, in pixels.
 
float GetPixelAspectRatio () const override
 The pixel aspect ratio of the video stream.
 
const uint8_t * GetVideoData () const override
 A pointer to the frame's video data (pixels)
 
size_t GetVideoSize () const override
 The size of the frame's video data, in bytes.
 
unsigned int GetVideoWidth () const override
 The width of the video frame, in pixels.
 
unsigned int GetVideoHeight () const override
 The height of the video frame, in pixels.
 
unsigned int GetRotationDegCCW () const override
 The rotation of the video frame, in degrees counter-clockwise.
 
const uint8_t * GetMemoryData () const override
 A pointer to the internal memory (SRAM) of the frame.
 
size_t GetMemorySize () const override
 The size of the memory region returned by GetMemoryData()
 
void SetType (SAVE_TYPE type) override
 
void SetSlot (uint8_t slot) override
 
void SetLabel (const std::string &label) override
 
void SetCaption (const std::string &caption) override
 
void SetCreated (const CDateTime &createdUTC) override
 
void SetGameFileName (const std::string &gameFileName) override
 
void SetTimestampFrames (uint64_t timestampFrames) override
 
void SetTimestampWallClock (double timestampWallClock) override
 
void SetGameClientID (const std::string &gameClient) override
 
void SetGameClientVersion (const std::string &gameClient) override
 
void SetPixelFormat (AVPixelFormat pixelFormat) override
 
void SetNominalWidth (unsigned int nominalWidth) override
 
void SetNominalHeight (unsigned int nominalHeight) override
 
void SetMaxWidth (unsigned int maxWidth) override
 
void SetMaxHeight (unsigned int maxHeight) override
 
void SetPixelAspectRatio (float pixelAspectRatio) override
 
uint8_t * GetVideoBuffer (size_t size) override
 
void SetVideoWidth (unsigned int videoWidth) override
 
void SetVideoHeight (unsigned int videoHeight) override
 
void SetRotationDegCCW (unsigned int rotationCCW) override
 
uint8_t * GetMemoryBuffer (size_t size) override
 
void Finalize () override
 
bool Deserialize (std::vector< uint8_t > data) override
 } More...
 
Savestate properties

{

Game properties

}

{

Environment properties

}

{

Game client properties

}

{

Video stream properties

}

{

Video frame properties

}

{

Memory properties

}

{

Builders for setting individual fields

}

{

Member Function Documentation

◆ Deserialize()

bool CSavestateFlatBuffer::Deserialize ( std::vector< uint8_t >  data)
overridevirtual

}

Take ownership and initialize the flatbuffer with the given vector

Implements KODI::RETRO::ISavestate.

◆ Serialize()

bool CSavestateFlatBuffer::Serialize ( const uint8_t *&  data,
size_t &  size 
) const
overridevirtual

Access the data representation of this savestate

Implements KODI::RETRO::ISavestate.

◆ Slot()

uint8_t CSavestateFlatBuffer::Slot ( ) const
overridevirtual

The slot this savestate was saved into, or 0 for no slot.

This allows for keyboard access of saved games using the number keys 1-9.

Implements KODI::RETRO::ISavestate.


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