mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 06:29:31 +00:00
gl: forward declare some enums
Specifically the GstGLTextureTarget enum
This commit is contained in:
parent
8acafe6f9f
commit
ec318cf36d
4 changed files with 34 additions and 8 deletions
|
@ -63,6 +63,7 @@ libgstgl_@GST_API_VERSION@include_HEADERS = \
|
||||||
gstglviewconvert.h \
|
gstglviewconvert.h \
|
||||||
gstgloverlaycompositor.h \
|
gstgloverlaycompositor.h \
|
||||||
gstgl_fwd.h \
|
gstgl_fwd.h \
|
||||||
|
gstgl_enums.h \
|
||||||
gl.h
|
gl.h
|
||||||
|
|
||||||
libgstgl_@GST_API_VERSION@_la_LIBADD = \
|
libgstgl_@GST_API_VERSION@_la_LIBADD = \
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <gst/gl/gstgl_fwd.h>
|
#include <gst/gl/gstgl_fwd.h>
|
||||||
|
#include <gst/gl/gstgl_enums.h>
|
||||||
#include <gst/gl/gstglconfig.h>
|
#include <gst/gl/gstglconfig.h>
|
||||||
#include <gst/gl/gstglapi.h>
|
#include <gst/gl/gstglapi.h>
|
||||||
#include <gst/gl/gstgldisplay.h>
|
#include <gst/gl/gstgldisplay.h>
|
||||||
|
|
32
gst-libs/gst/gl/gstgl_enums.h
Normal file
32
gst-libs/gst/gl/gstgl_enums.h
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2015 Matthew Waters <matthew@centricular.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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _GST_GL_ENUMS_H_
|
||||||
|
#define _GST_GL_ENUMS_H_
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
GST_GL_TEXTURE_TARGET_NONE,
|
||||||
|
GST_GL_TEXTURE_TARGET_2D,
|
||||||
|
GST_GL_TEXTURE_TARGET_RECTANGLE,
|
||||||
|
GST_GL_TEXTURE_TARGET_EXTERNAL_OES,
|
||||||
|
} GstGLTextureTarget;
|
||||||
|
|
||||||
|
#endif /* _GST_GL_ENUMS_H_ */
|
|
@ -50,14 +50,6 @@ typedef enum _GstGLMemoryTransfer
|
||||||
|
|
||||||
#define GST_GL_MEMORY_ADD_TRANSFER(mem,state) ((GstGLMemory *)mem)->transfer_state |= state
|
#define GST_GL_MEMORY_ADD_TRANSFER(mem,state) ((GstGLMemory *)mem)->transfer_state |= state
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
GST_GL_TEXTURE_TARGET_NONE,
|
|
||||||
GST_GL_TEXTURE_TARGET_2D,
|
|
||||||
GST_GL_TEXTURE_TARGET_RECTANGLE,
|
|
||||||
GST_GL_TEXTURE_TARGET_EXTERNAL_OES,
|
|
||||||
} GstGLTextureTarget;
|
|
||||||
|
|
||||||
#define GST_GL_TEXTURE_TARGET_2D_STR "2D"
|
#define GST_GL_TEXTURE_TARGET_2D_STR "2D"
|
||||||
#define GST_GL_TEXTURE_TARGET_RECTANGLE_STR "rectangle"
|
#define GST_GL_TEXTURE_TARGET_RECTANGLE_STR "rectangle"
|
||||||
#define GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR "external-oes"
|
#define GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR "external-oes"
|
||||||
|
|
Loading…
Reference in a new issue