]> git.sesse.net Git - vlc/commitdiff
Added vout_internal.h.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 28 Sep 2008 06:59:04 +0000 (08:59 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 28 Sep 2008 07:08:22 +0000 (09:08 +0200)
include/vlc_vout.h
src/Makefile.am
src/video_output/video_output.c
src/video_output/vout_internal.h [new file with mode: 0644]

index 584942fc339b1c367e3a0055f6d41111547c1894..b58730ccb3c91f71f3b4e203e45a092c115bc0ca 100644 (file)
@@ -483,7 +483,6 @@ struct vout_thread_t
     /** \name Thread properties and locks */
     /**@{*/
     vlc_mutex_t         picture_lock;                 /**< picture heap lock */
-    vlc_mutex_t         subpicture_lock;           /**< subpicture heap lock */
     vlc_mutex_t         change_lock;                 /**< thread change lock */
     vlc_mutex_t         vfilter_lock;         /**< video filter2 change lock */
     vout_sys_t *        p_sys;                     /**< system output method */
@@ -701,13 +700,6 @@ VLC_EXPORT( void,            vout_LinkPicture,    ( vout_thread_t *, picture_t *
 VLC_EXPORT( void,            vout_UnlinkPicture,  ( vout_thread_t *, picture_t * ) );
 VLC_EXPORT( void,            vout_PlacePicture,   ( vout_thread_t *, unsigned int, unsigned int, unsigned int *, unsigned int *, unsigned int *, unsigned int * ) );
 
-/* DO NOT use vout_RenderPicture unless you are in src/video_ouput */
-picture_t *     vout_RenderPicture  ( vout_thread_t *, picture_t *,
-                                                       subpicture_t *, bool b_paused );
-
-/* DO NOT use vout_CountPictureAvailable unless your are in src/input/dec.c (no exception) */
-int vout_CountPictureAvailable( vout_thread_t * );
-
 VLC_EXPORT( int, vout_vaControlDefault, ( vout_thread_t *, int, va_list ) );
 VLC_EXPORT( void *, vout_RequestWindow, ( vout_thread_t *, int *, int *, unsigned int *, unsigned int * ) );
 VLC_EXPORT( void,   vout_ReleaseWindow, ( vout_thread_t *, void * ) );
index ac8b1344179718918bac34d87f4b92582c1da753..db0d31bf33937f806304b7366a9560b70231f42e 100644 (file)
@@ -321,6 +321,7 @@ SOURCES_libvlc_common = \
        video_output/video_widgets.c \
        video_output/vout_subpictures.c \
        video_output/vout_intf.c \
+       video_output/vout_internal.h \
        audio_output/aout_internal.h \
        audio_output/common.c \
        audio_output/dec.c \
index 0da340638fa7a6a4d9da10828a66014e117cc39b..1b05a377c978d3780c08fb3e051c531c2ae573fe 100644 (file)
@@ -47,6 +47,7 @@
 
 #include <vlc_filter.h>
 #include <vlc_osd.h>
+#include <assert.h>
 
 #if defined( __APPLE__ )
 /* Include darwin_specific.h here if needed */
@@ -57,8 +58,8 @@
 #include "input/input_internal.h"
 
 #include "modules/modules.h"
-#include <assert.h>
 #include "vout_pictures.h"
+#include "vout_internal.h"
 
 /*****************************************************************************
  * Local prototypes
diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
new file mode 100644 (file)
index 0000000..fad85fc
--- /dev/null
@@ -0,0 +1,41 @@
+/*****************************************************************************
+ * vout_internal.h : Internal vout definitions
+ *****************************************************************************
+ * Copyright (C) 2008 the VideoLAN team
+ * Copyright (C) 2008 Laurent Aimar
+ * $Id$
+ *
+ * Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org >
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+
+#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
+# error This header file can only be included from LibVLC.
+#endif
+
+#ifndef _VOUT_INTERNAL_H
+#define _VOUT_INTERNAL_H 1
+
+/* DO NOT use vout_RenderPicture unless you are in src/video_ouput */
+picture_t *vout_RenderPicture( vout_thread_t *, picture_t *,
+                               subpicture_t *, bool b_paused );
+
+/* DO NOT use vout_CountPictureAvailable unless your are in src/input/decoder.c (no exception) */
+int vout_CountPictureAvailable( vout_thread_t * );
+
+#endif
+