Add header for system-dependent definitions.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 30 Jan 2012 17:12:59 +0000 (18:12 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 30 Jan 2012 18:52:10 +0000 (19:52 +0100)
38 files changed:
gst-libs/gst/vaapi/Makefile.am
gst-libs/gst/vaapi/gstvaapicodec_objects.c
gst-libs/gst/vaapi/gstvaapicontext.c
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c
gst-libs/gst/vaapi/gstvaapidecoder_h264.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c
gst-libs/gst/vaapi/gstvaapidecoder_objects.c
gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
gst-libs/gst/vaapi/gstvaapidisplay.c
gst-libs/gst/vaapi/gstvaapidisplay_glx.c
gst-libs/gst/vaapi/gstvaapidisplay_x11.c
gst-libs/gst/vaapi/gstvaapidisplaycache.c
gst-libs/gst/vaapi/gstvaapiimage.c
gst-libs/gst/vaapi/gstvaapiimageformat.c
gst-libs/gst/vaapi/gstvaapiimagepool.c
gst-libs/gst/vaapi/gstvaapiobject.c
gst-libs/gst/vaapi/gstvaapiparamspecs.c
gst-libs/gst/vaapi/gstvaapiprofile.c
gst-libs/gst/vaapi/gstvaapisubpicture.c
gst-libs/gst/vaapi/gstvaapisurface.c
gst-libs/gst/vaapi/gstvaapisurfacepool.c
gst-libs/gst/vaapi/gstvaapisurfaceproxy.c
gst-libs/gst/vaapi/gstvaapitexture.c
gst-libs/gst/vaapi/gstvaapiutils.c
gst-libs/gst/vaapi/gstvaapiutils_glx.c
gst-libs/gst/vaapi/gstvaapiutils_x11.c
gst-libs/gst/vaapi/gstvaapivalue.c
gst-libs/gst/vaapi/gstvaapivideobuffer.c
gst-libs/gst/vaapi/gstvaapivideobuffer_glx.c
gst-libs/gst/vaapi/gstvaapivideoconverter_glx.c
gst-libs/gst/vaapi/gstvaapivideopool.c
gst-libs/gst/vaapi/gstvaapivideosink.c
gst-libs/gst/vaapi/gstvaapiwindow.c
gst-libs/gst/vaapi/gstvaapiwindow_glx.c
gst-libs/gst/vaapi/gstvaapiwindow_x11.c
gst-libs/gst/vaapi/sysdeps.h [new file with mode: 0644]

index 8e0b104..4314d3a 100644 (file)
@@ -87,6 +87,7 @@ libgstvaapi_source_priv_h =                   \
        gstvaapiutils_tsb.h                     \
        gstvaapivideobuffer_priv.h              \
        gstvaapiworkarounds.h                   \
+       sysdeps.h                               \
        $(libgst_vaapi_ffmpeg_source_priv_h)    \
        $(NULL)
 
index 9a244bc..7b5958d 100644 (file)
@@ -20,7 +20,7 @@
  *  Boston, MA 02110-1301 USA
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/vaapi/gstvaapicontext.h>
 #include "gstvaapicodec_objects.h"
index af57feb..9b1bf1a 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA context abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <assert.h>
 #include "gstvaapicompat.h"
 #include "gstvaapicontext.h"
index 2f54e7a..a83004e 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA decoder abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapicompat.h"
 #include "gstvaapidecoder.h"
 #include "gstvaapidecoder_priv.h"
index 21425ac..f6439c0 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: FFmpeg-based decoder
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
 # include <libavcodec/avcodec.h>
 #endif
index 247488d..9639884 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: H.264 decoder
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/base/gstadapter.h>
 #include <gst/codecparsers/gsth264parser.h>
index e888426..12c2690 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: MPEG-2 decoder
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/base/gstbitreader.h>
 #include <gst/codecparsers/gstmpegvideoparser.h>
index 24a6757..5ef2d22 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: MPEG-4 decoder, include h263/divx/xvid support
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/base/gstbitreader.h>
 #include <gst/codecparsers/gstmpeg4parser.h>
index aa1d748..968f86b 100644 (file)
@@ -20,7 +20,7 @@
  *  Boston, MA 02110-1301 USA
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/vaapi/gstvaapicontext.h>
 #include "gstvaapidecoder_objects.h"
index b305b28..d7d6812 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VC-1 decoder
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/codecparsers/gstvc1parser.h>
 #include "gstvaapidecoder_vc1.h"
index e975c63..097713c 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA display abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include "gstvaapiutils.h"
 #include "gstvaapidisplay.h"
index 29950e8..ccf126a 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA/GLX display abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapicompat.h"
 #include "gstvaapiutils.h"
 #include "gstvaapiutils_glx.h"
index f4bd52c..0f5f7ba 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA/X11 display abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include "gstvaapiutils.h"
 #include "gstvaapidisplay_priv.h"
index a6bb39d..54f349c 100644 (file)
@@ -19,7 +19,7 @@
  *  Boston, MA 02110-1301 USA
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <glib.h>
 #include <string.h>
 #include "gstvaapidisplaycache.h"
index 9cd2639..200da86 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA image abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include "gstvaapicompat.h"
 #include "gstvaapiutils.h"
index a910b03..dd03157 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA image format abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <gst/video/video.h>
 #include "gstvaapicompat.h"
 #include "gstvaapiimageformat.h"
index 3332931..159cb30 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VA image pool
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapiimagepool.h"
 
 #define DEBUG 1
index f2106eb..52529c0 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: Base VA object
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapiobject.h"
 #include "gstvaapi_priv.h"
 #include "gstvaapiparamspecs.h"
index cac4027..8905af4 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: GParamSpecs for some of our types
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapiparamspecs.h"
 #include "gstvaapivalue.h"
 
index e3cddd3..54b7aba 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VA profile abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <gst/gstbuffer.h>
 #include "gstvaapicompat.h"
index 000ab27..11a94f1 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA subpicture abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include "gstvaapicompat.h"
 #include "gstvaapiutils.h"
index e0b614e..65c4b28 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA surface abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapicompat.h"
 #include "gstvaapiutils.h"
 #include "gstvaapisurface.h"
index 8fe9d5d..b3e9538 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VA surface pool
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapisurfacepool.h"
 
 #define DEBUG 1
index 747d00f..404583c 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA surface proxy
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapisurfaceproxy.h"
 #include "gstvaapiobject_priv.h"
 
index 0b70929..97025f2 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VA/GLX texture abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapitexture.h"
 #include "gstvaapicompat.h"
 #include "gstvaapiutils.h"
index 2b8f17b..8d5aecc 100644 (file)
@@ -20,7 +20,7 @@
  *  Boston, MA 02110-1301 USA
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapicompat.h"
 #include "gstvaapiutils.h"
 #include "gstvaapisurface.h"
index 527c07c..bf7c358 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #define _GNU_SOURCE 1 /* RTLD_DEFAULT */
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <math.h>
 #include <dlfcn.h>
index 76dd788..abc58b8 100644 (file)
@@ -20,7 +20,7 @@
  *  Boston, MA 02110-1301 USA
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <glib.h>
 #include <X11/Xutil.h>
 #include "gstvaapiutils_x11.h"
index 1b3da64..112d1b4 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: GValue implementations specific to VA-API
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <gobject/gvaluecollector.h>
 #include "gstvaapivalue.h"
 
index 3b6c98d..a225981 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA video buffer for GStreamer
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapivideobuffer.h"
 #include "gstvaapivideobuffer_priv.h"
 #include "gstvaapiimagepool.h"
index e71da18..da49a0d 100644 (file)
@@ -26,7 +26,7 @@
  * @short_description: VA video buffer for GStreamer with GLX support
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapivideobuffer_glx.h"
 #include "gstvaapivideobuffer_priv.h"
 #include "gstvaapivideoconverter_glx.h"
index fdeb817..a9ba30d 100644 (file)
@@ -21,7 +21,7 @@
  *  Boston, MA 02110-1301 USA
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include "gstvaapivideoconverter_glx.h"
 #include "gstvaapivideobuffer.h"
index ec70be9..e106483 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: Video object pool abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapivideopool.h"
 
 #define DEBUG 1
index 8f511d4..cde38dd 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: An interface for implementing VA-API sink elements
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapivideosink.h"
 
 static void
index 749b88d..56ef8ed 100644 (file)
@@ -25,7 +25,7 @@
  * @short_description: VA window abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapiwindow.h"
 #include "gstvaapi_priv.h"
 
index 447318e..45c040d 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VA/GLX window abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include "gstvaapiwindow_glx.h"
 #include "gstvaapidisplay_x11.h"
 #include "gstvaapidisplay_x11_priv.h"
index d1f7d5a..51de061 100644 (file)
@@ -24,7 +24,7 @@
  * @short_description: VA/X11 window abstraction
  */
 
-#include "config.h"
+#include "sysdeps.h"
 #include <string.h>
 #include <X11/Xatom.h>
 #include "gstvaapicompat.h"
diff --git a/gst-libs/gst/vaapi/sysdeps.h b/gst-libs/gst/vaapi/sysdeps.h
new file mode 100644 (file)
index 0000000..b4a8878
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ *  sysdeps.h - System-dependent definitions
+ *
+ *  Copyright (C) 2012 Intel Corporation
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public License
+ *  as published by the Free Software Foundation; either version 2.1
+ *  of the License, or (at your option) any later version.
+ *
+ *  This library 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
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free
+ *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301 USA
+ */
+
+#ifndef SYSDEPS_H
+#define SYSDEPS_H
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#endif /* SYSDEPS_H */