diff options
author | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-04-29 14:21:28 +0200 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-04-29 14:21:28 +0200 |
commit | 9970d4c316a658235c69c7fd5e2864a200eac254 (patch) | |
tree | 6e1deba2219b804ee3db94fc0e2a5a94fab5a26f | |
parent | 22acb9a8314f8c8d40fbf036f36d0dff7e7506bf (diff) |
sobel: drop unused single pass sobel shader
Drop unused sobel shader, if anyone still needs it, git log is your
friend.
-rw-r--r-- | gst/gl/effects/gstgleffectssources.c | 35 | ||||
-rw-r--r-- | gst/gl/effects/gstgleffectssources.h | 1 |
2 files changed, 0 insertions, 36 deletions
diff --git a/gst/gl/effects/gstgleffectssources.c b/gst/gl/effects/gstgleffectssources.c index 20c4ba5..f14c391 100644 --- a/gst/gl/effects/gstgleffectssources.c +++ b/gst/gl/effects/gstgleffectssources.c @@ -273,41 +273,6 @@ const gchar *luma_threshold_fragment_source = " gl_FragColor = vec4 (vec3 (smoothstep (0.30, 0.50, luma)), color.a);" "}"; -const gchar *sobel_fragment_source = - "#extension GL_ARB_texture_rectangle : enable\n" - "uniform sampler2DRect tex;" - "uniform float hkern[9];" - "uniform float vkern[9];" - "uniform bool invert;" - "void main () {" - " vec2 offset[9];" - " offset[0] = vec2(-1.0,-1.0);" - " offset[1] = vec2( 0.0,-1.0);" - " offset[2] = vec2( 1.0,-1.0);" - " offset[3] = vec2(-1.0, 0.0);" - " offset[4] = vec2( 0.0, 0.0);" - " offset[5] = vec2( 1.0, 0.0);" - " offset[6] = vec2(-1.0, 1.0);" - " offset[7] = vec2( 0.0, 1.0);" - " offset[8] = vec2( 1.0, 1.0);" - " vec2 texturecoord = gl_TexCoord[0].st;" - " int i;" - " float luma;" - " float gx = 0.0;" - " float gy = 0.0 ;" - " for (i = 0; i < 9; i++) { " - " if(hkern[i] != 0.0 || vkern[i] != 0.0) {" - " vec4 neighbor = texture2DRect(tex, texturecoord + vec2(offset[i])); " - " luma = dot(neighbor, vec4(0.2125, 0.7154, 0.0721, neighbor.a));" - " gx += luma * hkern[i]; " - " gy += luma * vkern[i]; " - " }" - " }" - " float g = sqrt(gx*gx + gy*gy);" - " if (invert) g = 1.0 - g;" - " gl_FragColor = vec4(vec3(g), 1.0);" - "}"; - const gchar *sep_sobel_length_fragment_source = "#extension GL_ARB_texture_rectangle : enable\n" "uniform sampler2DRect tex;" diff --git a/gst/gl/effects/gstgleffectssources.h b/gst/gl/effects/gstgleffectssources.h index eebb87d..b442962 100644 --- a/gst/gl/effects/gstgleffectssources.h +++ b/gst/gl/effects/gstgleffectssources.h @@ -32,7 +32,6 @@ extern const gchar *twirl_fragment_source; extern const gchar *bulge_fragment_source; extern const gchar *square_fragment_source; extern const gchar *luma_threshold_fragment_source; -extern const gchar *sobel_fragment_source; extern const gchar *sep_sobel_length_fragment_source; extern const gchar *desaturate_fragment_source; extern const gchar *sep_sobel_hconv3_fragment_source; |