Blame ext/gl/effects/gstgleffectmirror.c

Packit 0652a1
/*
Packit 0652a1
 * GStreamer
Packit 0652a1
 * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Library General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Library General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Library General Public
Packit 0652a1
 * License along with this library; if not, write to the
Packit 0652a1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 0652a1
 * Boston, MA 02110-1301, USA.
Packit 0652a1
 */
Packit 0652a1
#ifdef HAVE_CONFIG_H
Packit 0652a1
#include "config.h"
Packit 0652a1
#endif
Packit 0652a1
Packit 0652a1
#include "../gstgleffects.h"
Packit 0652a1
Packit 0652a1
void
Packit 0652a1
gst_gl_effects_mirror (GstGLEffects * effects)
Packit 0652a1
{
Packit 0652a1
  GstGLFilter *filter = GST_GL_FILTER (effects);
Packit 0652a1
  GstGLShader *shader;
Packit 0652a1
Packit 0652a1
  shader = gst_gl_effects_get_fragment_shader (effects, "mirror",
Packit 0652a1
      mirror_fragment_source_gles2);
Packit 0652a1
  gst_gl_filter_render_to_target_with_shader (filter, effects->intexture,
Packit 0652a1
      effects->outtexture, shader);
Packit 0652a1
}