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;
|
return &video_driver_state.hw_render_callback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool video_driver_frame_filter(const void *data,
|
||||||
bool video_driver_frame_filter(const void *data,
|
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
size_t pitch,
|
size_t pitch,
|
||||||
unsigned *output_width, unsigned *output_height,
|
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
|
* but we really need to do processing before blocking on VSync
|
||||||
* for best possible scheduling.
|
* for best possible scheduling.
|
||||||
*/
|
*/
|
||||||
if ((!video_driver_ctl(RARCH_DISPLAY_CTL_FRAME_FILTER_ALIVE, NULL)
|
if (
|
||||||
|| !settings->video.post_filter_record || !data
|
(
|
||||||
|| global->record.gpu_buffer)
|
!video_driver_state.filter.filter
|
||||||
|
|| !settings->video.post_filter_record
|
||||||
|
|| !data
|
||||||
|
|| global->record.gpu_buffer
|
||||||
|
)
|
||||||
)
|
)
|
||||||
recording_dump_frame(data, width, height, pitch);
|
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);
|
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);
|
rarch_softfilter_t *video_driver_frame_filter_get_ptr(void);
|
||||||
|
|
||||||
void *video_driver_frame_filter_get_buf_ptr(void);
|
void *video_driver_frame_filter_get_buf_ptr(void);
|
||||||
|
|
Loading…
Reference in New Issue