summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-03-31 01:13:38 +0200
committerwm4 <wm4@mplayer2.org>2012-03-31 02:58:52 +0200
commit98052873dadf619536c3ab379d45a998f2cf0999 (patch)
tree33b1dfde0716a2e94b5c21d446aa227c5e502f1c /libvo/gl_common.c
parentb00c1335c83be933b96de9464779a0e74c34331d (diff)
downloadmpv-98052873dadf619536c3ab379d45a998f2cf0999.tar.bz2
mpv-98052873dadf619536c3ab379d45a998f2cf0999.tar.xz
libvo: add vo_gl3
This new vo is heavily based on vo_gl.c. It provides better scale filters, dithering, and optional color management with LittleCMS2. It requires OpenGL 3. Many features are enabled by default, so it will be slower than vo_gl. However, it can be tuned to behave almost as vo_gl.
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r--libvo/gl_common.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 230e5dc2bd..b867af81b0 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -2587,3 +2587,19 @@ void uninit_mpglcontext(MPGLContext *ctx)
}
talloc_free(ctx);
}
+
+void mp_log_source(int mod, int lev, const char *src)
+{
+ int line = 1;
+ if (!src)
+ return;
+ while (*src) {
+ const char *end = strchr(src, '\n');
+ const char *next = end + 1;
+ if (!end)
+ next = end = src + strlen(src);
+ mp_msg(mod, lev, "[%3d] %.*s\n", line, (int)(end - src), src);
+ line++;
+ src = next;
+ }
+}