RetroArch
Functions | Variables
record_driver.c File Reference
#include <string.h>
#include <file/file_path.h>
#include <compat/strl.h>
#include <string/stdstring.h>
#include <retro_math.h>
#include "record_driver.h"
#include "../command.h"
#include "../configuration.h"
#include "../driver.h"
#include "../gfx/video_driver.h"
#include "../retroarch.h"
#include "../verbosity.h"
#include "../msg_hash.h"
#include "../list_special.h"
#include "../paths.h"
Include dependency graph for record_driver.c:

Functions

const char * record_driver_find_ident (int idx)
 
const voidrecord_driver_find_handle (int idx)
 
const char * config_get_record_driver_options (void)
 
void find_record_driver (void)
 
const record_driver_tffemu_find_backend (const char *ident)
 
bool record_driver_init_first (const record_driver_t **backend, void **data, const struct record_params *params)
 
void recording_dump_frame (const void *data, unsigned width, unsigned height, size_t pitch, bool is_idle)
 
bool recording_deinit (void)
 
bool recording_is_enabled (void)
 
void recording_set_state (bool state)
 
bool streaming_is_enabled (void)
 
void streaming_set_state (bool state)
 
void recording_push_audio (const int16_t *data, size_t samples)
 
bool recording_init (void)
 
voidrecording_driver_get_data_ptr (void)
 
void recording_driver_clear_data_ptr (void)
 
void recording_driver_set_data_ptr (void *data)
 
unsigned * recording_driver_get_width (void)
 
unsigned * recording_driver_get_height (void)
 
void recording_driver_update_streaming_url (void)
 
void recording_driver_free_state (void)
 

Variables

static const record_driver_trecord_drivers []
 
unsigned recording_width = 0
 
unsigned recording_height = 0
 
size_t recording_gpu_width = 0
 
size_t recording_gpu_height = 0
 
static bool recording_enable = false
 
static bool streaming_enable = false
 
static const record_driver_trecording_driver = NULL
 
voidrecording_data = NULL
 

Function Documentation

◆ config_get_record_driver_options()

const char* config_get_record_driver_options ( void  )

config_get_record_driver_options:

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

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

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

◆ ffemu_find_backend()

const record_driver_t* ffemu_find_backend ( const char *  ident)

ffemu_find_backend: : Identifier of driver to find.

Finds a recording driver with the name .

Returns: recording driver handle if successful, otherwise NULL.

Here is the call graph for this function:

◆ find_record_driver()

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

◆ record_driver_find_handle()

const void* record_driver_find_handle ( int  idx)

record_driver_find_handle: : index of driver to get handle to.

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

Here is the caller graph for this function:

◆ record_driver_find_ident()

const char* record_driver_find_ident ( int  idx)

record_driver_find_ident: : index of driver to get handle to.

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

Here is the caller graph for this function:

◆ record_driver_init_first()

bool record_driver_init_first ( const record_driver_t **  backend,
void **  data,
const struct record_params params 
)

gfx_ctx_init_first: : Recording backend handle. : Recording data handle. : Recording info parameters.

Finds first suitable recording context driver and initializes.

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

◆ recording_deinit()

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

◆ recording_driver_clear_data_ptr()

void recording_driver_clear_data_ptr ( void  )

◆ recording_driver_free_state()

void recording_driver_free_state ( void  )

◆ recording_driver_get_data_ptr()

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

◆ recording_driver_get_height()

unsigned* recording_driver_get_height ( void  )
Here is the caller graph for this function:

◆ recording_driver_get_width()

unsigned* recording_driver_get_width ( void  )
Here is the caller graph for this function:

◆ recording_driver_set_data_ptr()

void recording_driver_set_data_ptr ( void data)

◆ recording_driver_update_streaming_url()

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

◆ recording_dump_frame()

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

◆ recording_init()

bool recording_init ( void  )

recording_init:

Initializes recording.

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

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

◆ recording_is_enabled()

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

◆ recording_push_audio()

void recording_push_audio ( const int16_t data,
size_t  samples 
)
Here is the caller graph for this function:

◆ recording_set_state()

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

◆ streaming_is_enabled()

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

◆ streaming_set_state()

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

Variable Documentation

◆ record_drivers

const record_driver_t* record_drivers[]
static
Initial value:
= {
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
const record_driver_t record_null
Definition: record_null.c:56

◆ recording_data

void* recording_data = NULL

◆ recording_driver

const record_driver_t* recording_driver = NULL
static

◆ recording_enable

bool recording_enable = false
static

◆ recording_gpu_height

size_t recording_gpu_height = 0

◆ recording_gpu_width

size_t recording_gpu_width = 0

◆ recording_height

unsigned recording_height = 0

◆ recording_width

unsigned recording_width = 0

◆ streaming_enable

bool streaming_enable = false
static