[gst-cvs] gst-plugins-gl: convolution: generate gaussian kernel on the fly
Filippo Argiolas
fargiolas at kemper.freedesktop.org
Sat Apr 24 11:13:51 PDT 2010
Module: gst-plugins-gl
Branch: master
Commit: 3a43353ac9dabba9470cc78595a2a46b490ad414
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/commit/?id=3a43353ac9dabba9470cc78595a2a46b490ad414
Author: Filippo Argiolas <filippo.argiolas at gmail.com>
Date: Fri Apr 23 20:06:48 2010 +0200
convolution: generate gaussian kernel on the fly
Generate a normalized gaussian kernel with given size and standard
deviation on the fly.
Remove "norm_const" uniform from convolution shaders and provide a
normalized kernel instead. Remove norm_offset uniform as it was always
zero, will reintroduce it if really needed in the future. Thanks to Eric
Anholt for suggesting it.
Save some ALU instruction calculating directly the coordinate for
texture lookup instead of summing an offset.
Still exceed maximum indirect texture lookups on i915, the only solution
I see is using a 3x3 kernel.
---
gst/gl/effects/gstgleffectglow.c | 20 ++++--------
gst/gl/effects/gstgleffectssources.c | 56 +++++++++++++++++++++++-----------
gst/gl/effects/gstgleffectssources.h | 2 +
gst/gl/effects/gstgleffectxray.c | 18 ++++-------
gst/gl/gstgldifferencematte.c | 39 +++++++----------------
gst/gl/gstgldifferencematte.h | 1 +
gst/gl/gstglfilterblur.c | 30 ++++--------------
gst/gl/gstglfilterblur.h | 1 +
8 files changed, 74 insertions(+), 93 deletions(-)
Diff: http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/diff/?id=3a43353ac9dabba9470cc78595a2a46b490ad414
More information about the Gstreamer-commits
mailing list