From 9646208cc671721fce2253a3c5d40b1961810a87 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 23 Mar 2012 19:14:32 +0100 Subject: 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). --- libvo/video_out.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvo/video_out.c') 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 -- cgit v1.2.3