RetroArch
Classes | Macros | Typedefs | Functions | Variables
video_driver.c File Reference
#include <stddef.h>
#include <string.h>
#include <compat/strl.h>
#include <retro_common_api.h>
#include <file/config_file.h>
#include <features/features_cpu.h>
#include <file/file_path.h>
#include <string/stdstring.h>
#include <retro_math.h>
#include <retro_assert.h>
#include <gfx/scaler/pixconv.h>
#include <gfx/scaler/scaler.h>
#include <gfx/video_frame.h>
#include <formats/image.h>
#include "../audio/audio_driver.h"
#include "../menu/menu_shader.h"
#include "../dynamic.h"
#include "video_thread_wrapper.h"
#include "video_driver.h"
#include "video_display_server.h"
#include "video_crt_switch.h"
#include "../frontend/frontend_driver.h"
#include "../record/record_driver.h"
#include "../config.def.h"
#include "../configuration.h"
#include "../driver.h"
#include "../retroarch.h"
#include "../input/input_driver.h"
#include "../list_special.h"
#include "../core.h"
#include "../command.h"
#include "../msg_hash.h"
#include "../verbosity.h"
Include dependency graph for video_driver.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  video_pixel_scaler
 

Macros

#define MEASURE_FRAME_TIME_SAMPLES_COUNT   (2 * 1024)
 
#define TIME_TO_FPS(last_time, new_time, frames)   ((1000000.0f * (frames)) / ((new_time) - (last_time)))
 
#define FPS_UPDATE_INTERVAL   256
 
#define video_driver_is_threaded_internal()   (false)
 
#define video_driver_lock()   ((void)0)
 
#define video_driver_unlock()   ((void)0)
 
#define video_driver_lock_free()   ((void)0)
 
#define video_driver_threaded_lock(is_threaded)   ((void)0)
 
#define video_driver_threaded_unlock(is_threaded)   ((void)0)
 
#define video_driver_context_lock()   ((void)0)
 
#define video_driver_context_unlock()   ((void)0)
 

Typedefs

typedef struct video_pixel_scaler video_pixel_scaler_t
 

Functions

bool video_driver_started_fullscreen (void)
 
static void update_window_title_null (void *data, void *data2)
 
static void swap_buffers_null (void *data, void *data2)
 
static bool get_metrics_null (void *data, enum display_metric_types type, float *value)
 
static bool set_resize_null (void *a, unsigned b, unsigned c)
 
const voidvideo_driver_find_handle (int idx)
 
const char * video_driver_find_ident (int idx)
 
const char * config_get_video_driver_options (void)
 
bool video_driver_is_threaded (void)
 
boolvideo_driver_get_threaded (void)
 
void video_driver_set_threaded (bool val)
 
voidvideo_driver_get_ptr (bool force_nonthreaded_data)
 
const char * video_driver_get_ident (void)
 
const video_poke_interface_tvideo_driver_get_poke (void)
 
static bool video_context_has_focus (void)
 
static bool video_driver_has_focus (void)
 
static bool null_driver_has_focus (void)
 
static void video_context_driver_reset (void)
 
bool video_context_driver_set (const gfx_ctx_driver_t *data)
 
void video_context_driver_destroy (void)
 
uintptr_t video_driver_get_current_framebuffer (void)
 
retro_proc_address_t video_driver_get_proc_address (const char *sym)
 
bool video_driver_set_shader (enum rarch_shader_type type, const char *path)
 
static void video_driver_filter_free (void)
 
static void video_driver_init_filter (enum retro_pixel_format colfmt_int)
 
static void video_driver_init_input (const input_driver_t *tmp)
 
static void video_driver_monitor_compute_fps_statistics (void)
 
static void video_driver_pixel_converter_free (void)
 
static void video_driver_free_internal (void)
 
static bool video_driver_pixel_converter_init (unsigned size)
 
static bool video_driver_init_internal (bool *video_is_threaded)
 
bool video_driver_set_viewport (unsigned width, unsigned height, bool force_fullscreen, bool allow_rotate)
 
bool video_driver_set_rotation (unsigned rotation)
 
bool video_driver_set_video_mode (unsigned width, unsigned height, bool fullscreen)
 
bool video_driver_get_video_output_size (unsigned *width, unsigned *height)
 
void video_driver_set_osd_msg (const char *msg, const void *data, void *font)
 
void video_driver_set_texture_enable (bool enable, bool fullscreen)
 
