2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "cores/GameSettings.h"
19 class CRetroPlayerUtils
23 * \brief Convert a stretch mode enum to a short string identifier
25 * \param stretchMode The stretch mode
27 * \return A short string identifier specified by GameSettings.h, or an
28 * empty string if the stretch mode is invalid
30 static const char* StretchModeToIdentifier(STRETCHMODE stretchMode
);
33 * \brief Convert a stretch mode identifier to an enum
35 * \param stretchMode The short string identifier, from GameSettings.h,
36 * representing the stretch mode
38 * \return The stretch mode enum, or STRETCHMODE::Normal if the identifier
41 static STRETCHMODE
IdentifierToStretchMode(const std::string
& stretchMode
);