mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
df6c4843a7
This enum can be used for quirk handling. It's not a property because the driver enum list might change, it's not static, thus avoiding the update of GType declaration. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1938>
68 lines
2.4 KiB
C
68 lines
2.4 KiB
C
/* GStreamer
|
|
* Copyright (C) 2020 Igalia, S.L.
|
|
* Author: Víctor Jáquez <vjaquez@igalia.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
|
|
|
|
#include <gst/gst.h>
|
|
#include <va/va.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef enum
|
|
{
|
|
GST_VA_IMPLEMENTATION_MESA_GALLIUM,
|
|
GST_VA_IMPLEMENTATION_INTEL_I965,
|
|
GST_VA_IMPLEMENTATION_INTEL_IHD,
|
|
GST_VA_IMPLEMENTATION_OTHER,
|
|
GST_VA_IMPLEMENTATION_INVALID,
|
|
} GstVaImplementation;
|
|
|
|
#define GST_VA_DISPLAY_IS_IMPLEMENTATION(display, impl) \
|
|
(gst_va_display_is_implementation (display, G_PASTE (GST_VA_IMPLEMENTATION_, impl)))
|
|
|
|
#define GST_TYPE_VA_DISPLAY (gst_va_display_get_type())
|
|
G_DECLARE_DERIVABLE_TYPE (GstVaDisplay, gst_va_display, GST, VA_DISPLAY, GstObject)
|
|
|
|
struct _GstVaDisplayClass
|
|
{
|
|
/*< private > */
|
|
GstObjectClass parent_class;
|
|
|
|
/*< public > */
|
|
gpointer (*create_va_display) (GstVaDisplay * self);
|
|
};
|
|
|
|
void gst_va_display_lock (GstVaDisplay * self);
|
|
void gst_va_display_unlock (GstVaDisplay * self);
|
|
gboolean gst_va_display_initialize (GstVaDisplay * self);
|
|
VADisplay gst_va_display_get_va_dpy (GstVaDisplay * self);
|
|
GArray * gst_va_display_get_profiles (GstVaDisplay * self,
|
|
guint32 codec,
|
|
VAEntrypoint entrypoint);
|
|
GArray * gst_va_display_get_image_formats (GstVaDisplay * self);
|
|
GstVaImplementation gst_va_display_get_implemenation (GstVaDisplay * self);
|
|
|
|
static inline gboolean
|
|
gst_va_display_is_implementation (GstVaDisplay * self, GstVaImplementation impl)
|
|
{
|
|
return (gst_va_display_get_implemenation (self) == impl);
|
|
}
|
|
|
|
G_END_DECLS
|