mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
[069/906] add gstreamer license
git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@435 93df14bb-0f41-7a43-8087-d3e2a2f0e464
This commit is contained in:
parent
708918b3ec
commit
ee488f6e6f
4 changed files with 86 additions and 16 deletions
|
@ -1,3 +1,23 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.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., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,3 +1,23 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.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., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _GST_GL_BUFFER_H_
|
#ifndef _GST_GL_BUFFER_H_
|
||||||
#define _GST_GL_BUFFER_H_
|
#define _GST_GL_BUFFER_H_
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,23 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.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., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -379,11 +399,8 @@ gst_gl_display_glutCreateWindow (GstGLDisplay *display)
|
||||||
glutInitWindowSize(display->glcontext_width, display->glcontext_height);
|
glutInitWindowSize(display->glcontext_width, display->glcontext_height);
|
||||||
|
|
||||||
//create opengl context
|
//create opengl context
|
||||||
#if WIN32
|
|
||||||
sprintf_s(buffer, 5, "%d", glutWinId);
|
|
||||||
#else
|
|
||||||
sprintf(buffer, "%d", glutWinId);
|
sprintf(buffer, "%d", glutWinId);
|
||||||
#endif
|
|
||||||
display->title = g_string_append (display->title, buffer);
|
display->title = g_string_append (display->title, buffer);
|
||||||
glutWinId = glutCreateWindow (display->title->str, display->winId);
|
glutWinId = glutCreateWindow (display->title->str, display->winId);
|
||||||
|
|
||||||
|
@ -563,18 +580,13 @@ gst_gl_display_glutCreateWindow (GstGLDisplay *display)
|
||||||
g_print ("Context %d, ARB_fragment_program supported: yes\n", glutWinId);
|
g_print ("Context %d, ARB_fragment_program supported: yes\n", glutWinId);
|
||||||
|
|
||||||
//from video to texture
|
//from video to texture
|
||||||
#if WIN32
|
|
||||||
sprintf_s (program, 2048, display->textFProgram_YUY2_UYVY, 'r', 'g', 'a');
|
|
||||||
#else
|
|
||||||
sprintf (program, display->textFProgram_YUY2_UYVY, 'r', 'g', 'a');
|
sprintf (program, display->textFProgram_YUY2_UYVY, 'r', 'g', 'a');
|
||||||
#endif
|
|
||||||
display->GLSLProgram_YUY2 = gst_gl_display_loadGLSLprogram (program);
|
display->GLSLProgram_YUY2 = gst_gl_display_loadGLSLprogram (program);
|
||||||
|
|
||||||
#if WIN32
|
|
||||||
sprintf_s (program, 2048, display->textFProgram_YUY2_UYVY, 'a', 'b', 'r');
|
|
||||||
#else
|
|
||||||
sprintf (program, display->textFProgram_YUY2_UYVY, 'a', 'b', 'r');
|
sprintf (program, display->textFProgram_YUY2_UYVY, 'a', 'b', 'r');
|
||||||
#endif
|
|
||||||
display->GLSLProgram_UYVY = gst_gl_display_loadGLSLprogram (program);
|
display->GLSLProgram_UYVY = gst_gl_display_loadGLSLprogram (program);
|
||||||
|
|
||||||
display->GLSLProgram_I420_YV12 = gst_gl_display_loadGLSLprogram (display->textFProgram_I420_YV12);
|
display->GLSLProgram_I420_YV12 = gst_gl_display_loadGLSLprogram (display->textFProgram_I420_YV12);
|
||||||
|
@ -1045,8 +1057,6 @@ gst_gl_display_set_windowId (GstGLDisplay* display, gulong winId)
|
||||||
{
|
{
|
||||||
static gint glheight = 0;
|
static gint glheight = 0;
|
||||||
|
|
||||||
//g_print ("Display::gst_gl_display_set_windowId\n");
|
|
||||||
|
|
||||||
gst_gl_display_lock (display);
|
gst_gl_display_lock (display);
|
||||||
gst_gl_display_postMessage (GST_GL_DISPLAY_ACTION_DESTROY, display);
|
gst_gl_display_postMessage (GST_GL_DISPLAY_ACTION_DESTROY, display);
|
||||||
g_cond_wait (display->cond_destroy, display->mutex);
|
g_cond_wait (display->cond_destroy, display->mutex);
|
||||||
|
|
|
@ -1,3 +1,23 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.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., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __GST_GL_H__
|
#ifndef __GST_GL_H__
|
||||||
#define __GST_GL_H__
|
#define __GST_GL_H__
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue