summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-06-26 10:59:57 +0200
committerwm4 <wm4@nowhere>2015-07-01 22:37:55 +0200
commitf166d1298545154618ee2d046bb3c433469469c2 (patch)
tree799369ba862375e255a3a3d1f101693cb28f6447 /video/out/gl_video.h
parentc5e3613bbaecec9669871fde86b97032ab3b954a (diff)
downloadmpv-f166d1298545154618ee2d046bb3c433469469c2.tar.bz2
mpv-f166d1298545154618ee2d046bb3c433469469c2.tar.xz
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.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h3
1 files changed, 2 insertions, 1 deletions
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);