mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 06:40:48 +00:00
[record] hookup quality
This commit is contained in:
parent
bcb960d248
commit
554ad5a494
@ -651,6 +651,7 @@ static bool ffmpeg_init_config_common(struct ff_config_param *params, unsigned p
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
static bool ffmpeg_init_config_recording(struct ff_config_param *params)
|
static bool ffmpeg_init_config_recording(struct ff_config_param *params)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -667,6 +668,7 @@ static bool ffmpeg_init_config_recording(struct ff_config_param *params)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
static bool ffmpeg_init_config(struct ff_config_param *params,
|
static bool ffmpeg_init_config(struct ff_config_param *params,
|
||||||
const char *config)
|
const char *config)
|
||||||
@ -924,13 +926,13 @@ static void *ffmpeg_new(const struct record_params *params)
|
|||||||
|
|
||||||
handle->params = *params;
|
handle->params = *params;
|
||||||
|
|
||||||
if (params->config_type == RECORD_CONFIG_TYPE_RECORDING_CUSTOM)
|
if (params->preset == RECORD_CONFIG_TYPE_RECORDING_CUSTOM)
|
||||||
{
|
{
|
||||||
if (!ffmpeg_init_config(&handle->config, params->config))
|
if (!ffmpeg_init_config(&handle->config, params->config))
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ffmpeg_init_config_common(&handle->config, params->config_type);
|
ffmpeg_init_config_common(&handle->config, params->preset);
|
||||||
|
|
||||||
if (!ffmpeg_init_muxer_pre(handle))
|
if (!ffmpeg_init_muxer_pre(handle))
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -391,9 +391,15 @@ bool recording_init(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (streaming_is_enabled())
|
if (streaming_is_enabled())
|
||||||
|
{
|
||||||
params.config = settings->paths.path_stream_config;
|
params.config = settings->paths.path_stream_config;
|
||||||
|
params.preset = settings->uints.video_stream_quality;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
params.config = settings->paths.path_record_config;
|
params.config = settings->paths.path_record_config;
|
||||||
|
params.preset = settings->uints.video_record_quality;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (video_driver_supports_recording())
|
if (video_driver_supports_recording())
|
||||||
|
@ -69,7 +69,7 @@ struct record_params
|
|||||||
/* Audio channels. */
|
/* Audio channels. */
|
||||||
unsigned channels;
|
unsigned channels;
|
||||||
|
|
||||||
enum record_config_type config_type;
|
enum record_config_type preset;
|
||||||
|
|
||||||
/* Input pixel format. */
|
/* Input pixel format. */
|
||||||
enum ffemu_pix_format pix_fmt;
|
enum ffemu_pix_format pix_fmt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user