mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
Cleanups
This commit is contained in:
parent
bd87e7fc17
commit
90266a2a6a
19
retroarch.c
19
retroarch.c
@ -2686,10 +2686,7 @@ static void handle_translation_cb(
|
|||||||
uint8_t* raw_output_data = NULL;
|
uint8_t* raw_output_data = NULL;
|
||||||
char* raw_bmp_data = NULL;
|
char* raw_bmp_data = NULL;
|
||||||
struct scaler_ctx* scaler = NULL;
|
struct scaler_ctx* scaler = NULL;
|
||||||
bool is_paused = false;
|
bool is_paused = runloop_paused;
|
||||||
bool is_idle = false;
|
|
||||||
bool is_slowmotion = false;
|
|
||||||
bool is_perfcnt_enable = false;
|
|
||||||
http_transfer_data_t *data = (http_transfer_data_t*)task_data;
|
http_transfer_data_t *data = (http_transfer_data_t*)task_data;
|
||||||
|
|
||||||
const char ch = '\"';
|
const char ch = '\"';
|
||||||
@ -2709,9 +2706,6 @@ static void handle_translation_cb(
|
|||||||
char* found_string = NULL;
|
char* found_string = NULL;
|
||||||
int curr_state = 0;
|
int curr_state = 0;
|
||||||
|
|
||||||
runloop_get_status(&is_paused, &is_idle, &is_slowmotion,
|
|
||||||
&is_perfcnt_enable);
|
|
||||||
|
|
||||||
if (!is_paused && settings->uints.ai_service_mode != 1)
|
if (!is_paused && settings->uints.ai_service_mode != 1)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
@ -2825,7 +2819,7 @@ static void handle_translation_cb(
|
|||||||
times the byte depth.
|
times the byte depth.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (video_driver_get_pixel_format() == RETRO_PIXEL_FORMAT_XRGB8888)
|
if (video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888)
|
||||||
{
|
{
|
||||||
raw_output_data = (uint8_t*)malloc(width * height * 4 * sizeof(uint8_t));
|
raw_output_data = (uint8_t*)malloc(width * height * 4 * sizeof(uint8_t));
|
||||||
scaler->out_fmt = SCALER_FMT_ARGB8888;
|
scaler->out_fmt = SCALER_FMT_ARGB8888;
|
||||||
@ -2957,7 +2951,7 @@ static bool run_translation_service(void)
|
|||||||
uint8_t *bit24_image_prev = NULL;
|
uint8_t *bit24_image_prev = NULL;
|
||||||
|
|
||||||
settings_t *settings = configuration_settings;
|
settings_t *settings = configuration_settings;
|
||||||
enum retro_pixel_format pixel_format = video_driver_get_pixel_format();
|
enum retro_pixel_format pixel_format = video_driver_pix_fmt;
|
||||||
struct scaler_ctx *scaler = (struct scaler_ctx*)
|
struct scaler_ctx *scaler = (struct scaler_ctx*)
|
||||||
calloc(1, sizeof(struct scaler_ctx));
|
calloc(1, sizeof(struct scaler_ctx));
|
||||||
bool error = false;
|
bool error = false;
|
||||||
@ -3020,7 +3014,7 @@ static bool run_translation_service(void)
|
|||||||
if (!bit24_image)
|
if (!bit24_image)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
if (video_driver_get_pixel_format() == RETRO_PIXEL_FORMAT_XRGB8888)
|
if (video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888)
|
||||||
{
|
{
|
||||||
scaler->in_fmt = SCALER_FMT_ARGB8888;
|
scaler->in_fmt = SCALER_FMT_ARGB8888;
|
||||||
RARCH_LOG("IN FORMAT ARGB8888\n");
|
RARCH_LOG("IN FORMAT ARGB8888\n");
|
||||||
@ -9678,8 +9672,9 @@ static bool recording_init(void)
|
|||||||
params.filename = output;
|
params.filename = output;
|
||||||
params.fps = av_info->timing.fps;
|
params.fps = av_info->timing.fps;
|
||||||
params.samplerate = av_info->timing.sample_rate;
|
params.samplerate = av_info->timing.sample_rate;
|
||||||
params.pix_fmt = (video_driver_get_pixel_format() == RETRO_PIXEL_FORMAT_XRGB8888) ?
|
params.pix_fmt = (video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888)
|
||||||
FFEMU_PIX_ARGB8888 : FFEMU_PIX_RGB565;
|
? FFEMU_PIX_ARGB8888
|
||||||
|
: FFEMU_PIX_RGB565;
|
||||||
params.config = NULL;
|
params.config = NULL;
|
||||||
|
|
||||||
if (!string_is_empty(global->record.config))
|
if (!string_is_empty(global->record.config))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user