void video_driver_set_texture_frame (const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
voidvideo_driver_read_frame_raw (unsigned *width, unsigned *height, size_t *pitch)
 
void video_driver_set_filtering (unsigned index, bool smooth)
 
void video_driver_cached_frame_set (const void *data, unsigned width, unsigned height, size_t pitch)
 
void video_driver_cached_frame_get (const void **data, unsigned *width, unsigned *height, size_t *pitch)
 
void video_driver_get_size (unsigned *width, unsigned *height)
 
void video_driver_set_size (unsigned *width, unsigned *height)
 
void video_monitor_set_refresh_rate (float hz)
 
bool video_monitor_fps_statistics (double *refresh_rate, double *deviation, unsigned *sample_points)
 
float video_driver_get_aspect_ratio (void)
 
void video_driver_set_aspect_ratio_value (float value)
 
static bool video_driver_frame_filter (const void *data, video_frame_info_t *video_info, unsigned width, unsigned height, size_t pitch, unsigned *output_width, unsigned *output_height, unsigned *output_pitch)
 
rarch_softfilter_tvideo_driver_frame_filter_get_ptr (void)
 
enum retro_pixel_format video_driver_get_pixel_format (void)
 
void video_driver_set_pixel_format (enum retro_pixel_format fmt)
 
bool video_driver_cached_frame (void)
 
void video_driver_monitor_adjust_system_rates (void)
 
void video_driver_menu_settings (void **list_data, void *list_info_data, void *group_data, void *subgroup_data, const char *parent_group)
 
static void video_driver_lock_new (void)
 
void video_driver_destroy (void)
 
void video_driver_set_cached_frame_ptr (const void *data)
 
void video_driver_set_stub_frame (void)
 
void video_driver_unset_stub_frame (void)
 
bool video_driver_is_stub_frame (void)
 
bool video_driver_supports_recording (void)
 
bool video_driver_supports_viewport_read (void)
 
bool video_driver_supports_read_frame_raw (void)
 
void video_driver_set_viewport_config (void)
 
void video_driver_set_viewport_square_pixel (void)
 
void video_driver_set_viewport_core (void)
 
void video_driver_reset_custom_viewport (void)
 
void video_driver_set_rgba (void)
 
void video_driver_unset_rgba (void)
 
bool video_driver_supports_rgba (void)
 
bool video_driver_get_next_video_out (void)
 
bool video_driver_get_prev_video_out (void)
 
bool video_driver_init (bool *video_is_threaded)
 
void video_driver_destroy_data (void)
 
void video_driver_free (void)
 
void video_driver_monitor_reset (void)
 
void video_driver_set_aspect_ratio (void)
 
void video_driver_update_viewport (struct video_viewport *vp, bool force_full, bool keep_aspect)
 
void video_driver_show_mouse (void)
 
void video_driver_hide_mouse (void)
 
void video_driver_set_nonblock_state (bool toggle)
 
bool video_driver_find_driver (void)
 
void video_driver_apply_state_changes (void)
 
bool video_driver_read_viewport (uint8_t *buffer, bool is_idle)
 
bool video_driver_frame_filter_alive (void)
 
bool video_driver_frame_filter_is_32bit (void)
 
void video_driver_default_settings (void)
 
void video_driver_load_settings (config_file_t *conf)
 
void video_driver_save_settings (config_file_t *conf)
 
void video_driver_reinit (void)
 
void video_driver_set_own_driver (void)
 
void video_driver_unset_own_driver (void)
 
bool video_driver_owns_driver (void)
 
bool video_driver_is_hw_context (void)
 
void video_driver_free_hw_context (void)
 
struct retro_hw_render_callbackvideo_driver_get_hw_context (void)
 
const struct retro_hw_render_context_negotiation_interfacevideo_driver_get_context_negotiation_interface (void)
 
void video_driver_set_context_negotiation_interface (const struct retro_hw_render_context_negotiation_interface *iface)
 
bool video_driver_is_video_cache_context (void)
 
void video_driver_set_video_cache_context_ack (void)
 
void video_driver_unset_video_cache_context_ack (void)
 
bool video_driver_is_video_cache_context_ack (void)
 
void video_driver_set_active (void)
 
void video_driver_unset_active (void)
 
bool video_driver_is_active (void)
 
void video_driver_get_record_status (bool *has_gpu_record, uint8_t **gpu_buf)
 
bool video_driver_gpu_record_init (unsigned size)
 
void video_driver_gpu_record_deinit (void)
 
bool video_driver_get_current_software_framebuffer (struct retro_framebuffer *fb)
 
bool video_driver_get_hw_render_interface (const struct retro_hw_render_interface **iface)
 
bool video_driver_get_viewport_info (struct video_viewport *viewport)
 
void video_driver_set_title_buf (void)
 
void video_viewport_get_scaled_integer (struct video_viewport *vp, unsigned width, unsigned height, float aspect_ratio, bool keep_aspect)
 
struct retro_system_av_infovideo_viewport_get_system_av_info (void)
 
struct video_viewportvideo_viewport_get_custom (void)
 
unsigned video_pixel_get_alignment (unsigned pitch)
 
void video_driver_frame (const void *data, unsigned width, unsigned height, size_t pitch)
 
void video_driver_display_type_set (enum rarch_display_type type)
 
uintptr_t video_driver_display_get (void)
 
void video_driver_display_set (uintptr_t idx)
 
enum rarch_display_type video_driver_display_type_get (void)
 
void video_driver_window_set (uintptr_t idx)
 
uintptr_t video_driver_window_get (void)
 
bool video_driver_texture_load (void *data, enum texture_filter_type filter_type, uintptr_t *id)
 
bool video_driver_texture_unload (uintptr_t *id)
 
static void video_shader_driver_use_null (void *data, void *shader_data, unsigned idx, bool set_active)
 
static bool video_driver_cb_set_coords (void *handle_data, void *shader_data, const struct video_coords *coords)
 
void video_driver_build_info (video_frame_info_t *video_info)
 
bool video_driver_translate_coord_viewport (struct video_viewport *vp, int mouse_x, int mouse_y, int16_t *res_x, int16_t *res_y, int16_t *res_screen_x, int16_t *res_screen_y)
 
void video_driver_get_window_title (char *buf, unsigned len)
 
void video_driver_get_status (uint64_t *frame_count, bool *is_alive, bool *is_focused)
 
static int find_video_context_driver_index (const char *ident)
 
bool video_context_driver_find_prev_driver (void)
 
bool video_context_driver_find_next_driver (void)
 
static const gfx_ctx_driver_tvideo_context_driver_init (void *data, const gfx_ctx_driver_t *ctx, const char *ident, enum gfx_ctx_api api, unsigned major, unsigned minor, bool hw_render_ctx, void **ctx_data)
 
const gfx_ctx_driver_tvideo_context_driver_init_first (void *data, const char *ident, enum gfx_ctx_api api, unsigned major, unsigned minor, bool hw_render_ctx, void **ctx_data)
 
bool video_context_driver_init_image_buffer (const video_info_t *data)
 
bool video_context_driver_write_to_image_buffer (gfx_ctx_image_t *img)
 
bool video_context_driver_get_video_output_prev (void)
 
bool video_context_driver_get_video_output_next (void)
 
void video_context_driver_make_current (bool release)
 
bool video_context_driver_translate_aspect (gfx_ctx_aspect_t *aspect)
 
void video_context_driver_free (void)
 
bool video_context_driver_get_video_output_size (gfx_ctx_size_t *size_data)
 
bool video_context_driver_swap_interval (int *interval)
 
bool video_context_driver_get_proc_address (gfx_ctx_proc_address_t *proc)
 
bool video_context_driver_get_metrics (gfx_ctx_metrics_t *metrics)
 
bool video_context_driver_get_refresh_rate (float *refresh_rate)
 
bool video_context_driver_input_driver (gfx_ctx_input_t *inp)
 
bool video_context_driver_suppress_screensaver (bool *bool_data)
 
bool video_context_driver_get_ident (gfx_ctx_ident_t *ident)
 
bool video_context_driver_set_video_mode (gfx_ctx_mode_t *mode_info)
 
bool video_context_driver_get_video_size (gfx_ctx_mode_t *mode_info)
 
bool video_context_driver_show_mouse (bool *bool_data)
 
static bool video_context_driver_get_flags (gfx_ctx_flags_t *flags)
 
static bool video_driver_get_flags (gfx_ctx_flags_t *flags)
 
bool video_driver_get_all_flags (gfx_ctx_flags_t *flags, enum display_flags flag)
 
bool video_context_driver_set_flags (gfx_ctx_flags_t *flags)
 
enum gfx_ctx_api video_context_driver_get_api (void)
 
bool video_driver_has_windowed (void)
 
bool video_driver_cached_frame_has_valid_framebuffer (void)
 
static const shader_backend_tvideo_shader_set_backend (enum rarch_shader_type type)
 
void video_shader_driver_use (video_shader_ctx_info_t *shader_info)
 
void video_shader_driver_set_parameter (struct uniform_info *param)
 
void video_shader_driver_set_parameters (video_shader_ctx_params_t *params)
 
bool video_shader_driver_get_prev_textures (video_shader_ctx_texture_t *texture)
 
bool video_shader_driver_get_ident (video_shader_ctx_ident_t *ident)
 
bool video_shader_driver_get_current_shader (video_shader_ctx_t *shader)
 
bool video_shader_driver_direct_get_current_shader (video_shader_ctx_t *shader)
 
bool video_shader_driver_deinit (void)
 
static enum gfx_wrap_type video_shader_driver_wrap_type_null (void *data, unsigned index)
 
static bool video_driver_cb_set_mvp (void *data, void *shader_data, const void *mat_data)
 
static struct video_shadervideo_shader_driver_get_current_shader_null (void *data)
 
static void video_shader_driver_set_params_null (void *data, void *shader_data)
 
static void video_shader_driver_scale_null (void *data, unsigned idx, struct gfx_fbo_scale *scale)
 
static bool video_shader_driver_mipmap_input_null (void *data, unsigned idx)
 
static bool video_shader_driver_filter_type_null (void *data, unsigned idx, bool *smooth)
 
static unsigned video_shader_driver_num_null (void *data)
 
static bool video_shader_driver_get_feedback_pass_null (void *data, unsigned *idx)
 
static void video_shader_driver_reset_to_defaults (void)
 
bool video_shader_driver_init_first (void)
 
bool video_shader_driver_init (video_shader_ctx_init_t *init)
 
bool video_shader_driver_get_feedback_pass (unsigned *data)
 
bool video_shader_driver_mipmap_input (unsigned *index)
 
bool video_shader_driver_scale (video_shader_ctx_scale_t *scaler)
 
bool video_shader_driver_info (video_shader_ctx_info_t *shader_info)
 
bool video_shader_driver_filter_type (video_shader_ctx_filter_t *filter)
 
bool video_shader_driver_compile_program (struct shader_program_info *program_info)
 
bool video_shader_driver_wrap_type (video_shader_ctx_wrap_t *wrap)
 
void video_driver_set_coords (video_shader_ctx_coords_t *coords)
 
void video_driver_set_mvp (video_shader_ctx_mvp_t *mvp)
 
float video_driver_get_refresh_rate (void)
 

Variables

static void(* video_driver_cb_shader_use )(void *data, void *shader_data, unsigned index, bool set_active)
 
static bool(* video_driver_cb_shader_set_mvp )(void *data, void *shader_data, const void *mat_data)
 
bool(* video_driver_cb_has_focus )(void)
 
static uintptr_t video_driver_display = 0
 
static uintptr_t video_driver_window = 0
 
static rarch_softfilter_tvideo_driver_state_filter = NULL
 
static voidvideo_driver_state_buffer = NULL
 
static unsigned video_driver_state_scale = 0
 
static unsigned video_driver_state_out_bpp = 0
 
static bool video_driver_state_out_rgb32 = false
 
static bool video_driver_crt_switching_active = false
 
static struct retro_system_av_info video_driver_av_info
 
static enum retro_pixel_format video_driver_pix_fmt = RETRO_PIXEL_FORMAT_0RGB1555
 
static const voidframe_cache_data = NULL
 
static unsigned frame_cache_width = 0
 
static unsigned frame_cache_height = 0
 
static size_t frame_cache_pitch = 0
 
static bool video_driver_threaded = false
 
static float video_driver_core_hz = 0.0f
 
static float video_driver_aspect_ratio = 0.0f
 
static unsigned video_driver_width = 0
 
static unsigned video_driver_height = 0
 
static enum rarch_display_type video_driver_display_type = RARCH_DISPLAY_NONE
 
static char video_driver_title_buf [64] = {0}
 
static char video_driver_window_title [512] = {0}
 
static bool video_driver_window_title_update = true
 
static retro_time_t video_driver_frame_time_samples [MEASURE_FRAME_TIME_SAMPLES_COUNT]
 
static uint64_t video_driver_frame_time_count = 0
 
static uint64_t video_driver_frame_count = 0
 
static voidvideo_driver_data = NULL
 
static video_driver_tcurrent_video = NULL
 
static const video_poke_interface_tvideo_driver_poke = NULL
 
static video_pixel_scaler_tvideo_driver_scaler_ptr = NULL
 
static struct retro_hw_render_callback hw_render
 
static const struct retro_hw_render_context_negotiation_interfacehw_render_context_negotiation = NULL
 
static bool video_driver_use_rgba = false
 
static bool video_driver_data_own = false
 
static bool video_driver_active = false
 
static video_driver_frame_t frame_bak = NULL
 
static bool video_driver_cache_context = false
 
static bool video_driver_cache_context_ack = false
 
static uint8_tvideo_driver_record_gpu_buffer = NULL
 
static gfx_ctx_driver_t current_video_context
 
static voidvideo_context_data = NULL
 
static bool deferred_video_context_driver_set_flags = false
 
static gfx_ctx_flags_t deferred_flag_data = {0}
 
static bool video_started_fullscreen = false
 
static shader_backend_tcurrent_shader = NULL
 
static voidcurrent_shader_data = NULL
 
struct aspect_ratio_elem aspectratio_lut [ASPECT_RATIO_END]
 
static const video_driver_tvideo_drivers []
 
static const gfx_ctx_driver_tgfx_ctx_drivers []
 
static const shader_backend_tshader_ctx_drivers []
 

Macro Definition Documentation

◆ FPS_UPDATE_INTERVAL

#define FPS_UPDATE_INTERVAL   256

◆ MEASURE_FRAME_TIME_SAMPLES_COUNT

#define MEASURE_FRAME_TIME_SAMPLES_COUNT   (2 * 1024)

◆ TIME_TO_FPS

#define TIME_TO_FPS (   last_time,
  new_time,
  frames 
)    ((1000000.0f * (frames)) / ((new_time) - (last_time)))

