mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
bd397a536b
This macro helps swapping variables while maintaining the correct underlying and primitive type.
59 lines
1.7 KiB
C
59 lines
1.7 KiB
C
/*
|
|
* gstvaapipluginutil.h - VA-API plugins private helper
|
|
*
|
|
* Copyright (C) 2011-2012 Intel Corporation
|
|
* Copyright (C) 2011 Collabora
|
|
* Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
|
*
|
|
* 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_VAAPI_PLUGIN_UTIL_H
|
|
#define GST_VAAPI_PLUGIN_UTIL_H
|
|
|
|
#include <gst/vaapi/gstvaapidisplay.h>
|
|
|
|
G_GNUC_INTERNAL
|
|
gboolean
|
|
gst_vaapi_ensure_display(
|
|
gpointer element,
|
|
GstVaapiDisplayType display_type,
|
|
GstVaapiDisplay **display
|
|
);
|
|
|
|
G_GNUC_INTERNAL
|
|
void
|
|
gst_vaapi_set_display(
|
|
const gchar *type,
|
|
const GValue *value,
|
|
GstVaapiDisplay **display
|
|
);
|
|
|
|
G_GNUC_INTERNAL
|
|
gboolean
|
|
gst_vaapi_reply_to_query(GstQuery *query, GstVaapiDisplay *display);
|
|
|
|
G_GNUC_INTERNAL
|
|
gboolean
|
|
gst_vaapi_append_surface_caps (GstCaps *out_caps, GstCaps *in_caps);
|
|
|
|
#ifndef G_PRIMITIVE_SWAP
|
|
#define G_PRIMITIVE_SWAP(type, a, b) do { \
|
|
const type t = a; a = b; b = t; \
|
|
} while (0)
|
|
#endif
|
|
|
|
#endif /* GST_VAAPI_PLUGIN_UTIL_H */
|