RetroArch
Classes | Typedefs | Enumerations | Functions | Variables
record_driver.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include <retro_common_api.h>
Include dependency graph for record_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  record_params
 
struct  record_video_data
 
struct  record_audio_data
 
struct  record_driver
 

Typedefs

typedef struct record_driver record_driver_t
 

Enumerations

enum  ffemu_pix_format { FFEMU_PIX_RGB565 = 0, FFEMU_PIX_BGR24, FFEMU_PIX_ARGB8888 }
 
enum  streaming_mode { STREAMING_MODE_TWITCH = 0, STREAMING_MODE_YOUTUBE, STREAMING_MODE_LOCAL, STREAMING_MODE_CUSTOM }
 
enum  record_config_type {
  RECORD_CONFIG_TYPE_RECORDING_CUSTOM = 0, RECORD_CONFIG_TYPE_RECORDING_LOW_QUALITY, RECORD_CONFIG_TYPE_RECORDING_MED_QUALITY, RECORD_CONFIG_TYPE_RECORDING_HIGH_QUALITY,
  RECORD_CONFIG_TYPE_RECORDING_LOSSLESS_QUALITY, RECORD_CONFIG_TYPE_RECORDING_WEBM_FAST, RECORD_CONFIG_TYPE_RECORDING_WEBM_HIGH_QUALITY, RECORD_CONFIG_TYPE_RECORDING_GIF,
  RECORD_CONFIG_TYPE_STREAMING_CUSTOM, RECORD_CONFIG_TYPE_STREAMING_LOW_QUALITY, RECORD_CONFIG_TYPE_STREAMING_MED_QUALITY, RECORD_CONFIG_TYPE_STREAMING_HIGH_QUALITY,
  RECORD_CONFIG_TYPE_STREAMING_NETPLAY
}
 

Functions

const char * config_get_record_driver_options (void)
 
const record_driver_tffemu_find_backend (const char *ident)
 
const voidrecord_driver_find_handle (int idx)
 
const char * record_driver_find_ident (int idx)
 
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)
 
void find_record_driver (void)
 
bool recording_init (void)
 
bool recording_is_enabled (void)
 
void recording_set_state (bool state)
 
void streaming_set_state (bool state)
 
void recording_push_audio (const int16_t *data, size_t samples)
 
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_free_state (void)
 
bool streaming_is_enabled (void)
 
void recording_driver_update_streaming_url (void)
 

Variables

const record_driver_t record_ffmpeg
 
const record_driver_t record_null
 
voidrecording_data
 

Typedef Documentation

◆ record_driver_t

Enumeration Type Documentation

◆ ffemu_pix_format

Enumerator
FFEMU_PIX_RGB565 
FFEMU_PIX_BGR24 
FFEMU_PIX_ARGB8888 

◆ record_config_type

Enumerator
RECORD_CONFIG_TYPE_RECORDING_CUSTOM 
RECORD_CONFIG_TYPE_RECORDING_LOW_QUALITY 
RECORD_CONFIG_TYPE_RECORDING_MED_QUALITY 
RECORD_CONFIG_TYPE_RECORDING_HIGH_QUALITY 
RECORD_CONFIG_TYPE_RECORDING_LOSSLESS_QUALITY 
RECORD_CONFIG_TYPE_RECORDING_WEBM_FAST 
RECORD_CONFIG_TYPE_RECORDING_WEBM_HIGH_QUALITY 
RECORD_CONFIG_TYPE_RECORDING_GIF 
RECORD_CONFIG_TYPE_STREAMING_CUSTOM 
RECORD_CONFIG_TYPE_STREAMING_LOW_QUALITY 
RECORD_CONFIG_TYPE_STREAMING_MED_QUALITY 
RECORD_CONFIG_TYPE_STREAMING_HIGH_QUALITY 
RECORD_CONFIG_TYPE_STREAMING_NETPLAY 

◆ streaming_mode

Enumerator
STREAMING_MODE_TWITCH 
STREAMING_MODE_YOUTUBE 
STREAMING_MODE_LOCAL 
STREAMING_MODE_CUSTOM 

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_ffmpeg

const record_driver_t record_ffmpeg

◆ record_null

const record_driver_t record_null

◆ recording_data

void* recording_data