◆ video_driver_context_lock

#define video_driver_context_lock ( )    ((void)0)

◆ video_driver_context_unlock

#define video_driver_context_unlock ( )    ((void)0)

◆ video_driver_is_threaded_internal

#define video_driver_is_threaded_internal ( )    (false)

◆ video_driver_lock

#define video_driver_lock ( )    ((void)0)

◆ video_driver_lock_free

#define video_driver_lock_free ( )    ((void)0)

◆ video_driver_threaded_lock

#define video_driver_threaded_lock (   is_threaded)    ((void)0)

◆ video_driver_threaded_unlock

#define video_driver_threaded_unlock (   is_threaded)    ((void)0)

◆ video_driver_unlock

#define video_driver_unlock ( )    ((void)0)

Typedef Documentation

◆ video_pixel_scaler_t

Function Documentation

◆ config_get_video_driver_options()

const char* config_get_video_driver_options ( void  )

config_get_video_driver_options:

Get an enumerated list of all video driver names, separated by '|'.

Returns: string listing of all video driver names, separated by '|'.

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

◆ find_video_context_driver_index()

static int find_video_context_driver_index ( const char *  ident)
static

find_video_context_driver_driver_index: : Identifier of resampler driver to find.

Finds graphics context driver index by name.

Returns: graphics context driver index if driver was found, otherwise -1.

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

