mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
Add RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT
This commit is contained in:
parent
7b1f57b1cd
commit
ba4643a7c1
@ -1175,11 +1175,6 @@ bool video_driver_frame_filter(const void *data,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool video_driver_frame_filter_is_32bit(void)
|
||||
{
|
||||
return video_state.filter.out_rgb32;
|
||||
}
|
||||
|
||||
rarch_softfilter_t *video_driver_frame_filter_get_ptr(void)
|
||||
{
|
||||
return video_state.filter.filter;
|
||||
@ -1217,6 +1212,8 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
||||
if (video_state.filter.filter)
|
||||
return true;
|
||||
return false;
|
||||
case RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT:
|
||||
return video_state.filter.out_rgb32;
|
||||
case RARCH_DISPLAY_CTL_NONE:
|
||||
default:
|
||||
break;
|
||||
|
@ -222,6 +222,7 @@ enum rarch_display_ctl_state
|
||||
{
|
||||
RARCH_DISPLAY_CTL_NONE = 0,
|
||||
RARCH_DISPLAY_CTL_FRAME_FILTER_ALIVE,
|
||||
RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT,
|
||||
RARCH_DISPLAY_CTL_GET_FRAME_COUNT
|
||||
};
|
||||
|
||||
@ -361,8 +362,6 @@ bool video_driver_frame_filter(const void *data,
|
||||
unsigned *output_width, unsigned *output_height,
|
||||
unsigned *output_pitch);
|
||||
|
||||
bool video_driver_frame_filter_is_32bit(void);
|
||||
|
||||
rarch_softfilter_t *video_driver_frame_filter_get_ptr(void);
|
||||
|
||||
void *video_driver_frame_filter_get_buf_ptr(void);
|
||||
|
@ -369,11 +369,11 @@ bool recording_init(void)
|
||||
{
|
||||
unsigned max_width = 0;
|
||||
unsigned max_height = 0;
|
||||
|
||||
params.pix_fmt = FFEMU_PIX_RGB565;
|
||||
|
||||
if (video_driver_frame_filter_is_32bit())
|
||||
if (video_driver_ctl(RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT, NULL))
|
||||
params.pix_fmt = FFEMU_PIX_ARGB8888;
|
||||
else
|
||||
params.pix_fmt = FFEMU_PIX_RGB565;
|
||||
|
||||
rarch_softfilter_get_max_output_size(
|
||||
video_driver_frame_filter_get_ptr(),
|
||||
|
Loading…
Reference in New Issue
Block a user