diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-03-20 18:12:18 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-03-20 18:30:09 +0100 |
commit | 833ebf9caeae10fd776aa101d5ab890d50046d1a (patch) | |
tree | 987c2e01ba68589dbb6d3cf8ac65316b61c94952 /gst-libs | |
parent | 87624fd6c81fb9feb9b3a94d48f24d405fed3bf6 (diff) |
sysdeps: split out GStreamer API compatibility glue to "gstcompat.h".
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/Makefile.am | 1 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstcompat.h | 35 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/sysdeps.h | 7 |
3 files changed, 37 insertions, 6 deletions
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 <gst/gst.h> + +/* GstVideoOverlayComposition */ +#include <gst/video/video-overlay-composition.h> + +#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 <string.h> #include "glibcompat.h" - -/* <gst/video/video-overlay-composition.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 */ |