summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-29 18:36:05 +0200
committerwm4 <wm4@nowhere>2012-10-03 03:17:53 +0200
commit47d15a5b6bfea3a17cd33605b8f5f2aebf3cc681 (patch)
treeb816f1830ccd4a194064c87d6c8c51383c1bf95c /libvo/video_out.c
parent3cbce1eb073670818cf9cfa0b987229e5d499aac (diff)
downloadmpv-47d15a5b6bfea3a17cd33605b8f5f2aebf3cc681.tar.bz2
mpv-47d15a5b6bfea3a17cd33605b8f5f2aebf3cc681.tar.xz
vo_opengl: use low quality default settings, add opengl-hq alias
Change the default settings for vo_opengl to highest performance and compatibility, but lowest quality. Use bilinear as default scaler. Add "opengl-hq" as alias for high quality settings. This alias uses exactly the same settings as vo_opengl did before this commit.
Diffstat (limited to 'libvo/video_out.c')
-rw-r--r--libvo/video_out.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index a51e46eea0..41d2250c3b 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -75,6 +75,7 @@ extern struct vo_driver video_out_x11;
extern struct vo_driver video_out_vdpau;
extern struct vo_driver video_out_xv;
extern struct vo_driver video_out_opengl;
+extern struct vo_driver video_out_opengl_hq;
extern struct vo_driver video_out_opengl_old;
extern struct vo_driver video_out_null;
extern struct vo_driver video_out_image;
@@ -121,6 +122,9 @@ const struct vo_driver *video_out_drivers[] =
#ifdef CONFIG_ENCODING
&video_out_lavc,
#endif
+#ifdef CONFIG_GL
+ &video_out_opengl_hq,
+#endif
NULL
};
@@ -287,7 +291,7 @@ static void replace_legacy_vo_name(bstr *name)
if (bstr_equals0(*name, "gl"))
new = bstr0("opengl");
if (bstr_equals0(*name, "gl3"))
- new = bstr0("opengl");
+ new = bstr0("opengl-hq");
if (!bstr_equals(*name, new)) {
mp_tmsg(MSGT_CPLAYER, MSGL_ERR, "VO driver '%.*s' has been replaced "
"with '%.*s'!\n", BSTR_P(*name), BSTR_P(new));