void
gst_gl_effects_luma_to_curve (GstGLEffects * effects,
- GstGLEffectsCurve curve,
+ const GstGLEffectsCurve * curve,
gint curve_index, gint width, gint height, GLuint texture)
{
GstGLShader *shader;
gl->TexParameteri (GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP);
gl->TexParameteri (GL_TEXTURE_1D, GL_TEXTURE_WRAP_T, GL_CLAMP);
- gl->TexImage1D (GL_TEXTURE_1D, 0, curve.bytes_per_pixel,
- curve.width, 0, GL_RGB, GL_UNSIGNED_BYTE, curve.pixel_data);
+ gl->TexImage1D (GL_TEXTURE_1D, 0, curve->bytes_per_pixel,
+ curve->width, 0, GL_RGB, GL_UNSIGNED_BYTE, curve->pixel_data);
gl->Disable (GL_TEXTURE_1D);
}
{
GstGLEffects *effects = GST_GL_EFFECTS (data);
- gst_gl_effects_luma_to_curve (effects, heat_curve, GST_GL_EFFECTS_CURVE_HEAT,
+ gst_gl_effects_luma_to_curve (effects, &heat_curve, GST_GL_EFFECTS_CURVE_HEAT,
width, height, texture);
}
{
GstGLEffects *effects = GST_GL_EFFECTS (data);
- gst_gl_effects_luma_to_curve (effects, sepia_curve,
+ gst_gl_effects_luma_to_curve (effects, &sepia_curve,
GST_GL_EFFECTS_CURVE_SEPIA, width, height, texture);
}
{
GstGLEffects *effects = GST_GL_EFFECTS (data);
- gst_gl_effects_luma_to_curve (effects, luma_xpro_curve,
+ gst_gl_effects_luma_to_curve (effects, &luma_xpro_curve,
GST_GL_EFFECTS_CURVE_LUMA_XPRO, width, height, texture);
}
static void
gst_gl_effects_rgb_to_curve (GstGLEffects * effects,
- GstGLEffectsCurve curve,
+ const GstGLEffectsCurve * curve,
gint curve_index, gint width, gint height, GLuint texture)
{
GstGLShader *shader;
gl->TexParameteri (GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP);
gl->TexParameteri (GL_TEXTURE_1D, GL_TEXTURE_WRAP_T, GL_CLAMP);
- gl->TexImage1D (GL_TEXTURE_1D, 0, curve.bytes_per_pixel,
- curve.width, 0, GL_RGB, GL_UNSIGNED_BYTE, curve.pixel_data);
+ gl->TexImage1D (GL_TEXTURE_1D, 0, curve->bytes_per_pixel,
+ curve->width, 0, GL_RGB, GL_UNSIGNED_BYTE, curve->pixel_data);
gl->Disable (GL_TEXTURE_1D);
}
{
GstGLEffects *effects = GST_GL_EFFECTS (data);
- gst_gl_effects_rgb_to_curve (effects, xpro_curve, GST_GL_EFFECTS_CURVE_XPRO,
+ gst_gl_effects_rgb_to_curve (effects, &xpro_curve, GST_GL_EFFECTS_CURVE_XPRO,
width, height, texture);
}