mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
[106/906] up sobel algo
git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@522 93df14bb-0f41-7a43-8087-d3e2a2f0e464
This commit is contained in:
parent
646aaf4cd3
commit
6fe0a756a1
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ gst_gl_filter_edge_init (GstGLFilterEdge* filter,
|
||||||
" gH += gH + filterH[i] * gray_i;\n"
|
" gH += gH + filterH[i] * gray_i;\n"
|
||||||
" gV += gV + filterV[i] * gray_i;\n"
|
" gV += gV + filterV[i] * gray_i;\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
" float g = sqrt(gH * gH + gV * gV) / 8.0;\n"
|
" float g = sqrt(gH * gH + gV * gV) / 256.0;\n"
|
||||||
" gl_FragColor = vec4(g, g, g, 1.0);\n"
|
" gl_FragColor = vec4(g, g, g, 1.0);\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue