Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <SavestateFlatBuffer.h>
Public Member Functions | |
CSavestateFlatBuffer () | |
~CSavestateFlatBuffer () override | |
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. | |
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 |
} | |
Public Member Functions inherited from KODI::RETRO::ISavestate | |
virtual | ~ISavestate ()=default |
CSavestateFlatBuffer::CSavestateFlatBuffer | ( | ) |
|
overridedefault |
|
overridevirtual |
A caption that describes the state of the game for this savestate.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The timestamp of this savestate's creation.
Implements KODI::RETRO::ISavestate.
}
Take ownership and initialize the flatbuffer with the given vector
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The game client add-on ID that created this savestate.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The semantic version of the game client.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The name of the file belonging to this savestate's game.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The maximum height of the video stream, in pixels.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The maximum width of the video stream, in pixels.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
A pointer to the internal memory (SRAM) of the frame.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The size of the memory region returned by GetMemoryData()
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The nominal height of the video stream, a good guess for subsequent frames.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The nominal width of the video stream, a good guess for subsequent frames.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The pixel aspect ratio of the video stream.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The pixel format of the video stream.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The rotation of the video frame, in degrees counter-clockwise.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
A pointer to the frame's video data (pixels)
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The height of the video frame, in pixels.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The size of the frame's video data, in bytes.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The width of the video frame, in pixels.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The label shown in the GUI for this savestate.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Reset to the initial state.
Implements KODI::RETRO::ISavestate.
Access the data representation of this savestate
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
Implements KODI::RETRO::ISavestate.
|
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.
|
overridevirtual |
The number of frames in the entire gameplay history.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The duration of the entire gameplay history as seen by a wall clock.
Implements KODI::RETRO::ISavestate.
|
overridevirtual |
The type of save action that created this savestate, either manual or automatic.
Implements KODI::RETRO::ISavestate.