RetroArch
|
#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"
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) |
#define IMG_EXT "bmp" |
typedef struct screenshot_task_state screenshot_task_state_t |
|
static |
|
static |
bool take_screenshot | ( | const char * | name_base, |
bool | silence, | ||
bool | has_valid_framebuffer, | ||
bool | fullpath, | ||
bool | use_thread | ||
) |
|
static |
|
static |
|
static |
|
static |
task_screenshot_handler: : the task being worked on
Saves a screenshot to disk.