From 833ebf9caeae10fd776aa101d5ab890d50046d1a Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 20 Mar 2013 18:12:18 +0100 Subject: sysdeps: split out GStreamer API compatibility glue to "gstcompat.h". --- gst-libs/gst/vaapi/Makefile.am | 1 + gst-libs/gst/vaapi/gstcompat.h | 35 +++++++++++++++++++++++++++++++++++ gst-libs/gst/vaapi/sysdeps.h | 7 +------ 3 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 gst-libs/gst/vaapi/gstcompat.h (limited to 'gst-libs') diff --git a/gst-libs/gst/vaapi/Makefile.am b/gst-libs/gst/vaapi/Makefile.am index cec86709..f007b0f2 100644 --- a/gst-libs/gst/vaapi/Makefile.am +++ b/gst-libs/gst/vaapi/Makefile.am @@ -103,6 +103,7 @@ libgstvaapi_source_h = \ libgstvaapi_source_priv_h = \ glibcompat.h \ + gstcompat.h \ gstvaapi_priv.h \ gstvaapicodec_objects.h \ gstvaapicompat.h \ diff --git a/gst-libs/gst/vaapi/gstcompat.h b/gst-libs/gst/vaapi/gstcompat.h new file mode 100644 index 00000000..45de7f4d --- /dev/null +++ b/gst-libs/gst/vaapi/gstcompat.h @@ -0,0 +1,35 @@ +/* + * gstcompat.h - Compatibility glue for GStreamer + * + * Copyright (C) 2013 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 GST_COMPAT_H +#define GST_COMPAT_H + +#include + +/* GstVideoOverlayComposition */ +#include + +#ifndef HAVE_GST_VIDEO_OVERLAY_HWCAPS +#define gst_video_overlay_rectangle_get_flags(rect) (0) +#define gst_video_overlay_rectangle_get_global_alpha(rect) (1.0f) +#endif + +#endif /* GST_COMPAT_H */ diff --git a/gst-libs/gst/vaapi/sysdeps.h b/gst-libs/gst/vaapi/sysdeps.h index 1e675c7b..467118e8 100644 --- a/gst-libs/gst/vaapi/sysdeps.h +++ b/gst-libs/gst/vaapi/sysdeps.h @@ -31,11 +31,6 @@ #include #include "glibcompat.h" - -/* compatibility glue */ -#ifndef HAVE_GST_VIDEO_OVERLAY_HWCAPS -# define gst_video_overlay_rectangle_get_flags(rect) (0) -# define gst_video_overlay_rectangle_get_global_alpha(rect) (1.0f) -#endif +#include "gstcompat.h" #endif /* SYSDEPS_H */ -- cgit v1.2.3