mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
8f132b7936
vaapisink is now built with support for multiple display types, whenever they are enabled. The new "display" attribute is used to select a particular renderer.
57 lines
2 KiB
C
57 lines
2 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/gst.h>
|
|
#include <gst/video/videocontext.h>
|
|
#include <gst/vaapi/gstvaapidisplay.h>
|
|
|
|
/**
|
|
* GstVaapiDisplayType:
|
|
* @GST_VAAPI_DISPLAY_TYPE_AUTO: Automatic detection of the display type.
|
|
* @GST_VAAPI_DISPLAY_TYPE_X11: VA/X11 display.
|
|
* @GST_VAAPI_DISPLAY_TYPE_GLX: VA/GLX display.
|
|
*/
|
|
typedef enum _GstVaapiDisplayType GstVaapiDisplayType;
|
|
enum _GstVaapiDisplayType {
|
|
GST_VAAPI_DISPLAY_TYPE_AUTO = 0,
|
|
GST_VAAPI_DISPLAY_TYPE_X11,
|
|
GST_VAAPI_DISPLAY_TYPE_GLX,
|
|
};
|
|
|
|
#define GST_VAAPI_TYPE_DISPLAY_TYPE \
|
|
gst_vaapi_display_type_get_type()
|
|
|
|
GType
|
|
gst_vaapi_display_type_get_type(void) G_GNUC_CONST;
|
|
|
|
gboolean gst_vaapi_ensure_display (gpointer element, GstVaapiDisplay **display);
|
|
void gst_vaapi_set_display (const gchar *type, const GValue *value, GstVaapiDisplay **display);
|
|
gboolean gst_vaapi_reply_to_query (GstQuery *query, GstVaapiDisplay *display);
|
|
|
|
gboolean
|
|
gst_vaapi_append_surface_caps (GstCaps *out_caps, GstCaps *in_caps);
|
|
|
|
#endif /* GST_VAAPI_PLUGIN_UTIL_H */
|