[069/906] add gstreamer license
authorJulien Isorce <julien.isorce@gmail.com>
Mon, 19 May 2008 16:57:39 +0000 (16:57 +0000)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:19 +0000 (18:36 +0100)
git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@435 93df14bb-0f41-7a43-8087-d3e2a2f0e464

gst-libs/gst/gl/gstglbuffer.c
gst-libs/gst/gl/gstglbuffer.h
gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstgldisplay.h
gst/gl/gstglgraphicmaker.c
gst/gl/gstglgraphicmaker.h
gst/gl/gstglimagesink.c
gst/gl/gstglimagesink.h
gst/gl/gstglvideomaker.c
gst/gl/gstglvideomaker.h
gst/gl/gstopengl.c

index aaa3967..40eb4dd 100644 (file)
@@ -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
 #include "config.h"
 #endif
index cfb3a4f..cf7aaaa 100644 (file)
@@ -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_
 #define _GST_GL_BUFFER_H_
 
index 5b9cc9e..1f2604c 100644 (file)
@@ -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
 #include "config.h"
 #endif
@@ -379,11 +399,8 @@ gst_gl_display_glutCreateWindow (GstGLDisplay *display)
     glutInitWindowSize(display->glcontext_width, display->glcontext_height);   
 
     //create opengl context
-#if WIN32
-    sprintf_s(buffer, 5, "%d", glutWinId);
-#else
     sprintf(buffer, "%d", glutWinId);
-#endif
+
     display->title =  g_string_append (display->title, buffer);
     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);
 
                //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');
-#endif
+
+           sprintf (program, display->textFProgram_YUY2_UYVY, 'r', 'g', 'a');
+
                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');
-#endif
+           sprintf (program, display->textFProgram_YUY2_UYVY, 'a', 'b', 'r');
+
                display->GLSLProgram_UYVY = gst_gl_display_loadGLSLprogram (program);
 
                display->GLSLProgram_I420_YV12 = gst_gl_display_loadGLSLprogram (display->textFProgram_I420_YV12);
@@ -1044,8 +1056,6 @@ void
 gst_gl_display_set_windowId (GstGLDisplay* display, gulong winId)
 {
     static gint glheight = 0;
-    
-    //g_print ("Display::gst_gl_display_set_windowId\n");
 
     gst_gl_display_lock (display);
     gst_gl_display_postMessage (GST_GL_DISPLAY_ACTION_DESTROY, display);
index abb4bcc..9130d30 100644 (file)
@@ -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__
 #define __GST_GL_H__
 
index 899096d..4b4015e 100644 (file)
@@ -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
 #include "config.h"
 #endif
 #define GST_CAT_DEFAULT gst_gl_graphicmaker_debug
        GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
 
-/* inpect details */
-static const GstElementDetails element_details = {
-    "glgraphicmaker",
-    "Transform filter",
-    "output an opengl scene flux",
-    "Jhonny Bravo and Kelly"
-  };
+static const GstElementDetails element_details = 
+    GST_ELEMENT_DETAILS ("OpenGL graphic maker",
+        "Filter/Effect",
+        "A from video to GL flow filter",
+        "Julien Isorce <julien.isorce@gmail.com>");
 
 /* Source pad definition */
 static GstStaticPadTemplate gst_gl_graphicmaker_src_pad_template =
index 7c332a6..7320d01 100644 (file)
@@ -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_GLGRAPHICMAKER_H_
 #define _GST_GLGRAPHICMAKER_H_
 
index 4a1e841..6d2a4e3 100644 (file)
@@ -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
 #include "config.h"
 #endif
@@ -22,7 +42,6 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition);
 
 static void gst_glimage_sink_get_times (GstBaseSink * bsink, GstBuffer * buf,
     GstClockTime * start, GstClockTime * end);
-//static GstCaps *gst_glimage_sink_get_caps (GstBaseSink * bsink);
 static gboolean gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps);
 static GstFlowReturn gst_glimage_sink_render (GstBaseSink * bsink,
     GstBuffer * buf);
@@ -40,10 +59,10 @@ static void gst_glimage_sink_implements_init (GstImplementsInterfaceClass *
     klass);
 
 static const GstElementDetails gst_glimage_sink_details =
-GST_ELEMENT_DETAILS ("OpenGL video sink",
-    "Sink/Video",
-    "A videosink based on OpenGL",
-    "Julien Isorce <julien.isorce@gmail.com>");
+    GST_ELEMENT_DETAILS ("OpenGL video sink",
+        "Sink/Video",
+        "A videosink based on OpenGL",
+        "Julien Isorce <julien.isorce@gmail.com>");
 
 static GstStaticPadTemplate gst_glimage_sink_template =
     GST_STATIC_PAD_TEMPLATE ("sink",
@@ -52,7 +71,7 @@ static GstStaticPadTemplate gst_glimage_sink_template =
     GST_STATIC_CAPS (GST_GL_VIDEO_CAPS ";"
         GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_BGRx ";"
         GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR ";"
-        GST_VIDEO_CAPS_YUV ("{ YUY2, UYVY, AYUV, YV12, I420 }"))
+        GST_VIDEO_CAPS_YUV ("{ I420, YV12, YUY2, UYVY, AYUV }"))
     );
 
 enum
@@ -483,7 +502,6 @@ gst_glimage_sink_set_xwindow_id (GstXOverlay* overlay, gulong window_id)
         //close internal window
 
         glimage_sink->window_id = window_id;
-        //gst_gl_display_set_windowId (glimage_sink->display, glimage_sink->window_id);
     }
 
     //Handle the case where window_id is 0 and we want the sink to 
index 0d393b9..d151e48 100644 (file)
@@ -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 _GLIMAGESINK_H_
 #define _GLIMAGESINK_H_
 
index 6acc293..823edf2 100644 (file)
@@ -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
 #include "config.h"
 #endif
 #define GST_CAT_DEFAULT gst_gl_videomaker_debug
        GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
 
-static const GstElementDetails element_details = GST_ELEMENT_DETAILS ("FIXME",
-    "Filter/Effect",
-    "FIXME example filter",
-    "FIXME <fixme@fixme.com>");
+static const GstElementDetails element_details = 
+    GST_ELEMENT_DETAILS ("OpenGL video maker",
+        "Filter/Effect",
+        "A from GL to video flow filter",
+        "Julien Isorce <julien.isorce@gmail.com>");
 
 static GstStaticPadTemplate gst_gl_videomaker_src_pad_template =
     GST_STATIC_PAD_TEMPLATE ("src",
index b9a6869..7457e22 100644 (file)
@@ -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_GLVIDEOMAKER_H_
 #define _GST_GLVIDEOMAKER_H_
 
index 21f4461..f19fb53 100644 (file)
@@ -1,11 +1,29 @@
+/* 
+ * 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
 #include "config.h"
 #endif
 
-/* include gl filters headers */
 #include "gstglgraphicmaker.h"
 #include "gstglvideomaker.h"
-
 #include "gstglimagesink.h"
 
 #define GST_CAT_DEFAULT gst_gl_gstgl_debug