mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Turn video_driver_frame_filter into a static function
This commit is contained in:
parent
2fe9ef736c
commit
d1486464fe
@ -1111,8 +1111,7 @@ struct retro_hw_render_callback *video_driver_callback(void)
|
||||
return &video_driver_state.hw_render_callback;
|
||||
}
|
||||
|
||||
|
||||
bool video_driver_frame_filter(const void *data,
|
||||
static bool video_driver_frame_filter(const void *data,
|
||||
unsigned width, unsigned height,
|
||||
size_t pitch,
|
||||
unsigned *output_width, unsigned *output_height,
|
||||
@ -1841,9 +1840,13 @@ void video_frame(const void *data, unsigned width,
|
||||
* but we really need to do processing before blocking on VSync
|
||||
* for best possible scheduling.
|
||||
*/
|
||||
if ((!video_driver_ctl(RARCH_DISPLAY_CTL_FRAME_FILTER_ALIVE, NULL)
|
||||
|| !settings->video.post_filter_record || !data
|
||||
|| global->record.gpu_buffer)
|
||||
if (
|
||||
(
|
||||
!video_driver_state.filter.filter
|
||||
|| !settings->video.post_filter_record
|
||||
|| !data
|
||||
|| global->record.gpu_buffer
|
||||
)
|
||||
)
|
||||
recording_dump_frame(data, width, height, pitch);
|
||||
|
||||
|
@ -429,12 +429,6 @@ void video_driver_set_aspect_ratio_value(float value);
|
||||
|
||||
struct retro_hw_render_callback *video_driver_callback(void);
|
||||
|
||||
bool video_driver_frame_filter(const void *data,
|
||||
unsigned width, unsigned height,
|
||||
size_t pitch,
|
||||
unsigned *output_width, unsigned *output_height,
|
||||
unsigned *output_pitch);
|
||||
|
||||
rarch_softfilter_t *video_driver_frame_filter_get_ptr(void);
|
||||
|
||||
void *video_driver_frame_filter_get_buf_ptr(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user