va: Add a gstva.h to include all va lib header files.

And replacing all va lib headers with this new header files
when including.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1256>
This commit is contained in:
He Junyan 2021-10-27 11:08:39 +08:00 committed by GStreamer Marge Bot
parent d5c535744b
commit ea9b350240
16 changed files with 41 additions and 16 deletions

View file

@ -0,0 +1,31 @@
/* GStreamer
* Copyright (C) 2021 Intel Corporation
* Author: He Junyan <junyan.he@intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#pragma once
#ifndef GST_USE_UNSTABLE_API
#pragma message ("The va library from gst-plugins-bad is unstable API and may change in future.")
#pragma message ("You can define GST_USE_UNSTABLE_API to avoid this warning.")
#endif
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstvadisplay_drm.h>
#include <gst/va/gstvadisplay_wrapped.h>
#include <gst/va/gstvautils.h>

View file

@ -6,6 +6,7 @@ va_sources = [
]
va_headers = [
'gstva.h',
'gstvadisplay.h',
'gstvadisplay_drm.h',
'gstvadisplay_wrapped.h',

View file

@ -21,7 +21,7 @@
#pragma once
#include <gst/allocators/allocators.h>
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <gst/video/video.h>
#include <stdint.h>
#include <va/va.h>

View file

@ -18,8 +18,6 @@
* Boston, MA 02110-1301, USA.
*/
#include <gst/va/gstvautils.h>
#include "gstvabasedec.h"
#include "gstvaallocator.h"

View file

@ -22,8 +22,6 @@
#include "config.h"
#endif
#include <gst/va/gstvautils.h>
#include "gstvabasetransform.h"
#include "gstvaallocator.h"

View file

@ -20,7 +20,7 @@
#pragma once
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <va/va.h>
G_BEGIN_DECLS

View file

@ -28,7 +28,6 @@
#include "gstvacaps.h"
#include "gstvadisplay_priv.h"
#include "gstvavideoformat.h"
#include <gst/va/gstvadisplay_wrapped.h>
struct _GstVaDecoder
{

View file

@ -20,7 +20,7 @@
#pragma once
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <va/va.h>
G_BEGIN_DECLS

View file

@ -54,7 +54,6 @@
#include <gst/video/video.h>
#include <va/va_drmcommon.h>
#include <gst/va/gstvautils.h>
#include "gstvaallocator.h"
#include "gstvabasetransform.h"

View file

@ -24,7 +24,7 @@
G_BEGIN_DECLS
#include <gst/va/gstvadisplay_drm.h>
#include <gst/va/gstva.h>
#define GST_TYPE_VA_DEVICE (gst_va_device_get_type())
#define GST_IS_VA_DEVICE(obj) (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_VA_DEVICE))

View file

@ -20,7 +20,7 @@
#pragma once
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <gst/video/video.h>
#include <va/va.h>

View file

@ -20,7 +20,7 @@
#pragma once
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <gst/video/video.h>
#include <va/va.h>

View file

@ -68,7 +68,6 @@
#include "gstvavpp.h"
#include <gst/video/video.h>
#include <gst/va/gstvautils.h>
#include <va/va_drmcommon.h>

View file

@ -20,7 +20,7 @@
#pragma once
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <gst/video/video.h>
#include <va/va.h>
#include <va/va_drmcommon.h>

View file

@ -14,7 +14,7 @@
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <gst/video/video.h>
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#include <va/va_x11.h>

View file

@ -4,7 +4,7 @@
#include <gst/video/video.h>
#include <gst/controller/gstinterpolationcontrolsource.h>
#include <gst/controller/gstdirectcontrolbinding.h>
#include <gst/va/gstvadisplay.h>
#include <gst/va/gstva.h>
#define CHANGE_DIR_WITH_EVENT 0