RetroArch
Classes | Macros | Typedefs | Functions
task_screenshot.c File Reference
#include <stdio.h>
#include <stddef.h>
#include <time.h>
#include <boolean.h>
#include <stdint.h>
#include <string.h>
#include <file/file_path.h>
#include <compat/strl.h>
#include <string/stdstring.h>
#include <gfx/scaler/scaler.h>
#include <gfx/video_frame.h>
#include "../defaults.h"
#include "../command.h"
#include "../configuration.h"
#include "../retroarch.h"
#include "../paths.h"
#include "../msg_hash.h"
#include "../gfx/video_driver.h"
#include "tasks_internal.h"
Include dependency graph for task_screenshot.c:

Classes

struct  screenshot_task_state
 

Macros

#define IMG_EXT   "bmp"
 

Typedefs

typedef struct screenshot_task_state screenshot_task_state_t
 

Functions

static bool screenshot_dump_direct (screenshot_task_state_t *state)
 
static void task_screenshot_handler (retro_task_t *task)
 
static bool screenshot_dump (const char *name_base, const void *frame, unsigned width, unsigned height, int pitch, bool bgr24, void *userbuf, bool savestate, bool is_idle, bool is_paused, bool fullpath, bool use_thread)
 
static bool take_screenshot_viewport (const char *name_base, bool savestate, bool is_idle, bool is_paused, bool fullpath, bool use_thread)
 
static bool take_screenshot_raw (const char *name_base, void *userbuf, bool savestate, bool is_idle, bool is_paused, bool fullpath, bool use_thread)
 
static bool take_screenshot_choice (const char *name_base, bool savestate, bool is_paused, bool is_idle, bool has_valid_framebuffer, bool fullpath, bool use_thread)
 
bool take_screenshot (const char *name_base, bool silence, bool has_valid_framebuffer, bool fullpath, bool use_thread)
 

Macro Definition Documentation

◆ IMG_EXT

#define IMG_EXT   "bmp"

Typedef Documentation

◆ screenshot_task_state_t

Function Documentation

◆ screenshot_dump()

static bool screenshot_dump ( const char *  name_base,
const void frame,
unsigned  width,
unsigned  height,
int  pitch,
bool  bgr24,
void userbuf,
bool  savestate,
bool  is_idle,
bool  is_paused,
bool  fullpath,
bool  use_thread 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ screenshot_dump_direct()

static bool screenshot_dump_direct ( screenshot_task_state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ take_screenshot()

bool take_screenshot ( const char *  name_base,
bool  silence,
bool  has_valid_framebuffer,
bool  fullpath,
bool  use_thread 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ take_screenshot_choice()

static bool take_screenshot_choice ( const char *  name_base,
bool  savestate,
bool  is_paused,
bool  is_idle,
bool  has_valid_framebuffer,
bool  fullpath,
bool  use_thread 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ take_screenshot_raw()

static bool take_screenshot_raw ( const char *  name_base,
void userbuf,
bool  savestate,
bool  is_idle,
bool  is_paused,
bool  fullpath,
bool  use_thread 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ take_screenshot_viewport()

static bool take_screenshot_viewport ( const char *  name_base,
bool  savestate,
bool  is_idle,
bool  is_paused,
bool  fullpath,
bool  use_thread 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_screenshot_handler()

static void task_screenshot_handler ( retro_task_t task)
static

task_screenshot_handler: : the task being worked on

Saves a screenshot to disk.

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