Turn video_driver_frame_filter into a static function

This commit is contained in:
twinaphex 2015-11-30 07:22:08 +01:00
parent 2fe9ef736c
commit d1486464fe
2 changed files with 8 additions and 11 deletions

View File

@ -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);

View File

@ -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);