RetroArch
video_thread_wrapper.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef RARCH_VIDEO_THREAD_H__
18 #define RARCH_VIDEO_THREAD_H__
19 
20 #include <limits.h>
21 
22 #include <boolean.h>
23 #include <retro_common_api.h>
24 
25 #include "video_driver.h"
26 #include "font_driver.h"
27 
29 
30 typedef int (*custom_command_method_t)(void*);
31 
32 typedef bool (*custom_font_command_method_t)(const void **font_driver,
33  void **font_handle, void *video_data, const char *font_path,
35  bool is_threaded);
36 
38 
40 
56  const video_driver_t **out_driver, void **out_data,
57  const input_driver_t **input, void **input_data,
58  const video_driver_t *driver, const video_info_t info);
59 
72 void *video_thread_get_ptr(const video_driver_t **drv);
73 
74 const char *video_thread_get_ident(void);
75 
77  const void **font_driver,
78  void **font_handle,
79  void *data,
80  const char *font_path,
81  float font_size,
84  bool is_threaded);
85 
86 unsigned video_thread_texture_load(void *data,
88 
90 
91 #endif
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: libretro.h:2275
void ** input_data
Definition: video_thread_wrapper.c:164
static const float font_size
Definition: config.def.h:434
static tesseract::TessBaseAPI * api
Definition: tess_get_text.cpp:7
Definition: ibxm.h:9
GLenum GLenum GLenum input
Definition: glext.h:9938
void * video_thread_get_ptr(const video_driver_t **drv)
Definition: video_thread_wrapper.c:1371
RETRO_BEGIN_DECLS typedef int(* custom_command_method_t)(void *)
Definition: video_thread_wrapper.h:30
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
Definition: input_driver.h:132
const char * video_thread_get_ident(void)
Definition: video_thread_wrapper.c:1384
bool video_init_thread(const video_driver_t **out_driver, void **out_data, const input_driver_t **input, void **input_data, const video_driver_t *driver, const video_info_t info)
Definition: video_thread_wrapper.c:1343
GLenum func
Definition: glext.h:6668
Definition: video_driver.h:332
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: video_thread_wrapper.c:147
Definition: video_driver.h:760
unsigned video_thread_texture_load(void *data, custom_command_method_t func)
Definition: video_thread_wrapper.c:1428
font_driver_render_api
Definition: video_defines.h:82
Definition: video_thread_wrapper.c:63
bool(* custom_font_command_method_t)(const void **font_driver, void **font_handle, void *video_data, const char *font_path, float font_size, enum font_driver_render_api api, bool is_threaded)
Definition: video_thread_wrapper.h:32
const video_driver_t * driver
Definition: video_thread_wrapper.c:155
bool video_thread_font_init(const void **font_driver, void **font_handle, void *data, const char *font_path, float font_size, enum font_driver_render_api api, custom_font_command_method_t func, bool is_threaded)
Definition: video_thread_wrapper.c:1402