Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Translates data types from Game API to the corresponding format in Kodi. More...
#include <GameClientTranslator.h>
Static Public Member Functions | |
static const char * | ToString (GAME_ERROR error) |
Translates game errors to string representation (e.g. for logging). | |
static const char * | ToString (GAME_MEMORY error) |
Translates game memory types to string representation (e.g. for logging). | |
static bool | TranslateStreamType (GAME_STREAM_TYPE gameType, RETRO::StreamType &retroType) |
Translate stream type (Game API to RetroPlayer). | |
static AVPixelFormat | TranslatePixelFormat (GAME_PIXEL_FORMAT format) |
Translate pixel format (Game API to RetroPlayer/FFMPEG). | |
static GAME_PIXEL_FORMAT | TranslatePixelFormat (AVPixelFormat format) |
Translate pixel format (RetroPlayer/FFMPEG to Game API). | |
static RETRO::PCMFormat | TranslatePCMFormat (GAME_PCM_FORMAT format) |
Translate audio PCM format (Game API to RetroPlayer). | |
static RETRO::AudioChannel | TranslateAudioChannel (GAME_AUDIO_CHANNEL channel) |
Translate audio channels (Game API to RetroPlayer). | |
static RETRO::VideoRotation | TranslateRotation (GAME_VIDEO_ROTATION rotation) |
Translate video rotation (Game API to RetroPlayer). | |
static GAME_KEY_MOD | GetModifiers (KEYBOARD::Modifier modifier) |
Translate key modifiers (Kodi to Game API). | |
static const char * | TranslateRegion (GAME_REGION region) |
Translate region to string representation (e.g. for logging). | |
static PORT_TYPE | TranslatePortType (GAME_PORT_TYPE portType) |
Translate port type (Game API to Kodi) | |
Translates data types from Game API to the corresponding format in Kodi.
This class is stateless.
|
static |
Translate key modifiers (Kodi to Game API).
modifiers | The key modifiers to translate (e.g. Shift, Ctrl). |
|
static |
Translates game errors to string representation (e.g. for logging).
error | The error to translate. |
|
static |
Translates game memory types to string representation (e.g. for logging).
memory | The memory type to translate. |
|
static |
Translate audio channels (Game API to RetroPlayer).
format | The audio channels to translate. |
|
static |
Translate audio PCM format (Game API to RetroPlayer).
format | The audio PCM format to translate. |
|
static |
Translate pixel format (RetroPlayer/FFMPEG to Game API).
format | The pixel format to translate. |
|
static |
Translate pixel format (Game API to RetroPlayer/FFMPEG).
format | The pixel format to translate. |
|
static |
Translate port type (Game API to Kodi)
portType | The port type to translate |
|
static |
Translate region to string representation (e.g. for logging).
error | The region to translate (e.g. PAL, NTSC). |
|
static |
Translate video rotation (Game API to RetroPlayer).
rotation | The video rotation to translate. |
|
static |
Translate stream type (Game API to RetroPlayer).
gameType | The stream type to translate. | |
[out] | retroType | The translated stream type. |