summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.c
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-03-23 19:14:32 +0100
committerUoti Urpala <uau@mplayer2.org>2012-04-26 21:03:10 +0300
commit9646208cc671721fce2253a3c5d40b1961810a87 (patch)
tree7d9333c1d131acc08162e5f9bab8fb7b8f1a7fdf /libvo/video_out.c
parent768e06b0ac3d11e5383b2e6e90f7b99719ba5876 (diff)
downloadmpv-9646208cc671721fce2253a3c5d40b1961810a87.tar.bz2
mpv-9646208cc671721fce2253a3c5d40b1961810a87.tar.xz
vo_sharedbuffer: add this video output
This OSX video output is replaces the previous shared_buffer mode of vo_corevideo. It manages a shared buffer and a Cocoa distributed object to communicate with GUIs. Splitting this code into a separate VO allows to get rid of harmful code coupling, performance inefficiencies (useless image memory copies) and ugly code (big if-else conditionals).
Diffstat (limited to 'libvo/video_out.c')
-rw-r--r--libvo/video_out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 82fe4f8550..96a5220645 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -117,6 +117,7 @@ extern struct vo_driver video_out_tdfx_vid;
extern struct vo_driver video_out_xvr100;
extern struct vo_driver video_out_tga;
extern struct vo_driver video_out_corevideo;
+extern struct vo_driver video_out_sharedbuffer;
extern struct vo_driver video_out_pnm;
extern struct vo_driver video_out_md5sum;
@@ -180,6 +181,9 @@ const struct vo_driver *video_out_drivers[] =
#if (defined CONFIG_GL && !defined CONFIG_GL_COCOA)
&video_out_gl,
#endif
+#ifdef CONFIG_SHAREDBUFFER
+ &video_out_sharedbuffer,
+#endif
#ifdef CONFIG_GL_SDL
&video_out_gl_sdl,
#endif