kodi
RenderTranslator.h
1 /*
2  * Copyright (C) 2017-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "cores/GameSettings.h"
12 
13 extern "C"
14 {
15 #include <libavutil/pixfmt.h>
16 }
17 
18 namespace KODI
19 {
20 namespace RETRO
21 {
23 {
24 public:
28  static const char* TranslatePixelFormat(AVPixelFormat format);
29 
33  static const char* TranslateScalingMethod(SCALINGMETHOD scalingMethod);
34 
43  static unsigned int TranslateWidthToBytes(unsigned int width, AVPixelFormat format);
44 };
45 } // namespace RETRO
46 } // namespace KODI
static const char * TranslateScalingMethod(SCALINGMETHOD scalingMethod)
Translate a scaling method to a string suitable for logging.
Definition: RenderTranslator.cpp:35
static const char * TranslatePixelFormat(AVPixelFormat format)
Translate a pixel format to a string suitable for logging.
Definition: RenderTranslator.cpp:16
Definition: RenderTranslator.h:22
Definition: AudioDecoder.h:18
static unsigned int TranslateWidthToBytes(unsigned int width, AVPixelFormat format)
Translate a width in pixels to a width in bytes.
Definition: RenderTranslator.cpp:50