2020-10-01 14:54:11 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
|
|
|
* Copyright (C) 2019-2020 - James Leaver
|
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DINGUX_UTILS_H
|
|
|
|
#define _DINGUX_UTILS_H
|
|
|
|
|
|
|
|
#include <retro_common_api.h>
|
|
|
|
#include <libretro.h>
|
|
|
|
|
|
|
|
#include <boolean.h>
|
|
|
|
|
|
|
|
RETRO_BEGIN_DECLS
|
|
|
|
|
2020-10-05 13:31:26 +00:00
|
|
|
/* Specifies all possible image filtering
|
|
|
|
* methods when using the IPU hardware scaler
|
|
|
|
* > Note: We do not allow 'fine tuning' of the
|
|
|
|
* bicubic sharpness factor, since anything
|
|
|
|
* other than the default value looks terrible... */
|
|
|
|
enum dingux_ipu_filter_type
|
|
|
|
{
|
|
|
|
DINGUX_IPU_FILTER_BICUBIC = 0,
|
|
|
|
DINGUX_IPU_FILTER_BILINEAR,
|
|
|
|
DINGUX_IPU_FILTER_NEAREST,
|
|
|
|
DINGUX_IPU_FILTER_LAST
|
|
|
|
};
|
|
|
|
|
2020-10-01 14:54:11 +00:00
|
|
|
/* Enables/disables downscaling when using
|
|
|
|
* the IPU hardware scaler */
|
|
|
|
bool dingux_ipu_set_downscaling_enable(bool enable);
|
|
|
|
|
|
|
|
/* Enables/disables aspect ratio correction
|
|
|
|
* (1:1 PAR) when using the IPU hardware
|
|
|
|
* scaler (disabling this will stretch the
|
|
|
|
* image to the full screen dimensions) */
|
|
|
|
bool dingux_ipu_set_aspect_ratio_enable(bool enable);
|
|
|
|
|
2020-10-02 15:38:42 +00:00
|
|
|
/* Enables/disables integer scaling when
|
2020-10-05 13:31:26 +00:00
|
|
|
* using the IPU hardware scaler */
|
2020-10-02 15:38:42 +00:00
|
|
|
bool dingux_ipu_set_integer_scaling_enable(bool enable);
|
|
|
|
|
2020-10-05 13:31:26 +00:00
|
|
|
/* Sets the image filtering method when
|
|
|
|
* using the IPU hardware scaler */
|
|
|
|
bool dingux_ipu_set_filter_type(enum dingux_ipu_filter_type filter_type);
|
|
|
|
|
2020-10-01 14:54:11 +00:00
|
|
|
/* Fetches internal battery level */
|
|
|
|
int dingux_get_battery_level(void);
|
|
|
|
|
|
|
|
RETRO_END_DECLS
|
|
|
|
|
|
|
|
#endif
|