RetroArch
Typedefs | Functions | Variables
video_thread_wrapper.h File Reference
#include <limits.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "video_driver.h"
#include "font_driver.h"
Include dependency graph for video_thread_wrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef 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)
 
typedef struct thread_packet thread_packet_t
 
typedef struct thread_video thread_video_t
 

Functions

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)
 
voidvideo_thread_get_ptr (const video_driver_t **drv)
 
const char * video_thread_get_ident (void)
 
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)
 
unsigned video_thread_texture_load (void *data, custom_command_method_t func)
 

Variables

RETRO_BEGIN_DECLS typedef int(* custom_command_method_t )(void *)
 

Typedef Documentation

◆ custom_font_command_method_t

typedef 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)

◆ thread_packet_t

◆ thread_video_t

typedef struct thread_video thread_video_t

Function Documentation

◆ video_init_thread()

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 drv,
const video_info_t  info 
)

video_init_thread: : Output video driver : Output video data : Input input driver : Input input data : Input Video driver : Video info handle.

Creates, initializes and starts a video driver in a new thread. Access to video driver will be mediated through this driver.

Returns: true (1) if successful, otherwise false (0).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_thread_font_init()

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 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_thread_get_ident()

const char* video_thread_get_ident ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_thread_get_ptr()

void* video_thread_get_ptr ( const video_driver_t **  drv)

video_thread_get_ptr: : Found driver.

Gets the underlying video driver associated with the threaded video wrapper. Sets to the found video driver.

Returns: Video driver data of the video driver associated with the threaded wrapper (if successful). If not successful, NULL.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_thread_texture_load()

unsigned video_thread_texture_load ( void data,
custom_command_method_t  func 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ custom_command_method_t

RETRO_BEGIN_DECLS typedef int(* custom_command_method_t) (void *)