From d1486464feca1e492eb3043d73fad01d2d64c57e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 30 Nov 2015 07:22:08 +0100 Subject: [PATCH] Turn video_driver_frame_filter into a static function --- gfx/video_driver.c | 13 ++++++++----- gfx/video_driver.h | 6 ------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index b5d5cc8593..aa4b120bbf 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -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); diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 135510c08d..71f882fc0e 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -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);