reimplemented blur shaders with new format xml metadata

These could be reimplemented almost wholesale, however the code has been
cleaned up and documented and the XML metadata has been updated to support
international translations.
This commit is contained in:
itsmattkc
2019-12-15 00:37:44 +11:00
parent a4f24e22d3
commit b5b6ffa0a1
4 changed files with 191 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<effect id="org.olivevideoeditor.Olive.boxblur">
<!-- Effect Name -->
<name lang="en_US">Box Blur</name>
<!-- Effect Category -->
<category lang="en_US">Blur</category>
<!-- Effect Description -->
<description lang="en_US">
A fast blur calculated by averaging a square of pixels around each pixel. Fast, but can have a "striated" look to it.
</description>
<!-- Parameter: Texture Input -->
<param id="tex_in" type="texture" iteration_in="1">
<name lang="en_US">Input</name>
</param>
<!-- Parameter: Radius Input -->
<param id="radius_in" type="float">
<name lang="en_US">Radius</name>
<min>0</min>
<default>10</default>
</param>
<!-- Parameter: Horizontal Enable -->
<param id="horiz_in" type="bool">
<name lang="en_US">Horizontal</name>
<default>true</default>
</param>
<!-- Parameter: Vertical Enable -->
<param id="vert_in" type="bool">
<name lang="en_US">Vertical</name>
<default>true</default>
</param>
<!-- Qt Resource path to fragment shader -->
<fragment url=":/shaders/boxblur.frag"/>
<!-- Blur uses two iterations for horizontal and vertical since calculating 2*radius is faster than radius^2 -->
<iterations>2</iterations>
</effect>