◆ get_metrics_null()

static bool get_metrics_null ( void data,
enum display_metric_types  type,
float *  value 
)
static
Here is the caller graph for this function:

◆ null_driver_has_focus()

static bool null_driver_has_focus ( void  )
static
Here is the caller graph for this function:

◆ set_resize_null()

static bool set_resize_null ( void a,
unsigned  b,
unsigned  c 
)
static
Here is the caller graph for this function:

◆ swap_buffers_null()

static void swap_buffers_null ( void data,
void data2 
)
static
Here is the caller graph for this function:

◆ update_window_title_null()

static void update_window_title_null ( void data,
void data2 
)
static
Here is the caller graph for this function:

◆ video_context_driver_destroy()

void video_context_driver_destroy ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_find_next_driver()

bool video_context_driver_find_next_driver ( void  )

find_next_context_driver:

Finds next driver in graphics context driver array.

Here is the call graph for this function:

◆ video_context_driver_find_prev_driver()

bool video_context_driver_find_prev_driver ( void  )

find_prev_context_driver:

Finds previous driver in graphics context driver array.

Here is the call graph for this function:

◆ video_context_driver_free()

void video_context_driver_free ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_get_api()

enum gfx_ctx_api video_context_driver_get_api ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_get_flags()

static bool video_context_driver_get_flags ( gfx_ctx_flags_t flags)
static
Here is the caller graph for this function:

◆ video_context_driver_get_ident()

bool video_context_driver_get_ident ( gfx_ctx_ident_t ident)
Here is the caller graph for this function:

◆ video_context_driver_get_metrics()

bool video_context_driver_get_metrics ( gfx_ctx_metrics_t metrics)
Here is the caller graph for this function:

◆ video_context_driver_get_proc_address()

bool video_context_driver_get_proc_address ( gfx_ctx_proc_address_t proc)
Here is the caller graph for this function:

◆ video_context_driver_get_refresh_rate()

bool video_context_driver_get_refresh_rate ( float *  refresh_rate)
Here is the caller graph for this function:

◆ video_context_driver_get_video_output_next()

bool video_context_driver_get_video_output_next ( void  )
Here is the caller graph for this function:

◆ video_context_driver_get_video_output_prev()

bool video_context_driver_get_video_output_prev ( void  )
Here is the caller graph for this function:

◆ video_context_driver_get_video_output_size()

bool video_context_driver_get_video_output_size ( gfx_ctx_size_t size_data)
Here is the caller graph for this function:

◆ video_context_driver_get_video_size()

bool video_context_driver_get_video_size ( gfx_ctx_mode_t mode_info)
Here is the caller graph for this function:

◆ video_context_driver_init()

static const gfx_ctx_driver_t* video_context_driver_init ( void data,
const gfx_ctx_driver_t ctx,
const char *  ident,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor,
bool  hw_render_ctx,
void **  ctx_data 
)
static

video_context_driver_init: : Input data. : Graphics context driver to initialize. : Identifier of graphics context driver to find. : API of higher-level graphics API. : Major version number of higher-level graphics API. : Minor version number of higher-level graphics API. : Request a graphics context driver capable of hardware rendering?

Initialize graphics context driver.

Returns: graphics context driver if successfully initialized, otherwise NULL.

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

◆ video_context_driver_init_first()

const gfx_ctx_driver_t* video_context_driver_init_first ( void data,
const char *  ident,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor,
bool  hw_render_ctx,
void **  ctx_data 
)

video_context_driver_init_first: : Input data. : Identifier of graphics context driver to find. : API of higher-level graphics API. : Major version number of higher-level graphics API. : Minor version number of higher-level graphics API. : Request a graphics context driver capable of hardware rendering?

Finds first suitable graphics context driver and initializes.

Returns: graphics context driver if found, otherwise NULL.

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

◆ video_context_driver_init_image_buffer()

bool video_context_driver_init_image_buffer ( const video_info_t data)
Here is the caller graph for this function:

◆ video_context_driver_input_driver()

bool video_context_driver_input_driver ( gfx_ctx_input_t inp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_make_current()

void video_context_driver_make_current ( bool  release)
Here is the caller graph for this function:

◆ video_context_driver_reset()

static void video_context_driver_reset ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_set()

bool video_context_driver_set ( const gfx_ctx_driver_t data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_set_flags()

bool video_context_driver_set_flags ( gfx_ctx_flags_t flags)
Here is the caller graph for this function:

◆ video_context_driver_set_video_mode()

bool video_context_driver_set_video_mode ( gfx_ctx_mode_t mode_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_show_mouse()

bool video_context_driver_show_mouse ( bool bool_data)
Here is the caller graph for this function:

◆ video_context_driver_suppress_screensaver()

bool video_context_driver_suppress_screensaver ( bool bool_data)
Here is the caller graph for this function:

◆ video_context_driver_swap_interval()

bool video_context_driver_swap_interval ( int *  interval)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_context_driver_translate_aspect()

bool video_context_driver_translate_aspect ( gfx_ctx_aspect_t aspect)
Here is the caller graph for this function:

◆ video_context_driver_write_to_image_buffer()

bool video_context_driver_write_to_image_buffer ( gfx_ctx_image_t img)
Here is the caller graph for this function:

◆ video_context_has_focus()

static bool video_context_has_focus ( void  )
static
Here is the caller graph for this function:

◆ video_driver_apply_state_changes()

void video_driver_apply_state_changes ( void  )
Here is the caller graph for this function:

◆ video_driver_build_info()

void video_driver_build_info ( video_frame_info_t video_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_cached_frame()

bool video_driver_cached_frame ( void  )

video_driver_cached_frame:

Renders the current video frame.

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

◆ video_driver_cached_frame_get()

void video_driver_cached_frame_get ( const void **  data,
unsigned *  width,
unsigned *  height,
size_t *  pitch 
)
Here is the caller graph for this function:

◆ video_driver_cached_frame_has_valid_framebuffer()

bool video_driver_cached_frame_has_valid_framebuffer ( void  )
Here is the caller graph for this function:

◆ video_driver_cached_frame_set()

void video_driver_cached_frame_set ( const void data,
unsigned  width,
unsigned  height,
size_t  pitch 
)
Here is the caller graph for this function:

◆ video_driver_cb_set_coords()

static bool video_driver_cb_set_coords ( void handle_data,
void shader_data,
const struct video_coords coords 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_cb_set_mvp()

static bool video_driver_cb_set_mvp ( void data,
void shader_data,
const void mat_data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_default_settings()

void video_driver_default_settings ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_destroy()

void video_driver_destroy ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_destroy_data()

void video_driver_destroy_data ( void  )
Here is the caller graph for this function:

◆ video_driver_display_get()

uintptr_t video_driver_display_get ( void  )
Here is the caller graph for this function:

◆ video_driver_display_set()

void video_driver_display_set ( uintptr_t  idx)
Here is the caller graph for this function:

◆ video_driver_display_type_get()

enum rarch_display_type video_driver_display_type_get ( void  )
Here is the caller graph for this function:

◆ video_driver_display_type_set()

void video_driver_display_type_set ( enum rarch_display_type  type)
Here is the caller graph for this function:

◆ video_driver_filter_free()

static void video_driver_filter_free ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_find_driver()

bool video_driver_find_driver ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_find_handle()

const void* video_driver_find_handle ( int  idx)

video_driver_find_handle: : index of driver to get handle to.

Returns: handle to video driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

◆ video_driver_find_ident()

const char* video_driver_find_ident ( int  idx)

video_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of video driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

◆ video_driver_frame()

void video_driver_frame ( const void data,
unsigned  width,
unsigned  height,
size_t  pitch 
)

video_driver_frame: : pointer to data of the video frame. : width of the video frame. : height of the video frame. : pitch of the video frame.

Video frame render callback function.

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

◆ video_driver_frame_filter()

static bool video_driver_frame_filter ( const void data,
video_frame_info_t video_info,
unsigned  width,
unsigned  height,
size_t  pitch,
unsigned *  output_width,
unsigned *  output_height,
unsigned *  output_pitch 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_frame_filter_alive()

bool video_driver_frame_filter_alive ( void  )

◆ video_driver_frame_filter_get_ptr()

rarch_softfilter_t* video_driver_frame_filter_get_ptr ( void  )

◆ video_driver_frame_filter_is_32bit()

bool video_driver_frame_filter_is_32bit ( void  )

◆ video_driver_free()

void video_driver_free ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_free_hw_context()

void video_driver_free_hw_context ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_free_internal()

static void video_driver_free_internal ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_get_all_flags()

bool video_driver_get_all_flags ( gfx_ctx_flags_t flags,
enum display_flags  flag 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_get_aspect_ratio()

float video_driver_get_aspect_ratio ( void  )
Here is the caller graph for this function:

◆ video_driver_get_context_negotiation_interface()

const struct retro_hw_render_context_negotiation_interface* video_driver_get_context_negotiation_interface ( void  )
Here is the caller graph for this function:

◆ video_driver_get_current_framebuffer()

uintptr_t video_driver_get_current_framebuffer ( void  )

video_driver_get_current_framebuffer:

Gets pointer to current hardware renderer framebuffer object. Used by RETRO_ENVIRONMENT_SET_HW_RENDER.

Returns: pointer to hardware framebuffer object, otherwise 0.

Here is the caller graph for this function:

◆ video_driver_get_current_software_framebuffer()

bool video_driver_get_current_software_framebuffer ( struct retro_framebuffer fb)
Here is the caller graph for this function:

◆ video_driver_get_flags()

static bool video_driver_get_flags ( gfx_ctx_flags_t flags)
static
Here is the caller graph for this function:

◆ video_driver_get_hw_context()

struct retro_hw_render_callback* video_driver_get_hw_context ( void  )
Here is the caller graph for this function:

◆ video_driver_get_hw_render_interface()

bool video_driver_get_hw_render_interface ( const struct retro_hw_render_interface **  iface)
Here is the caller graph for this function:

◆ video_driver_get_ident()

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

◆ video_driver_get_next_video_out()

bool video_driver_get_next_video_out ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_get_pixel_format()

enum retro_pixel_format video_driver_get_pixel_format ( void  )
Here is the caller graph for this function:

◆ video_driver_get_poke()

const video_poke_interface_t* video_driver_get_poke ( void  )
Here is the caller graph for this function:

◆ video_driver_get_prev_video_out()

bool video_driver_get_prev_video_out ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_get_proc_address()

retro_proc_address_t video_driver_get_proc_address ( const char *  sym)
Here is the caller graph for this function:

◆ video_driver_get_ptr()

void* video_driver_get_ptr ( bool  force_nonthreaded_data)

video_driver_get_ptr:

Use this if you need the real video driver and driver data pointers.

Returns: video driver's userdata.

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

◆ video_driver_get_record_status()

void video_driver_get_record_status ( bool has_gpu_record,
uint8_t **  gpu_buf 
)
Here is the caller graph for this function:

◆ video_driver_get_refresh_rate()

float video_driver_get_refresh_rate ( void  )
Here is the caller graph for this function:

◆ video_driver_get_size()

void video_driver_get_size ( unsigned *  width,
unsigned *  height 
)

◆ video_driver_get_status()

void video_driver_get_status ( uint64_t frame_count,
bool is_alive,
bool is_focused 
)
Here is the caller graph for this function:

◆ video_driver_get_threaded()

bool* video_driver_get_threaded ( void  )
Here is the caller graph for this function:

◆ video_driver_get_video_output_size()

bool video_driver_get_video_output_size ( unsigned *  width,
unsigned *  height 
)
Here is the caller graph for this function:

◆ video_driver_get_viewport_info()

bool video_driver_get_viewport_info ( struct video_viewport viewport)
Here is the caller graph for this function:

◆ video_driver_get_window_title()

void video_driver_get_window_title ( char *  buf,
unsigned  len 
)
Here is the caller graph for this function:

◆ video_driver_gpu_record_deinit()

void video_driver_gpu_record_deinit ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_gpu_record_init()

bool video_driver_gpu_record_init ( unsigned  size)
Here is the call graph for this function:

◆ video_driver_has_focus()

static bool video_driver_has_focus ( void  )
static
Here is the caller graph for this function:

◆ video_driver_has_windowed()

bool video_driver_has_windowed ( void  )
Here is the caller graph for this function:

◆ video_driver_hide_mouse()

void video_driver_hide_mouse ( void  )
Here is the caller graph for this function:

◆ video_driver_init()

bool video_driver_init ( bool video_is_threaded)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_init_filter()

static void video_driver_init_filter ( enum retro_pixel_format  colfmt_int)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_init_input()

static void video_driver_init_input ( const input_driver_t tmp)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_init_internal()

static bool video_driver_init_internal ( bool video_is_threaded)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_is_active()

bool video_driver_is_active ( void  )
Here is the caller graph for this function:

◆ video_driver_is_hw_context()

bool video_driver_is_hw_context ( void  )
Here is the caller graph for this function:

◆ video_driver_is_stub_frame()

bool video_driver_is_stub_frame ( void  )
Here is the caller graph for this function:

◆ video_driver_is_threaded()

bool video_driver_is_threaded ( void  )
Here is the caller graph for this function:

◆ video_driver_is_video_cache_context()

bool video_driver_is_video_cache_context ( void  )
Here is the caller graph for this function:

◆ video_driver_is_video_cache_context_ack()

bool video_driver_is_video_cache_context_ack ( void  )
Here is the caller graph for this function:

◆ video_driver_load_settings()

void video_driver_load_settings ( config_file_t conf)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_lock_new()

static void video_driver_lock_new ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_menu_settings()

void video_driver_menu_settings ( void **  list_data,
void list_info_data,
void group_data,
void subgroup_data,
const char *  parent_group 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_monitor_adjust_system_rates()

void video_driver_monitor_adjust_system_rates ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_monitor_compute_fps_statistics()

static void video_driver_monitor_compute_fps_statistics ( void  )
static

video_driver_monitor_compute_fps_statistics:

Computes monitor FPS statistics.

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

◆ video_driver_monitor_reset()

void video_driver_monitor_reset ( void  )
Here is the caller graph for this function:

◆ video_driver_owns_driver()

bool video_driver_owns_driver ( void  )
Here is the caller graph for this function:

◆ video_driver_pixel_converter_free()

static void video_driver_pixel_converter_free ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_pixel_converter_init()

static bool video_driver_pixel_converter_init ( unsigned  size)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_read_frame_raw()

void* video_driver_read_frame_raw ( unsigned *  width,
unsigned *  height,
size_t *  pitch 
)
Here is the caller graph for this function:

◆ video_driver_read_viewport()

bool video_driver_read_viewport ( uint8_t buffer,
bool  is_idle 
)
Here is the caller graph for this function:

◆ video_driver_reinit()

void video_driver_reinit ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_reset_custom_viewport()

void video_driver_reset_custom_viewport ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_save_settings()

void video_driver_save_settings ( config_file_t conf)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_set_active()

void video_driver_set_active ( void  )
Here is the caller graph for this function:

◆ video_driver_set_aspect_ratio()

void video_driver_set_aspect_ratio ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_set_aspect_ratio_value()

void video_driver_set_aspect_ratio_value ( float  value)
Here is the caller graph for this function:

◆ video_driver_set_cached_frame_ptr()

void video_driver_set_cached_frame_ptr ( const void data)
Here is the caller graph for this function:

◆ video_driver_set_context_negotiation_interface()

void video_driver_set_context_negotiation_interface ( const struct retro_hw_render_context_negotiation_interface iface)
Here is the caller graph for this function:

◆ video_driver_set_coords()

void video_driver_set_coords ( video_shader_ctx_coords_t coords)
Here is the caller graph for this function:

◆ video_driver_set_filtering()

void video_driver_set_filtering ( unsigned  index,
bool  smooth 
)
Here is the caller graph for this function:

◆ video_driver_set_mvp()

void video_driver_set_mvp ( video_shader_ctx_mvp_t mvp)
Here is the caller graph for this function:

◆ video_driver_set_nonblock_state()

void video_driver_set_nonblock_state ( bool  toggle)
Here is the caller graph for this function:

◆ video_driver_set_osd_msg()

void video_driver_set_osd_msg ( const char *  msg,
const void data,
void font 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_set_own_driver()

void video_driver_set_own_driver ( void  )

◆ video_driver_set_pixel_format()

void video_driver_set_pixel_format ( enum retro_pixel_format  fmt)
Here is the caller graph for this function:

◆ video_driver_set_rgba()

void video_driver_set_rgba ( void  )
Here is the caller graph for this function:

◆ video_driver_set_rotation()

bool video_driver_set_rotation ( unsigned  rotation)
Here is the caller graph for this function:

◆ video_driver_set_shader()

bool video_driver_set_shader ( enum rarch_shader_type  type,
const char *  path 
)
Here is the caller graph for this function:

◆ video_driver_set_size()

void video_driver_set_size ( unsigned *  width,
unsigned *  height 
)
Here is the caller graph for this function:

◆ video_driver_set_stub_frame()

void video_driver_set_stub_frame ( void  )
Here is the caller graph for this function:

◆ video_driver_set_texture_enable()

void video_driver_set_texture_enable ( bool  enable,
bool  fullscreen 
)
Here is the caller graph for this function:

◆ video_driver_set_texture_frame()

void video_driver_set_texture_frame ( const void frame,
bool  rgb32,
unsigned  width,
unsigned  height,
float  alpha 
)
Here is the caller graph for this function:

◆ video_driver_set_threaded()

void video_driver_set_threaded ( bool  val)
Here is the caller graph for this function:

◆ video_driver_set_title_buf()

void video_driver_set_title_buf ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_set_video_cache_context_ack()

void video_driver_set_video_cache_context_ack ( void  )
Here is the caller graph for this function:

◆ video_driver_set_video_mode()

bool video_driver_set_video_mode ( unsigned  width,
unsigned  height,
bool  fullscreen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_set_viewport()

bool video_driver_set_viewport ( unsigned  width,
unsigned  height,
bool  force_fullscreen,
bool  allow_rotate 
)
Here is the caller graph for this function:

◆ video_driver_set_viewport_config()

void video_driver_set_viewport_config ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_set_viewport_core()

void video_driver_set_viewport_core ( void  )
Here is the caller graph for this function:

◆ video_driver_set_viewport_square_pixel()

void video_driver_set_viewport_square_pixel ( void  )
Here is the caller graph for this function:

◆ video_driver_show_mouse()

void video_driver_show_mouse ( void  )
Here is the caller graph for this function:

◆ video_driver_started_fullscreen()

bool video_driver_started_fullscreen ( void  )
Here is the caller graph for this function:

◆ video_driver_supports_read_frame_raw()

bool video_driver_supports_read_frame_raw ( void  )
Here is the caller graph for this function:

◆ video_driver_supports_recording()

bool video_driver_supports_recording ( void  )
Here is the call graph for this function:

◆ video_driver_supports_rgba()

bool video_driver_supports_rgba ( void  )
Here is the caller graph for this function:

◆ video_driver_supports_viewport_read()

bool video_driver_supports_viewport_read ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_texture_load()

bool video_driver_texture_load ( void data,
enum texture_filter_type  filter_type,
uintptr_t id 
)
Here is the caller graph for this function:

◆ video_driver_texture_unload()

bool video_driver_texture_unload ( uintptr_t id)
Here is the caller graph for this function:

◆ video_driver_translate_coord_viewport()

bool video_driver_translate_coord_viewport ( struct video_viewport vp,
int  mouse_x,
int  mouse_y,
int16_t res_x,
int16_t res_y,
int16_t res_screen_x,
int16_t res_screen_y 
)

video_driver_translate_coord_viewport: : Pointer X coordinate. : Pointer Y coordinate. : Scaled X coordinate. : Scaled Y coordinate. : Scaled screen X coordinate. : Scaled screen Y coordinate.

Translates pointer [X,Y] coordinates into scaled screen coordinates based on viewport info.

Returns: true (1) if successful, false if video driver doesn't support viewport info.

◆ video_driver_unset_active()

void video_driver_unset_active ( void  )
Here is the caller graph for this function:

◆ video_driver_unset_own_driver()

void video_driver_unset_own_driver ( void  )
Here is the caller graph for this function:

◆ video_driver_unset_rgba()

void video_driver_unset_rgba ( void  )
Here is the caller graph for this function:

◆ video_driver_unset_stub_frame()

void video_driver_unset_stub_frame ( void  )
Here is the caller graph for this function:

◆ video_driver_unset_video_cache_context_ack()

void video_driver_unset_video_cache_context_ack ( void  )
Here is the caller graph for this function:

◆ video_driver_update_viewport()

void video_driver_update_viewport ( struct video_viewport vp,
bool  force_full,
bool  keep_aspect 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_driver_window_get()

uintptr_t video_driver_window_get ( void  )
Here is the caller graph for this function:

◆ video_driver_window_set()

void video_driver_window_set ( uintptr_t  idx)
Here is the caller graph for this function:

◆ video_monitor_fps_statistics()

bool video_monitor_fps_statistics ( double *  refresh_rate,
double *  deviation,
unsigned *  sample_points 
)

video_monitor_fps_statistics : Monitor refresh rate. : Deviation from measured refresh rate. : Amount of sampled points.

Gets the monitor FPS statistics based on the current runtime.

Returns: true (1) on success. false (0) if: a) threaded video mode is enabled b) less than 2 frame time samples. c) FPS monitor enable is off.

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

◆ video_monitor_set_refresh_rate()

void video_monitor_set_refresh_rate ( float  hz)

video_monitor_set_refresh_rate: : New refresh rate for monitor.

Sets monitor refresh rate to new value.

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

◆ video_pixel_get_alignment()

unsigned video_pixel_get_alignment ( unsigned  pitch)
Here is the caller graph for this function:

◆ video_shader_driver_compile_program()

bool video_shader_driver_compile_program ( struct shader_program_info program_info)

◆ video_shader_driver_deinit()

bool video_shader_driver_deinit ( void  )
Here is the caller graph for this function:

◆ video_shader_driver_direct_get_current_shader()

bool video_shader_driver_direct_get_current_shader ( video_shader_ctx_t shader)
Here is the caller graph for this function:

◆ video_shader_driver_filter_type()

bool video_shader_driver_filter_type ( video_shader_ctx_filter_t filter)
Here is the caller graph for this function:

◆ video_shader_driver_filter_type_null()

static bool video_shader_driver_filter_type_null ( void data,
unsigned  idx,
bool smooth 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_get_current_shader()

bool video_shader_driver_get_current_shader ( video_shader_ctx_t shader)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_get_current_shader_null()

static struct video_shader* video_shader_driver_get_current_shader_null ( void data)
static
Here is the caller graph for this function:

◆ video_shader_driver_get_feedback_pass()

bool video_shader_driver_get_feedback_pass ( unsigned *  data)
Here is the caller graph for this function:

◆ video_shader_driver_get_feedback_pass_null()

static bool video_shader_driver_get_feedback_pass_null ( void data,
unsigned *  idx 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_get_ident()

bool video_shader_driver_get_ident ( video_shader_ctx_ident_t ident)
Here is the caller graph for this function:

◆ video_shader_driver_get_prev_textures()

bool video_shader_driver_get_prev_textures ( video_shader_ctx_texture_t texture)
Here is the caller graph for this function:

◆ video_shader_driver_info()

bool video_shader_driver_info ( video_shader_ctx_info_t shader_info)
Here is the caller graph for this function:

◆ video_shader_driver_init()

bool video_shader_driver_init ( video_shader_ctx_init_t init)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_init_first()

bool video_shader_driver_init_first ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_mipmap_input()

bool video_shader_driver_mipmap_input ( unsigned *  index)
Here is the caller graph for this function:

◆ video_shader_driver_mipmap_input_null()

static bool video_shader_driver_mipmap_input_null ( void data,
unsigned  idx 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_num_null()

static unsigned video_shader_driver_num_null ( void data)
static
Here is the caller graph for this function:

◆ video_shader_driver_reset_to_defaults()

static void video_shader_driver_reset_to_defaults ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_scale()

bool video_shader_driver_scale ( video_shader_ctx_scale_t scaler)
Here is the caller graph for this function:

◆ video_shader_driver_scale_null()

static void video_shader_driver_scale_null ( void data,
unsigned  idx,
struct gfx_fbo_scale scale 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_set_parameter()

void video_shader_driver_set_parameter ( struct uniform_info param)
Here is the caller graph for this function:

◆ video_shader_driver_set_parameters()

void video_shader_driver_set_parameters ( video_shader_ctx_params_t params)
Here is the caller graph for this function:

◆ video_shader_driver_set_params_null()

static void video_shader_driver_set_params_null ( void data,
void shader_data 
)
static
Here is the caller graph for this function:

◆ video_shader_driver_use()

void video_shader_driver_use ( video_shader_ctx_info_t shader_info)
Here is the caller graph for this function:

◆ video_shader_driver_use_null()

static void video_shader_driver_use_null ( void data,
void shader_data,
unsigned  idx,
bool  set_active 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_shader_driver_wrap_type()

bool video_shader_driver_wrap_type ( video_shader_ctx_wrap_t wrap)
Here is the caller graph for this function:

◆ video_shader_driver_wrap_type_null()

static enum gfx_wrap_type video_shader_driver_wrap_type_null ( void data,
unsigned  index 
)
static
Here is the caller graph for this function:

◆ video_shader_set_backend()

static const shader_backend_t* video_shader_set_backend ( enum rarch_shader_type  type)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_viewport_get_custom()

struct video_viewport* video_viewport_get_custom ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_viewport_get_scaled_integer()

void video_viewport_get_scaled_integer ( struct video_viewport vp,
unsigned  width,
unsigned  height,
float  aspect_ratio,
bool  keep_aspect 
)

video_viewport_get_scaled_integer: : Viewport handle : Width. : Height. : Aspect ratio (in float). : Preserve aspect ratio?

Gets viewport scaling dimensions based on scaled integer aspect ratio.

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

◆ video_viewport_get_system_av_info()

struct retro_system_av_info* video_viewport_get_system_av_info ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ aspectratio_lut

struct aspect_ratio_elem aspectratio_lut[ASPECT_RATIO_END]
Initial value:
= {
{ "4:3", 1.3333f },
{ "16:9", 1.7778f },
{ "16:10", 1.6f },
{ "16:15", 16.0f / 15.0f },
{ "21:9", 21.0f / 9.0f },
{ "1:1", 1.0f },
{ "2:1", 2.0f },
{ "3:2", 1.5f },
{ "3:4", 0.75f },
{ "4:1", 4.0f },
{ "9:16", 0.5625f },
{ "5:4", 1.25f },
{ "6:5", 1.2f },
{ "7:9", 0.7777f },
{ "8:3", 2.6666f },
{ "8:7", 1.1428f },
{ "19:12", 1.5833f },
{ "19:14", 1.3571f },
{ "30:17", 1.7647f },
{ "32:9", 3.5555f },
{ "Config", 0.0f },
{ "Square pixel", 1.0f },
{ "Core provided", 1.0f },
{ "Custom", 0.0f }
}

◆ current_shader

shader_backend_t* current_shader = NULL
static

◆ current_shader_data

void* current_shader_data = NULL
static

◆ current_video

video_driver_t* current_video = NULL
static

◆ current_video_context

gfx_ctx_driver_t current_video_context
static

◆ deferred_flag_data

gfx_ctx_flags_t deferred_flag_data = {0}
static

◆ deferred_video_context_driver_set_flags

bool deferred_video_context_driver_set_flags = false
static

dynamic.c:dynamic_request_hw_context will try to set flag data when the context is in the middle of being rebuilt; in these cases we will save flag data and set this to true. When the context is reinit, it checks this, reads from deferred_flag_data and cleans it.

TODO - Dirty hack, fix it better

◆ frame_bak

video_driver_frame_t frame_bak = NULL
static

◆ frame_cache_data

const void* frame_cache_data = NULL
static

◆ frame_cache_height

unsigned frame_cache_height = 0
static

◆ frame_cache_pitch

size_t frame_cache_pitch = 0
static

◆ frame_cache_width

unsigned frame_cache_width = 0
static

◆ gfx_ctx_drivers

const gfx_ctx_driver_t* gfx_ctx_drivers[]
static

◆ hw_render

struct retro_hw_render_callback hw_render
static

◆ hw_render_context_negotiation

const struct retro_hw_render_context_negotiation_interface* hw_render_context_negotiation = NULL
static

◆ shader_ctx_drivers

const shader_backend_t* shader_ctx_drivers[]
static
Initial value:
= {
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
const shader_backend_t shader_null_backend
Definition: shader_null.c:78

◆ video_context_data

void* video_context_data = NULL
static

◆ video_driver_active

bool video_driver_active = false
static

◆ video_driver_aspect_ratio

float video_driver_aspect_ratio = 0.0f
static

◆ video_driver_av_info

struct retro_system_av_info video_driver_av_info
static

◆ video_driver_cache_context

bool video_driver_cache_context = false
static

◆ video_driver_cache_context_ack

bool video_driver_cache_context_ack = false
static

◆ video_driver_cb_has_focus

bool(* video_driver_cb_has_focus) (void)

◆ video_driver_cb_shader_set_mvp

bool(* video_driver_cb_shader_set_mvp) (void *data, void *shader_data, const void *mat_data)
static

◆ video_driver_cb_shader_use

void(* video_driver_cb_shader_use) (void *data, void *shader_data, unsigned index, bool set_active)
static

◆ video_driver_core_hz

float video_driver_core_hz = 0.0f
static

◆ video_driver_crt_switching_active

bool video_driver_crt_switching_active = false
static

◆ video_driver_data

void* video_driver_data = NULL
static

◆ video_driver_data_own

bool video_driver_data_own = false
static

◆ video_driver_display

uintptr_t video_driver_display = 0
static

◆ video_driver_display_type

enum rarch_display_type video_driver_display_type = RARCH_DISPLAY_NONE
static

◆ video_driver_frame_count

uint64_t video_driver_frame_count = 0
static

◆ video_driver_frame_time_count

uint64_t video_driver_frame_time_count = 0
static

◆ video_driver_frame_time_samples

retro_time_t video_driver_frame_time_samples[MEASURE_FRAME_TIME_SAMPLES_COUNT]
static

◆ video_driver_height

unsigned video_driver_height = 0
static

◆ video_driver_pix_fmt

enum retro_pixel_format video_driver_pix_fmt = RETRO_PIXEL_FORMAT_0RGB1555
static

◆ video_driver_poke

const video_poke_interface_t* video_driver_poke = NULL
static

◆ video_driver_record_gpu_buffer

uint8_t* video_driver_record_gpu_buffer = NULL
static

◆ video_driver_scaler_ptr

video_pixel_scaler_t* video_driver_scaler_ptr = NULL
static

◆ video_driver_state_buffer

void* video_driver_state_buffer = NULL
static

◆ video_driver_state_filter

rarch_softfilter_t* video_driver_state_filter = NULL
static

◆ video_driver_state_out_bpp

unsigned video_driver_state_out_bpp = 0
static

◆ video_driver_state_out_rgb32

bool video_driver_state_out_rgb32 = false
static

◆ video_driver_state_scale

unsigned video_driver_state_scale = 0
static

◆ video_driver_threaded

bool video_driver_threaded = false
static

◆ video_driver_title_buf

char video_driver_title_buf[64] = {0}
static

◆ video_driver_use_rgba

bool video_driver_use_rgba = false
static

◆ video_driver_width

unsigned video_driver_width = 0
static

◆ video_driver_window

uintptr_t video_driver_window = 0
static

◆ video_driver_window_title

char video_driver_window_title[512] = {0}
static

◆ video_driver_window_title_update

bool video_driver_window_title_update = true
static

◆ video_drivers

const video_driver_t* video_drivers[]
static

◆ video_started_fullscreen

bool video_started_fullscreen = false
static