mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
[244/906] Make luma_to_curve non-static
Make luma_to_curve public so that it can be used as a step for more complex effects.
This commit is contained in:
parent
8599642d37
commit
b9cd64e83c
2 changed files with 43 additions and 8 deletions
|
@ -19,13 +19,13 @@
|
|||
*/
|
||||
|
||||
#include <gstgleffects.h>
|
||||
#include <gstgleffectscurves.h>
|
||||
#include <gstgleffectlumatocurve.h>
|
||||
|
||||
static void gst_gl_effects_luma_to_curve (GstGLEffects *effects,
|
||||
GstGLEffectsCurve curve,
|
||||
gint curve_index,
|
||||
gint width, gint height,
|
||||
GLuint texture)
|
||||
void gst_gl_effects_luma_to_curve (GstGLEffects *effects,
|
||||
GstGLEffectsCurve curve,
|
||||
gint curve_index,
|
||||
gint width, gint height,
|
||||
GLuint texture)
|
||||
{
|
||||
GstGLShader *shader;
|
||||
|
||||
|
@ -63,11 +63,11 @@ static void gst_gl_effects_luma_to_curve (GstGLEffects *effects,
|
|||
glDisable(GL_TEXTURE_1D);
|
||||
}
|
||||
|
||||
glActiveTexture (GL_TEXTURE0);
|
||||
glActiveTexture (GL_TEXTURE2);
|
||||
glEnable (GL_TEXTURE_RECTANGLE_ARB);
|
||||
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, texture);
|
||||
|
||||
gst_gl_shader_set_uniform_1i (shader, "tex", 0);
|
||||
gst_gl_shader_set_uniform_1i (shader, "tex", 2);
|
||||
|
||||
glDisable (GL_TEXTURE_RECTANGLE_ARB);
|
||||
|
||||
|
|
35
gst/gl/effects/gstgleffectlumatocurve.h
Normal file
35
gst/gl/effects/gstgleffectlumatocurve.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* GStreamer
|
||||
* Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@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_LUMA_TO_CURVE_H__
|
||||
#define __GST_GL_LUMA_TO_CURVE_H__
|
||||
|
||||
#include <gstgleffectscurves.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
void gst_gl_effects_luma_to_curve (GstGLEffects *effects,
|
||||
GstGLEffectsCurve curve,
|
||||
gint curve_index,
|
||||
gint width, gint height,
|
||||
GLuint texture);
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_GL_LUMA_TO_CURVE_H__ */
|
Loading…
Reference in a new issue