2 * gstvaapipluginutil.h - VA-API plugins private helper
4 * Copyright (C) 2011-2012 Intel Corporation
5 * Copyright (C) 2011 Collabora
6 * Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1
11 * of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA
24 #ifndef GST_VAAPI_PLUGIN_UTIL_H
25 #define GST_VAAPI_PLUGIN_UTIL_H
27 #include <gst/vaapi/gstvaapidisplay.h>
31 gst_vaapi_ensure_display(
33 GstVaapiDisplayType display_type,
34 GstVaapiDisplay **display
39 gst_vaapi_set_display(
42 GstVaapiDisplay **display
47 gst_vaapi_reply_to_query(GstQuery *query, GstVaapiDisplay *display);
51 gst_vaapi_append_surface_caps (GstCaps *out_caps, GstCaps *in_caps);
53 #ifndef G_PRIMITIVE_SWAP
54 #define G_PRIMITIVE_SWAP(type, a, b) do { \
55 const type t = a; a = b; b = t; \
59 #endif /* GST_VAAPI_PLUGIN_UTIL_H */