71 lines
2.1 KiB
XML
71 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<effect id="org.olivevideoeditor.Olive.blur">
|
|
<!-- Effect Name -->
|
|
<name lang="en_US">Blur</name>
|
|
|
|
<!-- Effect Category -->
|
|
<category lang="en_US">Blur</category>
|
|
|
|
<!-- Effect Description -->
|
|
<description lang="en_US">
|
|
Blurs an image.
|
|
</description>
|
|
|
|
<!-- Parameter: Texture Input -->
|
|
<param id="tex_in" type="texture" iterative_input="1">
|
|
<name lang="en_US">Input</name>
|
|
</param>
|
|
|
|
<!-- Parameter: Method Input -->
|
|
<param id="method_in" type="combo">
|
|
<name lang="en_US">Method</name>
|
|
<option>
|
|
<name lang="en_US">Box</name>
|
|
<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>
|
|
</option>
|
|
<option>
|
|
<name lang="en_US">Gaussian</name>
|
|
<description lang="en_US">A smooth blur using the gaussian function. Slower than box blur but much prettier.</description>
|
|
</option>
|
|
</param>
|
|
|
|
<!-- Parameter: Radius Input -->
|
|
<param id="radius_in" type="float">
|
|
<name lang="en_US">Radius</name>
|
|
<min>0</min>
|
|
<default>
|
|
<value>10</value>
|
|
</default>
|
|
</param>
|
|
|
|
<!-- Parameter: Horizontal Enable -->
|
|
<param id="horiz_in" type="bool">
|
|
<name lang="en_US">Horizontal</name>
|
|
<default>
|
|
<value>1</value>
|
|
</default>
|
|
</param>
|
|
|
|
<!-- Parameter: Vertical Enable -->
|
|
<param id="vert_in" type="bool">
|
|
<name lang="en_US">Vertical</name>
|
|
<default>
|
|
<value>1</value>
|
|
</default>
|
|
</param>
|
|
|
|
<!-- Parameter: Repeat Edge Pixels -->
|
|
<param id="repeat_edge_pixels_in" type="bool">
|
|
<name lang="en_US">Repeat Edge Pixels</name>
|
|
<default>
|
|
<value>0</value>
|
|
</default>
|
|
</param>
|
|
|
|
<!-- Qt Resource path to fragment shader -->
|
|
<fragment url=":/shaders/blur.frag"/>
|
|
|
|
<!-- Blur uses two iterations for horizontal and vertical since calculating 2*radius is faster than radius^2 -->
|
|
<iterations>2</iterations>
|
|
</effect>
|