2010-05-12 07:57:55 +00:00
|
|
|
/*
|
2011-11-04 20:50:15 +00:00
|
|
|
* gstvaapipluginutil.h - VA-API plugins private helper
|
2010-05-12 07:57:55 +00:00
|
|
|
*
|
2012-01-16 10:03:51 +00:00
|
|
|
* Copyright (C) 2011-2012 Intel Corporation
|
2011-11-04 20:50:15 +00:00
|
|
|
* Copyright (C) 2011 Collabora
|
|
|
|
* Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
|
2010-05-12 07:57:55 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2012-07-23 15:49:08 +00:00
|
|
|
#ifndef GST_VAAPI_PLUGIN_UTIL_H
|
|
|
|
#define GST_VAAPI_PLUGIN_UTIL_H
|
|
|
|
|
2010-05-12 07:57:55 +00:00
|
|
|
#include <gst/vaapi/gstvaapidisplay.h>
|
|
|
|
|
2012-07-24 14:14:51 +00:00
|
|
|
G_GNUC_INTERNAL
|
2012-07-23 16:01:26 +00:00
|
|
|
gboolean
|
2012-07-23 16:37:38 +00:00
|
|
|
gst_vaapi_ensure_display(
|
|
|
|
gpointer element,
|
2012-07-25 08:02:29 +00:00
|
|
|
GstVaapiDisplayType display_type,
|
|
|
|
GstVaapiDisplay **display
|
2012-07-23 16:37:38 +00:00
|
|
|
);
|
2012-07-23 16:01:26 +00:00
|
|
|
|
2012-07-24 14:14:51 +00:00
|
|
|
G_GNUC_INTERNAL
|
2012-07-23 16:01:26 +00:00
|
|
|
void
|
|
|
|
gst_vaapi_set_display(
|
|
|
|
const gchar *type,
|
|
|
|
const GValue *value,
|
|
|
|
GstVaapiDisplay **display
|
|
|
|
);
|
|
|
|
|
2012-07-24 14:14:51 +00:00
|
|
|
G_GNUC_INTERNAL
|
2012-07-23 16:01:26 +00:00
|
|
|
gboolean
|
|
|
|
gst_vaapi_reply_to_query(GstQuery *query, GstVaapiDisplay *display);
|
2012-01-05 10:00:39 +00:00
|
|
|
|
2012-07-24 14:14:51 +00:00
|
|
|
G_GNUC_INTERNAL
|
2012-01-05 10:00:39 +00:00
|
|
|
gboolean
|
|
|
|
gst_vaapi_append_surface_caps (GstCaps *out_caps, GstCaps *in_caps);
|
2012-07-23 15:49:08 +00:00
|
|
|
|
2012-09-06 09:47:40 +00:00
|
|
|
#ifndef G_PRIMITIVE_SWAP
|
|
|
|
#define G_PRIMITIVE_SWAP(type, a, b) do { \
|
|
|
|
const type t = a; a = b; b = t; \
|
|
|
|
} while (0)
|
|
|
|
#endif
|
|
|
|
|
2012-07-23 15:49:08 +00:00
|
|
|
#endif /* GST_VAAPI_PLUGIN_UTIL_H */
|