Translates data types from Game API to the corresponding format in Kodi.
More...
#include <GameClientTranslator.h>
Translates data types from Game API to the corresponding format in Kodi.
This class is stateless.
◆ GetModifiers()
GAME_KEY_MOD CGameClientTranslator::GetModifiers |
( |
KEYBOARD::Modifier |
modifier | ) |
|
|
static |
Translate key modifiers (Kodi to Game API).
- Parameters
-
modifiers | The key modifiers to translate (e.g. Shift, Ctrl). |
- Returns
- Translated key modifiers.
◆ ToString() [1/2]
const char * CGameClientTranslator::ToString |
( |
GAME_ERROR |
error | ) |
|
|
static |
Translates game errors to string representation (e.g. for logging).
- Parameters
-
error | The error to translate. |
- Returns
- Translated error.
◆ ToString() [2/2]
static const char* KODI::GAME::CGameClientTranslator::ToString |
( |
GAME_MEMORY |
error | ) |
|
|
static |
Translates game memory types to string representation (e.g. for logging).
- Parameters
-
memory | The memory type to translate. |
- Returns
- Translated memory type.
◆ TranslateAudioChannel()
RETRO::AudioChannel CGameClientTranslator::TranslateAudioChannel |
( |
GAME_AUDIO_CHANNEL |
channel | ) |
|
|
static |
Translate audio channels (Game API to RetroPlayer).
- Parameters
-
format | The audio channels to translate. |
- Returns
- Translated audio channels.
◆ TranslatePCMFormat()
RETRO::PCMFormat CGameClientTranslator::TranslatePCMFormat |
( |
GAME_PCM_FORMAT |
format | ) |
|
|
static |
Translate audio PCM format (Game API to RetroPlayer).
- Parameters
-
format | The audio PCM format to translate. |
- Returns
- Translated audio PCM format.
◆ TranslatePixelFormat() [1/2]
AVPixelFormat CGameClientTranslator::TranslatePixelFormat |
( |
GAME_PIXEL_FORMAT |
format | ) |
|
|
static |
Translate pixel format (Game API to RetroPlayer/FFMPEG).
- Parameters
-
format | The pixel format to translate. |
- Returns
- Translated pixel format.
◆ TranslatePixelFormat() [2/2]
GAME_PIXEL_FORMAT CGameClientTranslator::TranslatePixelFormat |
( |
AVPixelFormat |
format | ) |
|
|
static |
Translate pixel format (RetroPlayer/FFMPEG to Game API).
- Parameters
-
format | The pixel format to translate. |
- Returns
- Translated pixel format.
◆ TranslatePortType()
Translate port type (Game API to Kodi)
- Parameters
-
portType | The port type to translate |
- Returns
- Translated port type
◆ TranslateRegion()
const char * CGameClientTranslator::TranslateRegion |
( |
GAME_REGION |
region | ) |
|
|
static |
Translate region to string representation (e.g. for logging).
- Parameters
-
error | The region to translate (e.g. PAL, NTSC). |
- Returns
- Translated region.
◆ TranslateRotation()
Translate video rotation (Game API to RetroPlayer).
- Parameters
-
rotation | The video rotation to translate. |
- Returns
- Translated video rotation.
◆ TranslateStreamType()
bool CGameClientTranslator::TranslateStreamType |
( |
GAME_STREAM_TYPE |
gameType, |
|
|
RETRO::StreamType & |
retroType |
|
) |
| |
|
static |
Translate stream type (Game API to RetroPlayer).
- Parameters
-
| gameType | The stream type to translate. |
[out] | retroType | The translated stream type. |
- Returns
- True if the Game API type was translated to a valid RetroPlayer type
The documentation for this class was generated from the following files: