RetroArch
Functions | Variables
caca_gfx.c File Reference
#include <caca.h>
#include <retro_miscellaneous.h>
#include "../common/caca_common.h"
#include "../font_driver.h"
#include "../../driver.h"
#include "../../verbosity.h"
Include dependency graph for caca_gfx.c:

Functions

static void caca_gfx_free (void *data)
 
static void caca_gfx_create (void)
 
static voidcaca_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static bool caca_gfx_frame (void *data, const void *frame, unsigned frame_width, unsigned frame_height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
 
static void caca_gfx_set_nonblock_state (void *data, bool toggle)
 
static bool caca_gfx_alive (void *data)
 
static bool caca_gfx_focus (void *data)
 
static bool caca_gfx_suppress_screensaver (void *data, bool enable)
 
static bool caca_gfx_has_windowed (void *data)
 
static bool caca_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void caca_gfx_set_rotation (void *data, unsigned rotation)
 
static void caca_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static bool caca_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static void caca_set_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void caca_set_osd_msg (void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
 
static void caca_gfx_get_poke_interface (void *data, const video_poke_interface_t **iface)
 
void caca_gfx_set_viewport (void *data, unsigned viewport_width, unsigned viewport_height, bool force_full, bool allow_rotate)
 

Variables

static caca_canvas_tcaca_cv = NULL
 
static caca_dither_tcaca_dither = NULL
 
static caca_display_tcaca_display = NULL
 
static unsigned char * caca_menu_frame = NULL
 
static unsigned caca_menu_width = 0
 
static unsigned caca_menu_height = 0
 
static unsigned caca_menu_pitch = 0
 
static unsigned caca_video_width = 0
 
static unsigned caca_video_height = 0
 
static unsigned caca_video_pitch = 0
 
static bool caca_rgb32 = false
 
static const video_poke_interface_t caca_poke_interface
 
video_driver_t video_caca
 

Function Documentation

◆ caca_gfx_alive()

static bool caca_gfx_alive ( void data)
static
Here is the call graph for this function:

◆ caca_gfx_create()

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

◆ caca_gfx_focus()

static bool caca_gfx_focus ( void data)
static
Here is the call graph for this function:

◆ caca_gfx_frame()

static bool caca_gfx_frame ( void data,
const void frame,
unsigned  frame_width,
unsigned  frame_height,
uint64_t  frame_count,
unsigned  pitch,
const char *  msg,
video_frame_info_t video_info 
)
static
Here is the call graph for this function:

◆ caca_gfx_free()

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

◆ caca_gfx_get_poke_interface()

static void caca_gfx_get_poke_interface ( void data,
const video_poke_interface_t **  iface 
)
static
Here is the call graph for this function:

◆ caca_gfx_has_windowed()

static bool caca_gfx_has_windowed ( void data)
static
Here is the call graph for this function:

◆ caca_gfx_init()

static void* caca_gfx_init ( const video_info_t video,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ caca_gfx_read_viewport()

static bool caca_gfx_read_viewport ( void data,
uint8_t buffer,
bool  is_idle 
)
static
Here is the call graph for this function:

◆ caca_gfx_set_nonblock_state()

static void caca_gfx_set_nonblock_state ( void data,
bool  toggle 
)
static
Here is the call graph for this function:

◆ caca_gfx_set_rotation()

static void caca_gfx_set_rotation ( void data,
unsigned  rotation 
)
static
Here is the call graph for this function:

◆ caca_gfx_set_shader()

static bool caca_gfx_set_shader ( void data,
enum rarch_shader_type  type,
const char *  path 
)
static
Here is the call graph for this function:

◆ caca_gfx_set_viewport()

void caca_gfx_set_viewport ( void data,
unsigned  viewport_width,
unsigned  viewport_height,
bool  force_full,
bool  allow_rotate 
)

◆ caca_gfx_suppress_screensaver()

static bool caca_gfx_suppress_screensaver ( void data,
bool  enable 
)
static
Here is the call graph for this function:

◆ caca_gfx_viewport_info()

static void caca_gfx_viewport_info ( void data,
struct video_viewport vp 
)
static
Here is the call graph for this function:

◆ caca_set_osd_msg()

static void caca_set_osd_msg ( void data,
video_frame_info_t video_info,
const char *  msg,
const void params,
void font 
)
static
Here is the call graph for this function:

◆ caca_set_texture_frame()

static void caca_set_texture_frame ( void data,
const void frame,
bool  rgb32,
unsigned  width,
unsigned  height,
float  alpha 
)
static
Here is the call graph for this function:

Variable Documentation

◆ caca_cv

caca_canvas_t* caca_cv = NULL
static

◆ caca_display

caca_display_t* caca_display = NULL
static

◆ caca_dither

caca_dither_t* caca_dither = NULL
static

◆ caca_menu_frame

unsigned char* caca_menu_frame = NULL
static

◆ caca_menu_height

unsigned caca_menu_height = 0
static

◆ caca_menu_pitch

unsigned caca_menu_pitch = 0
static

◆ caca_menu_width

unsigned caca_menu_width = 0
static

◆ caca_poke_interface

const video_poke_interface_t caca_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void caca_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: caca_gfx.c:273
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void caca_set_osd_msg(void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
Definition: caca_gfx.c:299

◆ caca_rgb32

bool caca_rgb32 = false
static

◆ caca_video_height

unsigned caca_video_height = 0
static

◆ caca_video_pitch

unsigned caca_video_pitch = 0
static

◆ caca_video_width

unsigned caca_video_width = 0
static

◆ video_caca

video_driver_t video_caca
Initial value:
= {
"caca",
NULL,
}
static bool caca_gfx_frame(void *data, const void *frame, unsigned frame_width, unsigned frame_height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
Definition: caca_gfx.c:103
static void caca_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: caca_gfx.c:333
static bool caca_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: caca_gfx.c:265
void caca_gfx_set_viewport(void *data, unsigned viewport_width, unsigned viewport_height, bool force_full, bool allow_rotate)
Definition: caca_gfx.c:340
static bool caca_gfx_alive(void *data)
Definition: caca_gfx.c:192
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void caca_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: caca_gfx.c:258
static void caca_gfx_set_rotation(void *data, unsigned rotation)
Definition: caca_gfx.c:251
static void caca_gfx_free(void *data)
Definition: caca_gfx.c:218
static bool caca_gfx_has_windowed(void *data)
Definition: caca_gfx.c:212
static void caca_gfx_set_nonblock_state(void *data, bool toggle)
Definition: caca_gfx.c:186
static bool caca_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: caca_gfx.c:241
static bool caca_gfx_focus(void *data)
Definition: caca_gfx.c:199
static bool caca_gfx_suppress_screensaver(void *data, bool enable)
Definition: caca_gfx.c:205
static void * caca_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: caca_gfx.c:68