Blame gst-libs/gst/gl/gstglapi.h

Packit 0652a1
/*
Packit 0652a1
 * GStreamer
Packit 0652a1
 * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Library General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Library General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Library General Public
Packit 0652a1
 * License along with this library; if not, write to the
Packit 0652a1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 0652a1
 * Boston, MA 02110-1301, USA.
Packit 0652a1
 */
Packit 0652a1
Packit 0652a1
#ifndef __GST_GL_API_H__
Packit 0652a1
#define __GST_GL_API_H__
Packit 0652a1
Packit 0652a1
#include <gst/gl/gstglconfig.h>
Packit 0652a1
#include <gst/gl/gl-prelude.h>
Packit 0652a1
Packit 0652a1
#include <gst/gst.h>
Packit 0652a1
Packit 0652a1
G_BEGIN_DECLS
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GstGLAPI:
Packit 0652a1
 * @GST_GL_API_NONE: no API
Packit 0652a1
 * @GST_GL_API_OPENGL: Desktop OpenGL up to and including 3.1.  The
Packit 0652a1
 *                    compatibility profile when the OpenGL version is >= 3.2
Packit 0652a1
 * @GST_GL_API_OPENGL3: Desktop OpenGL >= 3.2 core profile
Packit 0652a1
 * @GST_GL_API_GLES1: OpenGL ES 1.x
Packit 0652a1
 * @GST_GL_API_GLES2: OpenGL ES 2.x and 3.x
Packit 0652a1
 * @GST_GL_API_ANY: Any OpenGL API
Packit 0652a1
 */
Packit 0652a1
typedef enum /*< underscore_name=gst_gl_api >*/ {
Packit 0652a1
  GST_GL_API_NONE = 0,
Packit 0652a1
  GST_GL_API_OPENGL = (1 << 0),
Packit 0652a1
  GST_GL_API_OPENGL3 = (1 << 1),
Packit 0652a1
  GST_GL_API_GLES1 = (1 << 15),
Packit 0652a1
  GST_GL_API_GLES2 = (1 << 16),
Packit 0652a1
Packit 0652a1
  GST_GL_API_ANY = G_MAXUINT32
Packit 0652a1
} GstGLAPI;
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GST_GL_API_OPENGL_NAME:
Packit 0652a1
 *
Packit 0652a1
 * The name for %GST_GL_API_OPENGL used in various places
Packit 0652a1
 */
Packit 0652a1
#define GST_GL_API_OPENGL_NAME "opengl"
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GST_GL_API_OPENGL3_NAME:
Packit 0652a1
 *
Packit 0652a1
 * The name for %GST_GL_API_OPENGL3 used in various places
Packit 0652a1
 */
Packit 0652a1
#define GST_GL_API_OPENGL3_NAME "opengl3"
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GST_GL_API_GLES1_NAME:
Packit 0652a1
 *
Packit 0652a1
 * The name for %GST_GL_API_GLES1 used in various places
Packit 0652a1
 */
Packit 0652a1
#define GST_GL_API_GLES1_NAME "gles1"
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GST_GL_API_GLES2_NAME:
Packit 0652a1
 *
Packit 0652a1
 * The name for %GST_GL_API_GLES2 used in various places
Packit 0652a1
 */
Packit 0652a1
#define GST_GL_API_GLES2_NAME "gles2"
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GstGLPlatform:
Packit 0652a1
 * @GST_GL_PLATFORM_NONE: no platform
Packit 0652a1
 * @GST_GL_PLATFORM_EGL: the EGL platform used primarily with the X11, wayland
Packit 0652a1
 *                      and android window systems as well as on embedded Linux
Packit 0652a1
 * @GST_GL_PLATFORM_GLX: the GLX platform used primarily with the X11 window system
Packit 0652a1
 * @GST_GL_PLATFORM_WGL: the WGL platform used primarily on Windows
Packit 0652a1
 * @GST_GL_PLATFORM_CGL: the CGL platform used primarily on OS X
Packit 0652a1
 * @GST_GL_PLATFORM_EAGL: the EAGL platform used primarily on iOS
Packit 0652a1
 * @GST_GL_PLATFORM_ANY: any OpenGL platform
Packit 0652a1
 */
Packit 0652a1
typedef enum
Packit 0652a1
{
Packit 0652a1
  GST_GL_PLATFORM_NONE = 0,
Packit 0652a1
  GST_GL_PLATFORM_EGL = (1 << 0),
Packit 0652a1
  GST_GL_PLATFORM_GLX = (1 << 1),
Packit 0652a1
  GST_GL_PLATFORM_WGL = (1 << 2),
Packit 0652a1
  GST_GL_PLATFORM_CGL = (1 << 3),
Packit 0652a1
  GST_GL_PLATFORM_EAGL = (1 << 4),
Packit 0652a1
Packit 0652a1
  GST_GL_PLATFORM_ANY = G_MAXUINT32
Packit 0652a1
} GstGLPlatform;
Packit 0652a1
Packit 0652a1
GST_GL_API
Packit 0652a1
gchar * gst_gl_api_to_string (GstGLAPI api);
Packit 0652a1
GST_GL_API
Packit 0652a1
GstGLAPI gst_gl_api_from_string (const gchar * api_s);
Packit 0652a1
Packit 0652a1
GST_GL_API
Packit 0652a1
gchar * gst_gl_platform_to_string (GstGLPlatform platform);
Packit 0652a1
GST_GL_API
Packit 0652a1
GstGLPlatform gst_gl_platform_from_string (const gchar * platform_s);
Packit 0652a1
Packit 0652a1
G_END_DECLS
Packit 0652a1
Packit 0652a1
#endif /* __GST_GL_API_H__ */