From f166d1298545154618ee2d046bb3c433469469c2 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 26 Jun 2015 10:59:57 +0200 Subject: vo_opengl: adjust interpolation code for the new video-sync mechanism This should make interpolation work much better in general, although there still might be some side effects for unusual framerates (eg. 35 Hz or 48 Hz). Most of the common framerates are tested and working fine. (24 Hz, 30 Hz, 60 Hz) The new code doesn't have support for oversample yet, so it's been removed (and will most likely be reimplemented in a cleaner way if there's enough demand). I would recommend using something like robidoux or mitchell instead of oversample, though - they're much smoother for the common cases. --- video/out/gl_video.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/gl_video.h') diff --git a/video/out/gl_video.h b/video/out/gl_video.h index 1a56d6c1fc..e3ce40b606 100644 --- a/video/out/gl_video.h +++ b/video/out/gl_video.h @@ -88,7 +88,8 @@ void gl_video_config(struct gl_video *p, struct mp_image_params *params); void gl_video_set_output_depth(struct gl_video *p, int r, int g, int b); void gl_video_set_lut3d(struct gl_video *p, struct lut3d *lut3d); void gl_video_set_image(struct gl_video *p, struct mp_image *img); -void gl_video_render_frame(struct gl_video *p, int fbo, struct frame_timing *t); +void gl_video_render_frame(struct gl_video *p, struct mp_image *img, int fbo, + struct frame_timing *t); void gl_video_resize(struct gl_video *p, int vp_w, int vp_h, struct mp_rect *src, struct mp_rect *dst, struct mp_osd_res *osd); -- cgit v1.2.3