aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/effects/BrightnessContrast.qml203
-rw-r--r--src/effects/CMakeLists.txt143
-rw-r--r--src/effects/ColorOverlay.qml157
-rw-r--r--src/effects/Colorize.qml247
-rw-r--r--src/effects/ConicalGradient.qml342
-rw-r--r--src/effects/Desaturate.qml156
-rw-r--r--src/effects/Displace.qml199
-rw-r--r--src/effects/DropShadow.qml326
-rw-r--r--src/effects/FastBlur.qml446
-rw-r--r--src/effects/GammaAdjust.qml193
-rw-r--r--src/effects/Glow.qml247
-rw-r--r--src/effects/HueSaturation.qml233
-rw-r--r--src/effects/LevelAdjust.qml449
-rw-r--r--src/effects/LinearGradient.qml332
-rw-r--r--src/effects/OpacityMask.qml171
-rw-r--r--src/effects/RadialGradient.qml419
-rw-r--r--src/effects/RectangularGlow.qml278
-rw-r--r--src/effects/ThresholdMask.qml224
-rw-r--r--src/effects/doc/images/BrightnessContrast_brightness1.pngbin90550 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_brightness2.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_brightness3.pngbin78231 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_bug.pngbin86971 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast1.pngbin118354 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast2.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast3.pngbin74037 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast_graph.pngbin10294 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_butterfly.pngbin21119 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_color1.pngbin20971 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_color2.pngbin21216 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_color3.pngbin21249 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_bug.pngbin90630 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue1.pngbin117918 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue2.pngbin101185 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue3.pngbin118495 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue_scale.pngbin2507 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_lightness1.pngbin56097 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_lightness2.pngbin100170 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_lightness3.pngbin63887 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_saturation1.pngbin85926 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_saturation2.pngbin116288 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_saturation3.pngbin100170 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient.pngbin13963 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_angle1.pngbin14224 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_angle2.pngbin15762 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_angle3.pngbin14271 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_gradient1.pngbin22589 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_gradient2.pngbin18418 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_gradient3.pngbin19164 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_horizontalOffset1.pngbin14236 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_horizontalOffset2.pngbin14224 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_horizontalOffset3.pngbin13786 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_maskSource1.pngbin14224 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_maskSource2.pngbin12285 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_bug.pngbin109437 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_desaturation1.pngbin137558 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_desaturation2.pngbin131559 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_desaturation3.pngbin76845 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_bug.pngbin126526 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_displacement1.pngbin138262 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_displacement2.pngbin137579 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_displacement3.pngbin136887 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_map.pngbin15520 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow-transparentBorder.pngbin8932 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_butterfly.pngbin28892 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_color1.pngbin28151 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_color2.pngbin29274 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_color3.pngbin27840 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_fast1.pngbin26617 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_fast2.pngbin29947 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_horizontalOffset1.pngbin27248 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_horizontalOffset2.pngbin25137 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_horizontalOffset3.pngbin27152 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_radius1.pngbin26410 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_radius2.pngbin26340 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_radius3.pngbin26838 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_spread1.pngbin26297 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_spread2.pngbin26288 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_spread3.pngbin21974 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_bug.pngbin66467 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_radius1.pngbin146075 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_radius2.pngbin62965 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_radius3.pngbin45502 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_transparentBorder1.pngbin45502 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_transparentBorder2.pngbin62518 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_bug.pngbin110990 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma1.pngbin132555 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma1_graph.pngbin12313 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma2.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma2_graph.pngbin10524 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma3.pngbin148761 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma3_graph.pngbin12152 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow-transparentBorder.pngbin8212 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_butterfly.pngbin30815 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_color1.pngbin26917 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_color2.pngbin24307 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_color3.pngbin24145 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_fast1.pngbin28113 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_fast2.pngbin31388 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_radius1.pngbin22700 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_radius2.pngbin25277 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_radius3.pngbin26267 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_spread1.pngbin25502 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_spread2.pngbin26917 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_spread3.pngbin23249 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_bug.pngbin131055 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_hue1.pngbin147628 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_hue2.pngbin146104 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_hue3.pngbin147161 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_lightness1.pngbin118304 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_lightness2.pngbin146104 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_lightness3.pngbin118329 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_saturation1.pngbin130480 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_saturation2.pngbin146104 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_saturation3.pngbin145687 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_butterfly.pngbin20574 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_default_curve.pngbin8702 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma1.pngbin22502 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma1_curve.pngbin8702 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma2.pngbin22179 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma2_curve.pngbin16343 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma3.pngbin19273 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma3_curve.pngbin15837 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput2.pngbin19353 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput2_curve.pngbin11589 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput3.pngbin18810 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput3_curve.pngbin11224 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput2.pngbin20571 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput2_curve.pngbin11727 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput3.pngbin20152 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput3_curve.pngbin11143 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput2.pngbin21299 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput2_curve.pngbin11925 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput3.pngbin21174 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput3_curve.pngbin11862 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput2.pngbin20625 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput2_curve.pngbin11976 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput3.pngbin20248 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput3_curve.pngbin11690 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient.pngbin1014 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_end1.pngbin3038 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_end2.pngbin3370 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_end3.pngbin964 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_gradient1.pngbin2970 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_gradient2.pngbin5035 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_gradient3.pngbin6921 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_maskSource1.pngbin3038 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_maskSource2.pngbin9197 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_start1.pngbin3038 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_start2.pngbin3120 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_start3.pngbin994 -> 0 bytes
-rw-r--r--src/effects/doc/images/OpacityMask_bug.pngbin32712 -> 0 bytes
-rw-r--r--src/effects/doc/images/OpacityMask_mask.pngbin23210 -> 0 bytes
-rw-r--r--src/effects/doc/images/Original_bug.pngbin126233 -> 0 bytes
-rw-r--r--src/effects/doc/images/Original_butterfly.pngbin26172 -> 0 bytes
-rw-r--r--src/effects/doc/images/Original_butterfly_black.pngbin23291 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient.pngbin14615 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_angle1.pngbin13226 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_angle2.pngbin12562 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_angle3.pngbin8579 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_default.pngbin38888 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_gradient1.pngbin23482 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_gradient2.pngbin23997 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_gradient3.pngbin24488 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalOffset1.pngbin12449 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalOffset2.pngbin14898 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalOffset3.pngbin12494 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalRadius1.pngbin14898 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalRadius2.pngbin13226 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalRadius3.pngbin25340 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_maskSource1.pngbin14898 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_maskSource2.pngbin10670 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_withmask.pngbin36472 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_applied.pngbin4771 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_color1.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_color2.pngbin5881 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_color3.pngbin5808 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_cornerRadius1.pngbin2132 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_cornerRadius2.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_cornerRadius3.pngbin7238 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_glowRadius1.pngbin3586 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_glowRadius2.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_glowRadius3.pngbin6451 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_spread1.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_spread2.pngbin3468 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_spread3.pngbin950 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_bug.pngbin122641 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_mask.pngbin67419 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_spread1.pngbin103062 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_spread2.pngbin140580 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_spread3.pngbin164039 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_threshold1.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_threshold2.pngbin118087 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_threshold3.pngbin73829 -> 0 bytes
-rw-r--r--src/effects/doc/images/bug.jpgbin376684 -> 0 bytes
-rw-r--r--src/effects/doc/images/butterfly.pngbin36912 -> 0 bytes
-rw-r--r--src/effects/doc/images/checker.pngbin1202 -> 0 bytes
-rw-r--r--src/effects/doc/images/fog.pngbin192467 -> 0 bytes
-rw-r--r--src/effects/doc/images/glass_normal.pngbin13489 -> 0 bytes
-rw-r--r--src/effects/doc/qtgraphicaleffects.qdocconf44
-rw-r--r--src/effects/doc/snippets/BrightnessContrast-example.qml74
-rw-r--r--src/effects/doc/snippets/ColorOverlay-example.qml73
-rw-r--r--src/effects/doc/snippets/Colorize-example.qml75
-rw-r--r--src/effects/doc/snippets/ConicalGradient-example.qml68
-rw-r--r--src/effects/doc/snippets/Desaturate-example.qml73
-rw-r--r--src/effects/doc/snippets/Displace-example.qml87
-rw-r--r--src/effects/doc/snippets/DropShadow-example.qml80
-rw-r--r--src/effects/doc/snippets/DropShadow-transparentBorder-example.qml92
-rw-r--r--src/effects/doc/snippets/FastBlur-example.qml75
-rw-r--r--src/effects/doc/snippets/GammaAdjust-example.qml73
-rw-r--r--src/effects/doc/snippets/Glow-example.qml79
-rw-r--r--src/effects/doc/snippets/Glow-transparentBorder-example.qml92
-rw-r--r--src/effects/doc/snippets/HueSaturation-example.qml75
-rw-r--r--src/effects/doc/snippets/LevelAdjust-example.qml74
-rw-r--r--src/effects/doc/snippets/LinearGradient-example.qml69
-rw-r--r--src/effects/doc/snippets/OpacityMask-example.qml81
-rw-r--r--src/effects/doc/snippets/RadialGradient-example.qml66
-rw-r--r--src/effects/doc/snippets/RectangularGlow-example.qml84
-rw-r--r--src/effects/doc/snippets/ThresholdMask-example.qml90
-rw-r--r--src/effects/doc/src/overview-graphicaleffects.qdoc69
-rw-r--r--src/effects/doc/src/qtgraphicaleffects.qdoc89
-rw-r--r--src/effects/effects.pro3
-rw-r--r--src/effects/effects_plugin.pro32
-rw-r--r--src/effects/plugin.cpp78
-rw-r--r--src/effects/plugins.qmltypes11
-rw-r--r--src/effects/private/.prev_CMakeLists.txt73
-rw-r--r--src/effects/private/CMakeLists.txt44
-rw-r--r--src/effects/private/FastGlow.qml342
-rw-r--r--src/effects/private/plugin.cpp79
-rw-r--r--src/effects/private/private.pro21
-rw-r--r--src/effects/private/qgfxsourceproxy.cpp216
-rw-r--r--src/effects/private/qgfxsourceproxy_p.h125
-rw-r--r--src/effects/private/qmldir4
-rw-r--r--src/effects/qmldir23
-rw-r--r--src/effects/qtgraphicaleffectsshaders.qrc28
-rw-r--r--src/effects/shaders_ng/brightnesscontrast.frag26
-rw-r--r--src/effects/shaders_ng/brightnesscontrast.frag.qsbbin2491 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/colorize.frag72
-rw-r--r--src/effects/shaders_ng/colorize.frag.qsbbin4482 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/coloroverlay.frag20
-rw-r--r--src/effects/shaders_ng/coloroverlay.frag.qsbbin1908 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/compile.bat77
-rw-r--r--src/effects/shaders_ng/conicalgradient_mask.frag25
-rw-r--r--src/effects/shaders_ng/conicalgradient_mask.frag.qsbbin2354 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/conicalgradient_nomask.frag23
-rw-r--r--src/effects/shaders_ng/conicalgradient_nomask.frag.qsbbin2143 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/desaturate.frag21
-rw-r--r--src/effects/shaders_ng/desaturate.frag.qsbbin1865 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/displace.frag39
-rw-r--r--src/effects/shaders_ng/displace.frag.qsbbin3270 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastblur.frag32
-rw-r--r--src/effects/shaders_ng/fastblur.frag.qsbbin2306 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastblur_internal.frag25
-rw-r--r--src/effects/shaders_ng/fastblur_internal.frag.qsbbin1863 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastblur_internal.vert27
-rw-r--r--src/effects/shaders_ng/fastblur_internal.vert.qsbbin2614 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastglow.frag40
-rw-r--r--src/effects/shaders_ng/fastglow.frag.qsbbin2944 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/gammaadjust.frag22
-rw-r--r--src/effects/shaders_ng/gammaadjust.frag.qsbbin1924 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/huesaturation.frag91
-rw-r--r--src/effects/shaders_ng/huesaturation.frag.qsbbin5549 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/leveladjust.frag47
-rw-r--r--src/effects/shaders_ng/leveladjust.frag.qsbbin3685 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/lineargradient.vert31
-rw-r--r--src/effects/shaders_ng/lineargradient.vert.qsbbin2474 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/lineargradient_mask.frag23
-rw-r--r--src/effects/shaders_ng/lineargradient_mask.frag.qsbbin1906 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/lineargradient_nomask.frag20
-rw-r--r--src/effects/shaders_ng/lineargradient_nomask.frag.qsbbin1621 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/opacitymask.frag19
-rw-r--r--src/effects/shaders_ng/opacitymask.frag.qsbbin1601 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/opacitymask_invert.frag19
-rw-r--r--src/effects/shaders_ng/opacitymask_invert.frag.qsbbin1643 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/radialgradient.vert39
-rw-r--r--src/effects/shaders_ng/radialgradient.vert.qsbbin2778 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/radialgradient_mask.frag25
-rw-r--r--src/effects/shaders_ng/radialgradient_mask.frag.qsbbin2187 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/radialgradient_nomask.frag23
-rw-r--r--src/effects/shaders_ng/radialgradient_nomask.frag.qsbbin1946 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/rectangularglow.frag30
-rw-r--r--src/effects/shaders_ng/rectangularglow.frag.qsbbin2274 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/thresholdmask.frag23
-rw-r--r--src/effects/shaders_ng/thresholdmask.frag.qsbbin2028 -> 0 bytes
-rw-r--r--src/src.pro2
289 files changed, 0 insertions, 8370 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
deleted file mode 100644
index b344062..0000000
--- a/src/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Generated from src.pro.
-
-add_subdirectory(effects)
diff --git a/src/effects/BrightnessContrast.qml b/src/effects/BrightnessContrast.qml
deleted file mode 100644
index c2820f6..0000000
--- a/src/effects/BrightnessContrast.qml
+++ /dev/null
@@ -1,203 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype BrightnessContrast
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Adjusts brightness and contrast.
-
- This effect adjusts the source item colors.
- Brightness adjustment changes the perceived luminance of the source item.
- Contrast adjustment increases or decreases the color
- and brightness variations.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image BrightnessContrast_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet BrightnessContrast-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines how much the source brightness is increased or
- decreased.
-
- The value ranges from -1.0 to 1.0. By default, the property is set to \c
- 0.0 (no change).
-
- \table
- \header
- \li Output examples with different brightness values
- \li
- \li
- \row
- \li \image BrightnessContrast_brightness1.png
- \li \image BrightnessContrast_brightness2.png
- \li \image BrightnessContrast_brightness3.png
- \row
- \li \b { brightness: -0.25 }
- \li \b { brightness: 0 }
- \li \b { brightness: 0.5 }
- \row
- \li \l contrast: 0
- \li \l contrast: 0
- \li \l contrast: 0
- \endtable
-
- */
- property real brightness: 0.0
-
- /*!
- This property defines how much the source contrast is increased or
- decreased. The decrease of the contrast is linear, but the increase is
- applied with a non-linear curve to allow very high contrast adjustment at
- the high end of the value range.
-
- \table
- \header
- \li Contrast adjustment curve
- \row
- \li \image BrightnessContrast_contrast_graph.png
- \endtable
-
- The value ranges from -1.0 to 1.0. By default, the property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different contrast values
- \li
- \li
- \row
- \li \image BrightnessContrast_contrast1.png
- \li \image BrightnessContrast_contrast2.png
- \li \image BrightnessContrast_contrast3.png
- \row
- \li \b { contrast: -0.5 }
- \li \b { contrast: 0 }
- \li \b { contrast: 0.5 }
- \row
- \li \l brightness: 0
- \li \l brightness: 0
- \li \l brightness: 0
- \endtable
-
- */
- property real contrast: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real brightness: rootItem.brightness
- property real contrast: rootItem.contrast
-
- anchors.fill: parent
- blending: !rootItem.cached
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/brightnesscontrast.frag.qsb"
- }
-}
diff --git a/src/effects/CMakeLists.txt b/src/effects/CMakeLists.txt
deleted file mode 100644
index cf66a9c..0000000
--- a/src/effects/CMakeLists.txt
+++ /dev/null
@@ -1,143 +0,0 @@
-# Generated from effects.pro.
-
-#####################################################################
-## qtgraphicaleffectsplugin Plugin:
-#####################################################################
-
-qt_internal_add_qml_module(qtgraphicaleffectsplugin
- URI "QtGraphicalEffects"
- VERSION "1.${CMAKE_PROJECT_VERSION_MINOR}"
- DESIGNER_SUPPORTED
- CLASSNAME QtGraphicalEffectsPlugin
- DEPENDENCIES
- QtGraphicalEffects/private/1.0
- QtQuick.Window/2.1
- SOURCES
- plugin.cpp
- PUBLIC_LIBRARIES
- Qt::Qml
- Qt::Quick
-)
-
-# Resources:
-set(qtgraphicaleffectsshaders_resource_files
- "shaders_ng/brightnesscontrast.frag.qsb"
- "shaders_ng/colorize.frag.qsb"
- "shaders_ng/coloroverlay.frag.qsb"
- "shaders_ng/conicalgradient_mask.frag.qsb"
- "shaders_ng/conicalgradient_nomask.frag.qsb"
- "shaders_ng/desaturate.frag.qsb"
- "shaders_ng/displace.frag.qsb"
- "shaders_ng/fastblur.frag.qsb"
- "shaders_ng/fastblur_internal.frag.qsb"
- "shaders_ng/fastblur_internal.vert.qsb"
- "shaders_ng/fastglow.frag.qsb"
- "shaders_ng/gammaadjust.frag.qsb"
- "shaders_ng/huesaturation.frag.qsb"
- "shaders_ng/leveladjust.frag.qsb"
- "shaders_ng/lineargradient.vert.qsb"
- "shaders_ng/lineargradient_mask.frag.qsb"
- "shaders_ng/lineargradient_nomask.frag.qsb"
- "shaders_ng/opacitymask.frag.qsb"
- "shaders_ng/opacitymask_invert.frag.qsb"
- "shaders_ng/radialgradient.vert.qsb"
- "shaders_ng/radialgradient_mask.frag.qsb"
- "shaders_ng/radialgradient_nomask.frag.qsb"
- "shaders_ng/rectangularglow.frag.qsb"
- "shaders_ng/thresholdmask.frag.qsb"
-)
-
-qt_internal_add_resource(qtgraphicaleffectsplugin "qtgraphicaleffectsshaders"
- PREFIX
- "/qt-project.org/imports/QtGraphicalEffects"
- FILES
- ${qtgraphicaleffectsshaders_resource_files}
-)
-
-
-#### Keys ignored in scope 2:.:.:effects_plugin.pro:<TRUE>:
-# CXX_MODULE = "qml"
-# IMPORT_VERSION = "1.$$QT_MINOR_VERSION"
-# QML_FILES = "BrightnessContrast.qml" "ColorOverlay.qml" "Colorize.qml" "ConicalGradient.qml" "Desaturate.qml" "Displace.qml" "DropShadow.qml" "FastBlur.qml" "GammaAdjust.qml" "Glow.qml" "HueSaturation.qml" "LevelAdjust.qml" "LinearGradient.qml" "OpacityMask.qml" "RadialGradient.qml" "RectangularGlow.qml" "ThresholdMask.qml"
-# TARGETPATH = "QtGraphicalEffects"
-
-set(qml_files
- "BrightnessContrast.qml"
- "ColorOverlay.qml"
- "Colorize.qml"
- "ConicalGradient.qml"
- "Desaturate.qml"
- "Displace.qml"
- "DropShadow.qml"
- "FastBlur.qml"
- "GammaAdjust.qml"
- "Glow.qml"
- "HueSaturation.qml"
- "LevelAdjust.qml"
- "LinearGradient.qml"
- "OpacityMask.qml"
- "RadialGradient.qml"
- "RectangularGlow.qml"
- "ThresholdMask.qml"
-)
-set_source_files_properties(BrightnessContrast.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(ColorOverlay.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Colorize.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(ConicalGradient.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Desaturate.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Displace.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(DropShadow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GammaAdjust.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Glow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(HueSaturation.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(LevelAdjust.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(LinearGradient.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(OpacityMask.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(RadialGradient.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(RectangularGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(ThresholdMask.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-
-qt6_target_qml_files(qtgraphicaleffectsplugin
- FILES
- ${qml_files}
-)
-qt_internal_add_docs(qtgraphicaleffectsplugin
- doc/qtgraphicaleffects.qdocconf
-)
-
-add_subdirectory(private)
diff --git a/src/effects/ColorOverlay.qml b/src/effects/ColorOverlay.qml
deleted file mode 100644
index 66bd766..0000000
--- a/src/effects/ColorOverlay.qml
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype ColorOverlay
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Alters the colors of the source item by applying an overlay color.
-
- The effect is similar to what happens when a colorized glass is put on top
- of a grayscale image. The color for the overlay is given in the RGBA format.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly.png
- \li \image ColorOverlay_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet ColorOverlay-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the RGBA color value which is used to colorize the
- source.
-
- By default, the property is set to \c "transparent".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image ColorOverlay_color1.png
- \li \image ColorOverlay_color2.png
- \li \image ColorOverlay_color3.png
- \row
- \li \b { color: #80ff0000 }
- \li \b { color: #8000ff00 }
- \li \b { color: #800000ff }
- \endtable
-
- */
- property color color: "transparent"
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property color color: rootItem.color
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/coloroverlay.frag.qsb"
- }
-}
diff --git a/src/effects/Colorize.qml b/src/effects/Colorize.qml
deleted file mode 100644
index fa99703..0000000
--- a/src/effects/Colorize.qml
+++ /dev/null
@@ -1,247 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Colorize
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Sets the color in the HSL color space.
-
- The effect is similar to what happens when a colorized glass is put on top
- of a grayscale image. Colorize uses the hue, saturation, and lightness (HSL)
- color space. You can specify a desired value for each property. You can
- shift all HSL values with the
- \l{QtGraphicalEffects::HueSaturation}{HueSaturation} effect.
-
- Alternatively, you can use the
- \l{QtGraphicalEffects::ColorOverlay}{ColorOverlay} effect to colorize the
- source item in the RGBA color space.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image Colorize_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Colorize-example.qml example
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the hue value which is used to colorize the
- source.
-
- The value ranges from 0.0 to 1.0. By default, the property is set to \c
- 0.0, which produces a slightly red color.
-
- \table
- \header
- \li Allowed hue values
- \row
- \li \image Colorize_hue_scale.png
- \endtable
-
- \table
- \header
- \li Output examples with different hue values
- \li
- \li
- \row
- \li \image Colorize_hue1.png
- \li \image Colorize_hue2.png
- \li \image Colorize_hue3.png
- \row
- \li \b { hue: 0.2 }
- \li \b { hue: 0.5 }
- \li \b { hue: 0.8 }
- \row
- \li \l saturation: 1
- \li \l saturation: 1
- \li \l saturation: 1
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
- */
- property real hue: 0.0
-
- /*!
- This property defines the saturation value which is used to colorize the
- source.
-
- The value ranges from 0.0 (desaturated) to 1.0 (saturated). By default,
- the property is set to \c 1.0 (saturated).
-
- \table
- \header
- \li Output examples with different saturation values
- \li
- \li
- \row
- \li \image Colorize_saturation1.png
- \li \image Colorize_saturation2.png
- \li \image Colorize_saturation3.png
- \row
- \li \b { saturation: 0 }
- \li \b { saturation: 0.5 }
- \li \b { saturation: 1 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
- */
- property real saturation: 1.0
-
- /*!
- This property defines how much the source lightness value is increased
- or decreased.
-
- Unlike hue and saturation properties, lightness does not set the used
- value, but it shifts the existing source pixel lightness value.
-
- The value ranges from -1.0 (decreased) to 1.0 (increased). By default,
- the property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different lightness values
- \li
- \li
- \row
- \li \image Colorize_lightness1.png
- \li \image Colorize_lightness2.png
- \li \image Colorize_lightness3.png
- \row
- \li \b { lightness: -0.75 }
- \li \b { lightness: 0 }
- \li \b { lightness: 0.75 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l saturation: 1
- \li \l saturation: 1
- \li \l saturation: 1
- \endtable
- */
- property real lightness: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real hue: rootItem.hue
- property real saturation: rootItem.saturation
- property real lightness: rootItem.lightness
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/colorize.frag.qsb"
-
- }
-}
diff --git a/src/effects/ConicalGradient.qml b/src/effects/ConicalGradient.qml
deleted file mode 100644
index ef5468b..0000000
--- a/src/effects/ConicalGradient.qml
+++ /dev/null
@@ -1,342 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype ConicalGradient
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-gradient
- \brief Draws a conical gradient.
-
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors start from the specified angle and end at 360 degrees larger
- angle value.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image ConicalGradient.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet ConicalGradient-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- /*!
- This property defines the starting angle where the color at the gradient
- position of 0.0 is rendered. Colors at larger position values are
- rendered into larger angle values and blended seamlessly. Angle values
- increase clockwise.
-
- \table
- \header
- \li Output examples with different angle values
- \li
- \li
- \row
- \li \image ConicalGradient_angle1.png
- \li \image ConicalGradient_angle2.png
- \li \image ConicalGradient_angle3.png
- \row
- \li \b { angle: 0 }
- \li \b { angle: 45 }
- \li \b { angle: 185 }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
-
- */
- property real angle: 0.0
-
- /*!
- \qmlproperty real QtGraphicalEffects::ConicalGradient::horizontalOffset
- \qmlproperty real QtGraphicalEffects::ConicalGradient::verticalOffset
-
- The horizontalOffset and verticalOffset properties define the offset in
- pixels for the center point of the gradient compared to the item center.
-
- The value ranges from -inf to inf. By default, the properties are set to \c
- 0.
-
- \table
- \header
- \li Output examples with different horizontalOffset values
- \li
- \li
- \row
- \li \image ConicalGradient_horizontalOffset1.png
- \li \image ConicalGradient_horizontalOffset2.png
- \li \image ConicalGradient_horizontalOffset3.png
- \row
- \li \b { horizontalOffset: -50 }
- \li \b { horizontalOffset: 0 }
- \li \b { horizontalOffset: 50 }
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
- */
- property real horizontalOffset: 0.0
- property real verticalOffset: 0.0
-
- /*!
- This property defines the item that is going to be filled with gradient.
- Source item gets rendered into an intermediate pixel buffer and the
- alpha values from the result are used to determine the gradient's pixels
- visibility in the display. The default value for source is undefined and
- in that case whole effect area is filled with gradient.
-
- \table
- \header
- \li Output examples with different source values
- \li
- \row
- \li \image ConicalGradient_maskSource1.png
- \li \image ConicalGradient_maskSource2.png
- \row
- \li \b { source: undefined }
- \li \b { source: }
- \row
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
-
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
-/*!
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors are specified as a set of GradientStop child items, each of which
- defines a position on the gradient (from 0.0 to 1.0), and a color.
- The position of each GradientStop is defined by the position property.
- The color is defined by the color property.
-
- \table
- \header
- \li Output examples with different gradient values
- \li
- \li
- \row
- \li \image ConicalGradient_gradient1.png
- \li \image ConicalGradient_gradient2.png
- \li \image ConicalGradient_gradient3.png
- \row
- \li \b {gradient:} \code
-Gradient {
- GradientStop {
- position: 0.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- GradientStop {
- position: 0.167
- color: Qt.rgba(1, 1, 0, 1)
- }
- GradientStop {
- position: 0.333
- color: Qt.rgba(0, 1, 0, 1)
- }
- GradientStop {
- position: 0.500
- color: Qt.rgba(0, 1, 1, 1)
- }
- GradientStop {
- position: 0.667
- color: Qt.rgba(0, 0, 1, 1)
- }
- GradientStop {
- position: 0.833
- color: Qt.rgba(1, 0, 1, 1)
- }
- GradientStop {
- position: 1.000
- color: Qt.rgba(1, 0, 0, 1)
- }
-}
- \endcode
- \li \b {gradient:} \code
-Gradient {
- GradientStop {
- position: 0.0
- color: "#F0F0F0"
- }
- GradientStop {
- position: 0.5
- color: "#000000"
- }
- GradientStop {
- position: 1.0
- color: "#F0F0F0"
- }
-}
- \endcode
- \li \b {gradient:} \code
-Gradient {
- GradientStop {
- position: 0.0
- color: "#00000000"
- }
- GradientStop {
- position: 1.0
- color: "#FF000000"
- }
-}
- \endcode
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
-
-*/
- property Gradient gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.source
- }
-
- Rectangle {
- id: gradientRect
- width: 16
- height: 256
- gradient: rootItem.gradient
- smooth: true
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- rotation: shaderItem.rotation
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant gradientSource: ShaderEffectSource {
- sourceItem: gradientRect
- smooth: true
- hideSource: true
- visible: false
- }
- property variant maskSource: maskSourceProxy.output
- property real startAngle: (rootItem.angle - 90) * Math.PI/180
- property variant center: Qt.point(0.5 + horizontalOffset / width, 0.5 + verticalOffset / height)
-
- anchors.fill: parent
-
- fragmentShader: maskSource == undefined ? noMaskShader : maskShader
-
- onFragmentShaderChanged: startAngleChanged()
-
- property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/conicalgradient_nomask.frag.qsb"
- property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/conicalgradient_mask.frag.qsb"
- }
-}
diff --git a/src/effects/Desaturate.qml b/src/effects/Desaturate.qml
deleted file mode 100644
index 64107b2..0000000
--- a/src/effects/Desaturate.qml
+++ /dev/null
@@ -1,156 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Desaturate
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Reduces the saturation of the colors.
-
- Desaturated pixel values are calculated as averages of the original RGB
- component values of the source item.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image Desaturate_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Desaturate-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels to
- the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines how much the source colors are desaturated.
-
- The value ranges from 0.0 (no change) to 1.0 (desaturated). By default,
- the property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different desaturation values
- \li
- \li
- \row
- \li \image Desaturate_desaturation1.png
- \li \image Desaturate_desaturation2.png
- \li \image Desaturate_desaturation3.png
- \row
- \li \b { desaturation: 0.0 }
- \li \b { desaturation: 0.5 }
- \li \b { desaturation: 1.0 }
- \endtable
- */
- property real desaturation: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real desaturation: rootItem.desaturation
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/desaturate.frag.qsb"
- }
-}
diff --git a/src/effects/Displace.qml b/src/effects/Displace.qml
deleted file mode 100644
index eed2a5a..0000000
--- a/src/effects/Displace.qml
+++ /dev/null
@@ -1,199 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Displace
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-distortion
- \brief Moves the pixels of the source item according to the given
- displacement map.
-
- \table
- \header
- \li Source
- \li DisplacementSource
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image Displace_map.png
- \li \image Displace_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Displace-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item for the pixels that are going to
- be displaced according to the data from
- \l{Displace::displacementSource}{displacementSource}.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the item that is going to be used as the
- displacement map. The displacementSource item gets rendered into the
- intermediate pixel buffer. The red and green component values from the
- result determine the displacement of the pixels from the source item.
-
- The format for the displacement map is similar to the tangent space
- normal maps, which can be created with most 3D-modeling tools. Many
- image processing tools include the support for generating normal maps.
- Alternatively, the displacement map for this effect can also be a QML
- element which is colored appropriately. Like any QML element, it can be
- animated. It is recommended that the size of the diplacement map matches
- the size of the \l{Displace::source}{source}.
-
- The displace data is interpreted in the RGBA format. For every pixel:
- the red channel stores the x-axis displacement, and the green channel
- stores the y-axis displacement. Blue and alpha channels are ignored for
- this effect.
-
- Assuming that red channel value 1.0 is fully red (0.0 having no red at
- all), this effect considers pixel component value 0.5 to cause no
- displacement at all. Values above 0.5 shift pixels to the left, values
- below 0.5 do the shift to the right. In a similar way, green channel
- values above 0.5 displace the pixels upwards, and values below 0.5 shift
- the pixels downwards. The actual amount of displacement in pixels
- depends on the \l displacement property.
-
- */
- property variant displacementSource
-
- /*!
- This property defines the scale for the displacement. The bigger scale,
- the bigger the displacement of the pixels. The value set to 0.0 causes
- no displacement.
-
- The value ranges from -1.0 (inverted maximum shift, according to
- displacementSource) to 1.0 (maximum shift, according to
- displacementSource). By default, the property is set to \c 0.0 (no
- displacement).
-
- \table
- \header
- \li Output examples with different displacement values
- \li
- \li
- \row
- \li \image Displace_displacement1.png
- \li \image Displace_displacement2.png
- \li \image Displace_displacement3.png
- \row
- \li \b { displacement: -0.2 }
- \li \b { displacement: 0.0 }
- \li \b { displacement: 0.2 }
- \endtable
-
- */
- property real displacement: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- SourceProxy {
- id: displacementSourceProxy
- input: rootItem.displacementSource
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant displacementSource: displacementSourceProxy.output
- property real displacement: rootItem.displacement
- property real xPixel: 1.0/width
- property real yPixel: 1.0/height
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/displace.frag.qsb"
- }
-}
diff --git a/src/effects/DropShadow.qml b/src/effects/DropShadow.qml
deleted file mode 100644
index 66c7a33..0000000
--- a/src/effects/DropShadow.qml
+++ /dev/null
@@ -1,326 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Copyright (C) 2017 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype DropShadow
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-drop-shadow
- \brief Generates a colorized and blurred shadow image of the
- source and places it behind the original, giving the impression that
- source item is raised from the background.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly.png
- \li \image DropShadow_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet DropShadow-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be used as the
- source for the generated shadow.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- Radius defines the softness of the shadow. A larger radius causes the
- edges of the shadow to appear more blurry.
-
- The value ranges from 0.0 (no blur) to inf. By default, the property is
- set to \c 0.0 (no blur).
-
- \table
- \header
- \li Output examples with different radius values
- \li
- \li
- \row
- \li \image DropShadow_radius1.png
- \li \image DropShadow_radius2.png
- \li \image DropShadow_radius3.png
- \row
- \li \b { radius: 0 }
- \li \b { radius: 6 }
- \li \b { radius: 12 }
- \row
- \li \l color: #000000
- \li \l color: #000000
- \li \l color: #000000
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
-
- */
- property real radius: 0.0
-
- /*!
- This property defines the RGBA color value which is used for the shadow.
-
- By default, the property is set to \c "black".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image DropShadow_color1.png
- \li \image DropShadow_color2.png
- \li \image DropShadow_color3.png
- \row
- \li \b { color: #000000 }
- \li \b { color: #0000ff }
- \li \b { color: #aa000000 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
-
- */
- property color color: "black"
-
- /*!
- \qmlproperty real QtGraphicalEffects1::DropShadow::horizontalOffset
- \qmlproperty real QtGraphicalEffects1::DropShadow::verticalOffset
-
- HorizontalOffset and verticalOffset properties define the offset for the
- rendered shadow compared to the DropShadow item position. Often, the
- DropShadow item is anchored so that it fills the source element. In this
- case, if the HorizontalOffset and verticalOffset properties are set to
- 0, the shadow is rendered exactly under the source item. By changing the
- offset properties, the shadow can be positioned relatively to the source
- item.
-
- The values range from -inf to inf. By default, the properties are set to
- \c 0.
-
- \table
- \header
- \li Output examples with different horizontalOffset values
- \li
- \li
- \row
- \li \image DropShadow_horizontalOffset1.png
- \li \image DropShadow_horizontalOffset2.png
- \li \image DropShadow_horizontalOffset3.png
- \row
- \li \b { horizontalOffset: -20 }
- \li \b { horizontalOffset: 0 }
- \li \b { horizontalOffset: 20 }
- \row
- \li \l radius: 4
- \li \l radius: 4
- \li \l radius: 4
- \row
- \li \l color: #000000
- \li \l color: #000000
- \li \l color: #000000
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
-
- */
- property real horizontalOffset: 0.0
- property real verticalOffset: 0.0
-
- /*!
- This property defines how large part of the shadow color is strenghtened
- near the source edges.
-
- The value ranges from 0.0 to 1.0. By default, the property is set to \c
- 0.5.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image DropShadow_spread1.png
- \li \image DropShadow_spread2.png
- \li \image DropShadow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l color: #000000
- \li \l color: #000000
- \li \l color: #000000
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \endtable
-
- */
- property real spread: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance. Every time the source or effect
- properties are changed, the pixels in the cache must be updated. Memory
- consumption is increased, because an extra buffer of memory is required
- for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- /*!
- This property determines whether or not the effect has a transparent
- border.
-
- When set to \c true, the exterior of the item is padded with a 1 pixel
- wide transparent edge, making sampling outside the source texture use
- transparency instead of the edge pixels. Without this property, an
- image which has opaque edges will not get a blurred edge.
-
- In the image below, the Rectangle on the left has transparent borders
- and has blurred edges, whereas the Rectangle on the right does not:
-
- \snippet DropShadow-transparentBorder-example.qml example
-
- \image DropShadow-transparentBorder.png
- */
- property bool transparentBorder: false
-
- Loader {
- x: rootItem.horizontalOffset
- y: rootItem.verticalOffset
- width: parent.width
- height: parent.height
- sourceComponent: fastGlow
- }
-
- Component {
- id: fastGlow
- FastGlow {
- anchors.fill: parent
- source: sourceProxy.output
- blur: Math.pow(rootItem.radius / 64.0, 0.4)
- color: rootItem.color
- cached: rootItem.cached
- spread: rootItem.spread
- transparentBorder: rootItem.transparentBorder
- }
- }
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- sourceRect: rootItem.transparentBorder ? Qt.rect(-1, -1, parent.width + 2.0, parent.height + 2.0) : Qt.rect(0, 0, 0, 0)
- }
- ShaderEffect {
- anchors.fill: parent
- property variant source: sourceProxy.output
- }
-}
diff --git a/src/effects/FastBlur.qml b/src/effects/FastBlur.qml
deleted file mode 100644
index 6b7021f..0000000
--- a/src/effects/FastBlur.qml
+++ /dev/null
@@ -1,446 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype FastBlur
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-blur
- \brief Applies a fast blur effect to one or more source items.
-
- The FastBlur effect softens the source content by blurring it with algorithm
- which uses the source content downscaling and bilinear filtering.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image FastBlur_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet FastBlur-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be blurred.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the distance of the neighboring pixels which affect
- the blurring of an individual pixel. A larger radius increases the blur
- effect. FastBlur algorithm may internally reduce the accuracy of the radius in order to
- provide good rendering performance.
-
- The value ranges from 0.0 (no blur) to inf. Visual quality of the blur is reduced when
- radius exceeds value 64. By default, the property is set to \c 0.0 (no blur).
-
- \table
- \header
- \li Output examples with different blur values
- \li
- \li
- \row
- \li \image FastBlur_radius1.png
- \li \image FastBlur_radius2.png
- \li \image FastBlur_radius3.png
- \row
- \li \b { radius: 0 }
- \li \b { radius: 32 }
- \li \b { radius: 64 }
- \endtable
- */
- property real radius: 0.0
-
- /*!
- This property defines the blur behavior near the edges of the item,
- where the pixel blurring is affected by the pixels outside the source
- edges.
-
- If the property is set to \c true, the pixels outside the source are
- interpreted to be transparent, which is similar to OpenGL
- clamp-to-border extension. The blur is expanded slightly outside the
- effect item area.
-
- If the property is set to \c false, the pixels outside the source are
- interpreted to contain the same color as the pixels at the edge of the
- item, which is similar to OpenGL clamp-to-edge behavior. The blur does
- not expand outside the effect item area.
-
- By default, the property is set to \c false.
-
- \table
- \header
- \li Output examples with different transparentBorder values
- \li
- \li
- \row
- \li \image FastBlur_transparentBorder1.png
- \li \image FastBlur_transparentBorder2.png
- \row
- \li \b { transparentBorder: false }
- \li \b { transparentBorder: true }
- \row
- \li \l radius: 64
- \li \l radius: 64
- \endtable
- */
- property bool transparentBorder: false
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- sourceItem: shaderItem
- live: true
- hideSource: visible
- smooth: rootItem.radius > 0
- }
-
- /*! \internal */
- property string __internalBlurVertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"
-
- /*! \internal */
- property string __internalBlurFragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"
-
- ShaderEffect {
- id: level0
- property variant source: sourceProxy.output
- anchors.fill: parent
- visible: false
- smooth: true
- }
-
- ShaderEffectSource {
- id: level1
- width: Math.ceil(shaderItem.width / 32) * 32
- height: Math.ceil(shaderItem.height / 32) * 32
- sourceItem: level0
- hideSource: rootItem.visible
- sourceRect: transparentBorder ? Qt.rect(-64, -64, shaderItem.width, shaderItem.height) : Qt.rect(0, 0, 0, 0)
- visible: false
- smooth: rootItem.radius > 0
- }
-
- ShaderEffect {
- id: effect1
- property variant source: level1
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level2
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level2
- width: level1.width / 2
- height: level1.height / 2
- sourceItem: effect1
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect2
- property variant source: level2
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level3
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level3
- width: level2.width / 2
- height: level2.height / 2
- sourceItem: effect2
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect3
- property variant source: level3
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level4
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level4
- width: level3.width / 2
- height: level3.height / 2
- sourceItem: effect3
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect4
- property variant source: level4
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level5
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level5
- width: level4.width / 2
- height: level4.height / 2
- sourceItem: effect4
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect5
- property variant source: level5
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level6
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level6
- width: level5.width / 2
- height: level5.height / 2
- sourceItem: effect5
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- Item {
- id: dummysource
- width: 1
- height: 1
- visible: false
- }
-
- ShaderEffectSource {
- id: dummy
- width: 1
- height: 1
- sourceItem: dummysource
- visible: false
- smooth: false
- live: false
- }
-
- ShaderEffect {
- id: shaderItem
-
- property variant source1: level1
- property variant source2: level2
- property variant source3: level3
- property variant source4: level4
- property variant source5: level5
- property variant source6: level6
- property real lod: Math.sqrt(rootItem.radius / 64.0) * 1.2 - 0.2
- property real weight1
- property real weight2
- property real weight3
- property real weight4
- property real weight5
- property real weight6
-
- x: transparentBorder ? -64 : 0
- y: transparentBorder ? -64 : 0
- width: transparentBorder ? parent.width + 128 : parent.width
- height: transparentBorder ? parent.height + 128 : parent.height
-
- function weight(v) {
- if (v <= 0.0)
- return 1.0
- if (v >= 0.5)
- return 0.0
-
- return 1.0 - v * 2.0
- }
-
- function calculateWeights() {
-
- var w1 = weight(Math.abs(lod - 0.100))
- var w2 = weight(Math.abs(lod - 0.300))
- var w3 = weight(Math.abs(lod - 0.500))
- var w4 = weight(Math.abs(lod - 0.700))
- var w5 = weight(Math.abs(lod - 0.900))
- var w6 = weight(Math.abs(lod - 1.100))
-
- var sum = w1 + w2 + w3 + w4 + w5 + w6;
- weight1 = w1 / sum;
- weight2 = w2 / sum;
- weight3 = w3 / sum;
- weight4 = w4 / sum;
- weight5 = w5 / sum;
- weight6 = w6 / sum;
-
- upateSources()
- }
-
- function upateSources() {
- var sources = new Array();
- var weights = new Array();
-
- if (weight1 > 0) {
- sources.push(level1)
- weights.push(weight1)
- }
-
- if (weight2 > 0) {
- sources.push(level2)
- weights.push(weight2)
- }
-
- if (weight3 > 0) {
- sources.push(level3)
- weights.push(weight3)
- }
-
- if (weight4 > 0) {
- sources.push(level4)
- weights.push(weight4)
- }
-
- if (weight5 > 0) {
- sources.push(level5)
- weights.push(weight5)
- }
-
- if (weight6 > 0) {
- sources.push(level6)
- weights.push(weight6)
- }
-
- for (var j = sources.length; j < 6; j++) {
- sources.push(dummy)
- weights.push(0.0)
- }
-
- source1 = sources[0]
- source2 = sources[1]
- source3 = sources[2]
- source4 = sources[3]
- source5 = sources[4]
- source6 = sources[5]
-
- weight1 = weights[0]
- weight2 = weights[1]
- weight3 = weights[2]
- weight4 = weights[3]
- weight5 = weights[4]
- weight6 = weights[5]
- }
-
- Component.onCompleted: calculateWeights()
-
- onLodChanged: calculateWeights()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur.frag.qsb"
- }
-}
diff --git a/src/effects/GammaAdjust.qml b/src/effects/GammaAdjust.qml
deleted file mode 100644
index f412f80..0000000
--- a/src/effects/GammaAdjust.qml
+++ /dev/null
@@ -1,193 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype GammaAdjust
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Alters the luminance of the source item.
-
- GammaAdjust is applied to each pixel according to the curve which is
- pre-defined as a power-law expression, where the property gamma is used as the
- reciprocal scaling exponent. Refer to the property documentation of \l{GammaAdjust::gamma}{gamma}
- for more details.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image GammaAdjust_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet GammaAdjust-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item for which the luminance is going to be
- adjusted.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the change factor for how the luminance of each pixel
- is altered according to the equation:
-
- \code
-luminance = pow(original_luminance, 1.0 / gamma); // The luminance is assumed to be between 0.0 and 1.0
- \endcode
-
- Setting the gamma values under 1.0 makes the image darker, the values
- above 1.0 lighten it.
-
- The value ranges from 0.0 (darkest) to inf (lightest). By default, the
- property is set to \c 1.0 (no change).
-
- \table
- \header
- \li Output examples with different gamma values
- \li
- \li
- \row
- \li \image GammaAdjust_gamma1.png
- \li \image GammaAdjust_gamma2.png
- \li \image GammaAdjust_gamma3.png
- \row
- \li \b { gamma: 0.5 }
- \li \b { gamma: 1.0 }
- \li \b { gamma: 2.0 }
- \endtable
-
- \table
- \header
- \li Pixel luminance curves of the above images.
- \li
- \li
- \row
- \li \image GammaAdjust_gamma1_graph.png
- \li \image GammaAdjust_gamma2_graph.png
- \li \image GammaAdjust_gamma3_graph.png
- \row
- \li Red curve: default gamma (1.0)
- \li
- \li
- \row
- \li Yellow curve: effect applied
- \li
- \li
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: pixel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property real gamma: 1.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real gamma: 1.0 / Math.max(rootItem.gamma, 0.0001)
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/gammaadjust.frag.qsb"
- }
-}
diff --git a/src/effects/Glow.qml b/src/effects/Glow.qml
deleted file mode 100644
index 71bc26d..0000000
--- a/src/effects/Glow.qml
+++ /dev/null
@@ -1,247 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Copyright (C) 2017 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Glow
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-glow
- \brief Generates a blurred and colorized image of the source and places it
- behind the original, giving impression that the source is glowing.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly_black.png
- \li \image Glow_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Glow-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be used as source
- for the generated glow.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- Radius defines the softness of the glow. A larger radius causes the
- edges of the glow to appear more blurry.
-
- The value ranges from 0.0 (no blur) to inf. By default, the property is
- set to \c 0.0 (no blur).
-
- \table
- \header
- \li Output examples with different radius values
- \li
- \li
- \row
- \li \image Glow_radius1.png
- \li \image Glow_radius2.png
- \li \image Glow_radius3.png
- \row
- \li \b { radius: 0 }
- \li \b { radius: 6 }
- \li \b { radius: 12 }
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
- */
- property real radius: 0.0
-
- /*!
- This property defines how large part of the glow color is strenghtened
- near the source edges.
-
- The values range from 0.0 to 1.0. By default, the property is set to \c
- 0.5.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image Glow_spread1.png
- \li \image Glow_spread2.png
- \li \image Glow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \endtable
- */
- property real spread: 0.0
-
- /*!
- This property defines the RGBA color value which is used for the glow.
-
- By default, the property is set to \c "white".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image Glow_color1.png
- \li \image Glow_color2.png
- \li \image Glow_color3.png
- \row
- \li \b { color: #ffffff }
- \li \b { color: #00ff00 }
- \li \b { color: #aa00ff00 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l spread: 0.5
- \li \l spread: 0.5
- \li \l spread: 0.5
- \endtable
-
- */
- property color color: "white"
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- /*!
- This property determines whether or not the effect has a transparent
- border.
-
- When set to \c true, the exterior of the item is padded with a 1 pixel
- wide transparent edge, making sampling outside the source texture use
- transparency instead of the edge pixels. Without this property, an
- image which has opaque edges will not get a blurred edge.
-
- In the snippet below, the Rectangle on the left has transparent borders
- and has blurred edges, whereas the Rectangle on the right does not.
-
- \snippet Glow-transparentBorder-example.qml example
-
- \image Glow-transparentBorder.png
- */
- property bool transparentBorder: false
-
- Loader {
- anchors.fill: parent
- sourceComponent: fastGlow
- }
-
- Component {
- id: fastGlow
- FastGlow {
- anchors.fill: parent
- source: sourceProxy.output
- blur: Math.pow(rootItem.radius / 64.0, 0.4)
- color: rootItem.color
- cached: rootItem.cached
- spread: rootItem.spread
- transparentBorder: rootItem.transparentBorder
- }
- }
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- sourceRect: rootItem.transparentBorder ? Qt.rect(-1, -1, parent.width + 2.0, parent.height + 2.0) : Qt.rect(0, 0, 0, 0)
- }
- ShaderEffect {
- anchors.fill: parent
- property variant source: sourceProxy.output
- }
-}
diff --git a/src/effects/HueSaturation.qml b/src/effects/HueSaturation.qml
deleted file mode 100644
index 4b6769e..0000000
--- a/src/effects/HueSaturation.qml
+++ /dev/null
@@ -1,233 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype HueSaturation
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Alters the source item colors in the HSL color space.
-
- HueSaturation is similar to the \l{QtGraphicalEffects::Colorize}{Colorize}
- effect, but the hue and saturation property values are handled differently.
- The HueSaturation effect always shifts the hue, saturation, and lightness
- from the original, instead of setting them.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image HueSaturation_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet HueSaturation-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source: 0
-
- /*!
- This property defines the hue value which is added to the source hue
- value.
-
- The value ranges from -1.0 (decrease) to 1.0 (increase). By default, the
- property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different hue values
- \li
- \li
- \row
- \li \image HueSaturation_hue1.png
- \li \image HueSaturation_hue2.png
- \li \image HueSaturation_hue3.png
- \row
- \li \b { hue: -0.3 }
- \li \b { hue: 0.0 }
- \li \b { hue: 0.3 }
- \row
- \li \l saturation: 0
- \li \l saturation: 0
- \li \l saturation: 0
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
-
- */
- property real hue: 0.0
-
- /*!
- This property defines the saturation value value which is added to the
- source saturation value.
-
- The value ranges from -1.0 (decrease) to 1.0 (increase). By default, the
- property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different saturation values
- \li
- \li
- \row
- \li \image HueSaturation_saturation1.png
- \li \image HueSaturation_saturation2.png
- \li \image HueSaturation_saturation3.png
- \row
- \li \b { saturation: -0.8 }
- \li \b { saturation: 0.0 }
- \li \b { saturation: 1.0 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
-
- */
- property real saturation: 0.0
-
- /*!
- This property defines the lightness value which is added to the source
- saturation value.
-
- The value ranges from -1.0 (decrease) to 1.0 (increase). By default, the
- property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different lightness values
- \li
- \li
- \row
- \li \image HueSaturation_lightness1.png
- \li \image HueSaturation_lightness2.png
- \li \image HueSaturation_lightness3.png
- \row
- \li \b { lightness: -0.5 }
- \li \b { lightness: 0.0 }
- \li \b { lightness: 0.5 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l saturation: 0
- \li \l saturation: 0
- \li \l saturation: 0
- \endtable
-
- */
- property real lightness: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant hsl: Qt.vector3d(rootItem.hue, rootItem.saturation, rootItem.lightness)
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/huesaturation.frag.qsb"
- }
-}
diff --git a/src/effects/LevelAdjust.qml b/src/effects/LevelAdjust.qml
deleted file mode 100644
index 5ea2e17..0000000
--- a/src/effects/LevelAdjust.qml
+++ /dev/null
@@ -1,449 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype LevelAdjust
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Adjusts color levels in the RGBA color space.
-
- This effect adjusts the source item colors separately for each color
- channel. Source item contrast can be adjusted and color balance altered.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly.png
- \li \image LevelAdjust_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet LevelAdjust-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the change factor for how the value of each pixel
- color channel is altered according to the equation:
-
- \code
- result.rgb = pow(original.rgb, 1.0 / gamma.rgb);
- \endcode
-
- Setting the gamma values under QtVector3d(1.0, 1.0, 1.0) makes the image
- darker, the values above QtVector3d(1.0, 1.0, 1.0) lighten it.
-
- The value ranges from QtVector3d(0.0, 0.0, 0.0) (darkest) to inf
- (lightest). By default, the property is set to \c QtVector3d(1.0, 1.0,
- 1.0) (no change).
-
- \table
- \header
- \li Output examples with different gamma values
- \li
- \li
- \row
- \li \image LevelAdjust_gamma1.png
- \li \image LevelAdjust_gamma2.png
- \li \image LevelAdjust_gamma3.png
- \row
- \li \b { gamma: Qt.vector3d(1.0, 1.0, 1.0) }
- \li \b { gamma: Qt.vector3d(1.0, 0.4, 2.0) }
- \li \b { gamma: Qt.vector3d(1.0, 0.1, 4.0) }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_gamma2_curve.png
- \li \image LevelAdjust_gamma3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
- */
- property variant gamma: Qt.vector3d(1.0, 1.0, 1.0)
-
- /*!
- This property defines the minimum input level for each color channel. It
- sets the black-point, all pixels having lower value than this property
- are rendered as black (per color channel). Increasing the value darkens
- the dark areas.
-
- The value ranges from "#00000000" to "#ffffffff". By default, the
- property is set to \c "#00000000" (no change).
-
- \table
- \header
- \li Output examples with different minimumInput values
- \li
- \li
- \row
- \li \image LevelAdjust_minimumInput1.png
- \li \image LevelAdjust_minimumInput2.png
- \li \image LevelAdjust_minimumInput3.png
- \row
- \li \b { minimumInput: #00000000 }
- \li \b { minimumInput: #00000040 }
- \li \b { minimumInput: #00000070 }
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_minimumInput2_curve.png
- \li \image LevelAdjust_minimumInput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property color minimumInput: Qt.rgba(0.0, 0.0, 0.0, 0.0)
-
- /*!
- This property defines the maximum input level for each color channel.
- It sets the white-point, all pixels having higher value than this
- property are rendered as white (per color channel).
- Decreasing the value lightens the light areas.
-
- The value ranges from "#ffffffff" to "#00000000". By default, the
- property is set to \c "#ffffffff" (no change).
-
- \table
- \header
- \li Output examples with different maximumInput values
- \li
- \li
- \row
- \li \image LevelAdjust_maximumInput1.png
- \li \image LevelAdjust_maximumInput2.png
- \li \image LevelAdjust_maximumInput3.png
- \row
- \li \b { maximumInput: #FFFFFFFF }
- \li \b { maximumInput: #FFFFFF80 }
- \li \b { maximumInput: #FFFFFF30 }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_maximumInput2_curve.png
- \li \image LevelAdjust_maximumInput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property color maximumInput: Qt.rgba(1.0, 1.0, 1.0, 1.0)
-
- /*!
- This property defines the minimum output level for each color channel.
- Increasing the value lightens the dark areas, reducing the contrast.
-
- The value ranges from "#00000000" to "#ffffffff". By default, the
- property is set to \c "#00000000" (no change).
-
- \table
- \header
- \li Output examples with different minimumOutput values
- \li
- \li
- \row
- \li \image LevelAdjust_minimumOutput1.png
- \li \image LevelAdjust_minimumOutput2.png
- \li \image LevelAdjust_minimumOutput3.png
- \row
- \li \b { minimumOutput: #00000000 }
- \li \b { minimumOutput: #00000070 }
- \li \b { minimumOutput: #000000A0 }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_minimumOutput2_curve.png
- \li \image LevelAdjust_minimumOutput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property color minimumOutput: Qt.rgba(0.0, 0.0, 0.0, 0.0)
-
- /*!
- This property defines the maximum output level for each color channel.
- Decreasing the value darkens the light areas, reducing the contrast.
-
- The value ranges from "#ffffffff" to "#00000000". By default, the
- property is set to \c "#ffffffff" (no change).
-
- \table
- \header
- \li Output examples with different maximumOutput values
- \li
- \li
- \row
- \li \image LevelAdjust_maximumOutput1.png
- \li \image LevelAdjust_maximumOutput2.png
- \li \image LevelAdjust_maximumOutput3.png
- \row
- \li \b { maximumOutput: #FFFFFFFF }
- \li \b { maximumOutput: #FFFFFF80 }
- \li \b { maximumOutput: #FFFFFF30 }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_maximumOutput2_curve.png
- \li \image LevelAdjust_maximumOutput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
- */
- property color maximumOutput: Qt.rgba(1.0, 1.0, 1.0, 1.0)
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant minimumInputRGB: Qt.vector3d(rootItem.minimumInput.r, rootItem.minimumInput.g, rootItem.minimumInput.b)
- property variant maximumInputRGB: Qt.vector3d(rootItem.maximumInput.r, rootItem.maximumInput.g, rootItem.maximumInput.b)
- property real minimumInputAlpha: rootItem.minimumInput.a
- property real maximumInputAlpha: rootItem.maximumInput.a
- property variant minimumOutputRGB: Qt.vector3d(rootItem.minimumOutput.r, rootItem.minimumOutput.g, rootItem.minimumOutput.b)
- property variant maximumOutputRGB: Qt.vector3d(rootItem.maximumOutput.r, rootItem.maximumOutput.g, rootItem.maximumOutput.b)
- property real minimumOutputAlpha: rootItem.minimumOutput.a
- property real maximumOutputAlpha: rootItem.maximumOutput.a
- property variant gamma: Qt.vector3d(1.0 / Math.max(rootItem.gamma.x, 0.0001), 1.0 / Math.max(rootItem.gamma.y, 0.0001), 1.0 / Math.max(rootItem.gamma.z, 0.0001))
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/leveladjust.frag.qsb"
- }
-}
diff --git a/src/effects/LinearGradient.qml b/src/effects/LinearGradient.qml
deleted file mode 100644
index e82c360..0000000
--- a/src/effects/LinearGradient.qml
+++ /dev/null
@@ -1,332 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype LinearGradient
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-gradient
- \brief Draws a linear gradient.
-
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors start from the given start point and end to the given end point.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image LinearGradient.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet LinearGradient-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the starting point where the color at gradient
- position of 0.0 is rendered. Colors at larger position values are
- rendered linearly towards the end point. The point is given in pixels
- and the default value is Qt.point(0, 0). Setting the default values for
- the start and \l{LinearGradient::end}{end} results in a full height
- linear gradient on the y-axis.
-
- \table
- \header
- \li Output examples with different start values
- \li
- \li
- \row
- \li \image LinearGradient_start1.png
- \li \image LinearGradient_start2.png
- \li \image LinearGradient_start3.png
- \row
- \li \b { start: QPoint(0, 0) }
- \li \b { start: QPoint(150, 150) }
- \li \b { start: QPoint(300, 0) }
- \row
- \li \l end: QPoint(300, 300)
- \li \l end: QPoint(300, 300)
- \li \l end: QPoint(300, 300)
- \endtable
-
- */
- property variant start: Qt.point(0, 0)
-
- /*!
- This property defines the ending point where the color at gradient
- position of 1.0 is rendered. Colors at smaller position values are
- rendered linearly towards the start point. The point is given in pixels
- and the default value is Qt.point(0, height). Setting the default values
- for the \l{LinearGradient::start}{start} and end results in a full
- height linear gradient on the y-axis.
-
- \table
- \header
- \li Output examples with different end values
- \li
- \li
- \row
- \li \image LinearGradient_end1.png
- \li \image LinearGradient_end2.png
- \li \image LinearGradient_end3.png
- \row
- \li \b { end: Qt.point(300, 300) }
- \li \b { end: Qt.point(150, 150) }
- \li \b { end: Qt.point(300, 0) }
- \row
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \endtable
-
- */
- property variant end: Qt.point(0, height)
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- /*!
- This property defines the item that is going to be filled with gradient.
- Source item gets rendered into an intermediate pixel buffer and the
- alpha values from the result are used to determine the gradient's pixels
- visibility in the display. The default value for source is undefined and
- in that case whole effect area is filled with gradient.
-
- \table
- \header
- \li Output examples with different source values
- \li
- \li
- \row
- \li \image LinearGradient_maskSource1.png
- \li \image LinearGradient_maskSource2.png
- \row
- \li \b { source: undefined }
- \li \b { source: Image { source: images/butterfly.png } }
- \row
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \row
- \li \l end: Qt.point(300, 300)
- \li \l end: Qt.point(300, 300)
- \endtable
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
-
- /*!
- A gradient is defined by two or more colors, which are blended
- seamlessly. The colors are specified as a set of GradientStop child
- items, each of which defines a position on the gradient from 0.0 to 1.0
- and a color. The position of each GradientStop is defined by the
- position property, and the color is definded by the color property.
-
- \table
- \header
- \li Output examples with different gradient values
- \li
- \li
- \row
- \li \image LinearGradient_gradient1.png
- \li \image LinearGradient_gradient2.png
- \li \image LinearGradient_gradient3.png
- \row
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- GradientStop {
- position: 0.167
- color: Qt.rgba(1, 1, 0, 1)
- }
- GradientStop {
- position: 0.333
- color: Qt.rgba(0, 1, 0, 1)
- }
- GradientStop {
- position: 0.500
- color: Qt.rgba(0, 1, 1, 1)
- }
- GradientStop {
- position: 0.667
- color: Qt.rgba(0, 0, 1, 1)
- }
- GradientStop {
- position: 0.833
- color: Qt.rgba(1, 0, 1, 1)
- }
- GradientStop {
- position: 1.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- }
- \endcode
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#F0F0F0"
- }
- GradientStop {
- position: 0.5
- color: "#000000"
- }
- GradientStop {
- position: 1.0
- color: "#F0F0F0"
- }
- }
- \endcode
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#00000000"
- }
- GradientStop {
- position: 1.0
- color: "#FF000000"
- }
- }
- \endcode
- \row
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \row
- \li \l end: Qt.point(300, 300)
- \li \l end: Qt.point(300, 300)
- \li \l end: Qt.point(300, 300)
- \endtable
-
- */
- property Gradient gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: gradientSource
- sourceItem: Rectangle {
- width: 16
- height: 256
- gradient: rootItem.gradient
- smooth: true
- }
- smooth: true
- hideSource: true
- visible: false
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
-
- anchors.fill: parent
-
- property variant source: gradientSource
- property variant maskSource: maskSourceProxy.output
- property variant startPoint: Qt.point(start.x / width, start.y / height)
- property real dx: end.x - start.x
- property real dy: end.y - start.y
- property real l: 1.0 / Math.sqrt(Math.pow(dx / width, 2.0) + Math.pow(dy / height, 2.0))
- property real angle: Math.atan2(dx, dy)
- property variant matrixData: Qt.point(Math.sin(angle), Math.cos(angle))
-
- vertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient.vert.qsb"
-
- fragmentShader: maskSource == undefined ? noMaskShader : maskShader
-
- onFragmentShaderChanged: lChanged()
-
- property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient_mask.frag.qsb"
- property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient_nomask.frag.qsb"
- }
-}
diff --git a/src/effects/OpacityMask.qml b/src/effects/OpacityMask.qml
deleted file mode 100644
index 2f58fa9..0000000
--- a/src/effects/OpacityMask.qml
+++ /dev/null
@@ -1,171 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype OpacityMask
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-mask
- \brief Masks the source item with another item.
-
- \table
- \header
- \li Source
- \li MaskSource
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image OpacityMask_mask.png
- \li \image OpacityMask_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet OpacityMask-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be masked.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the item that is going to be used as the mask. The
- mask item gets rendered into an intermediate pixel buffer and the alpha
- values from the result are used to determine the source item's pixels
- visibility in the display.
-
- \table
- \header
- \li Original
- \li Mask
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image OpacityMask_mask.png
- \li \image OpacityMask_bug.png
- \endtable
- */
- property variant maskSource
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- \note It is not supported to let the effect include itself, for
- instance by setting maskSource to the effect's parent.
- */
- property bool cached: false
-
- /*!
- This property controls how the alpha values of the sourceMask will behave.
-
- If this property is \c false, the resulting opacity is the source alpha
- multiplied with the mask alpha, \c{As * Am}.
-
- If this property is \c true, the resulting opacity is the source alpha
- multiplied with the inverse of the mask alpha, \c{As * (1 - Am)}.
-
- The default is \c false.
-
- \since 5.7
- */
- property bool invert: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.maskSource
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant maskSource: maskSourceProxy.output
-
- anchors.fill: parent
-
- fragmentShader: invert ? "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/opacitymask_invert.frag.qsb" : "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/opacitymask.frag.qsb"
- }
-}
diff --git a/src/effects/RadialGradient.qml b/src/effects/RadialGradient.qml
deleted file mode 100644
index 9e7dc25..0000000
--- a/src/effects/RadialGradient.qml
+++ /dev/null
@@ -1,419 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype RadialGradient
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-gradient
- \brief Draws a radial gradient.
-
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors start from the middle of the item and end at the borders.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image RadialGradient.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet RadialGradient-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- /*!
- \qmlproperty real RadialGradient::horizontalOffset
- \qmlproperty real RadialGradient::verticalOffset
-
- The horizontalOffset and verticalOffset properties define the offset in
- pixels for the center point of the gradient compared to the item center.
-
- The values range from -inf to inf. By default, these properties are set
- to \c 0.
-
- \table
- \header
- \li Output examples with different horizontalOffset values
- \li
- \li
- \row
- \li \image RadialGradient_horizontalOffset1.png
- \li \image RadialGradient_horizontalOffset2.png
- \li \image RadialGradient_horizontalOffset3.png
- \row
- \li \b { horizontalOffset: -150 }
- \li \b { horizontalOffset: 0 }
- \li \b { horizontalOffset: 150 }
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \endtable
-
- */
- property real horizontalOffset: 0.0
- property real verticalOffset: 0.0
-
- /*!
- \qmlproperty real RadialGradient::horizontalRadius
- \qmlproperty real RadialGradient::verticalRadius
-
- The horizontalRadius and verticalRadius properties define the shape and
- size of the radial gradient. If the radiuses are equal, the shape of the
- gradient is a circle. If the horizontal and vertical radiuses differ,
- the shape is elliptical. The radiuses are given in pixels.
-
- The value ranges from -inf to inf. By default, horizontalRadius is bound
- to width and verticalRadius is bound to height.
-
- \table
- \header
- \li Output examples with different horizontalRadius values
- \li
- \li
- \row
- \li \image RadialGradient_horizontalRadius1.png
- \li \image RadialGradient_horizontalRadius2.png
- \row
- \li \b { horizontalRadius: 300 }
- \li \b { horizontalRadius: 100 }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l gradient: QQuickGradient(0xa05fb10)
- \li \l gradient: QQuickGradient(0xa05fb10)
- \endtable
-
- */
- property real horizontalRadius: width
- property real verticalRadius: height
-
- /*!
- This property defines the rotation of the gradient around its center
- point. The rotation is only visible when the
- \l{RadialGradient::horizontalRadius}{horizontalRadius} and
- \l{RadialGradient::verticalRadius}{verticalRadius} properties are not
- equal. The angle is given in degrees and the default value is \c 0.
-
- \table
- \header
- \li Output examples with different angle values
- \li
- \li
- \row
- \li \image RadialGradient_angle1.png
- \li \image RadialGradient_angle2.png
- \li \image RadialGradient_angle3.png
- \row
- \li \b { angle: 0 }
- \li \b { angle: 45 }
- \li \b { angle: 90 }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 100
- \li \l horizontalRadius: 100
- \li \l horizontalRadius: 100
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \endtable
- */
- property real angle: 0.0
-
- /*!
- This property defines the item that is going to be filled with gradient.
- Source item gets rendered into an intermediate pixel buffer and the
- alpha values from the result are used to determine the gradient's pixels
- visibility in the display. The default value for source is undefined and
- in that case whole effect area is filled with gradient.
-
- \table
- \header
- \li Output examples with different source values
- \li
- \li
- \row
- \li \image RadialGradient_maskSource1.png
- \li \image RadialGradient_maskSource2.png
- \row
- \li \b { source: undefined }
- \li \b { source: Image { source: images/butterfly.png } }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \endtable
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- A gradient is defined by two or more colors, which are blended
- seamlessly. The colors are specified as a set of GradientStop child
- items, each of which defines a position on the gradient from 0.0 to 1.0
- and a color. The position of each GradientStop is defined by setting the
- position property. The color is defined by setting the color property.
-
- \table
- \header
- \li Output examples with different gradient values
- \li
- \li
- \row
- \li \image RadialGradient_gradient1.png
- \li \image RadialGradient_gradient2.png
- \li \image RadialGradient_gradient3.png
- \row
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- GradientStop {
- position: 0.167
- color: Qt.rgba(1, 1, 0, 1)
- }
- GradientStop {
- position: 0.333
- color: Qt.rgba(0, 1, 0, 1)
- }
- GradientStop {
- position: 0.500
- color: Qt.rgba(0, 1, 1, 1)
- }
- GradientStop {
- position: 0.667
- color: Qt.rgba(0, 0, 1, 1)
- }
- GradientStop {
- position: 0.833
- color: Qt.rgba(1, 0, 1, 1)
- }
- GradientStop {
- position: 1.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- }
- \endcode
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#F0F0F0"
- }
- GradientStop {
- position: 0.5
- color: "#000000"
- }
- GradientStop {
- position: 1.0
- color: "#F0F0F0"
- }
- }
- \endcode
- \li \b {gradient:}
- \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#00000000"
- }
- GradientStop {
- position: 1.0
- color: "#FF000000"
- }
- }
- \endcode
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \endtable
- */
- property Gradient gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: gradientSource
- sourceItem: Rectangle {
- width: 16
- height: 256
- gradient: rootItem.gradient
- smooth: true
- }
- smooth: true
- hideSource: true
- visible: false
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant gradientImage: gradientSource
- property variant maskSource: maskSourceProxy.output
- property variant center: Qt.point(0.5 + rootItem.horizontalOffset / width, 0.5 + rootItem.verticalOffset / height)
- property real horizontalRatio: rootItem.horizontalRadius > 0 ? width / (2 * rootItem.horizontalRadius) : width * 16384
- property real verticalRatio: rootItem.verticalRadius > 0 ? height / (2 * rootItem.verticalRadius) : height * 16384
- property real angle: -rootItem.angle / 360 * 2 * Math.PI
- property variant matrixData: Qt.point(Math.sin(angle), Math.cos(angle))
-
- anchors.fill: parent
-
- vertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient.vert.qsb"
-
- fragmentShader: maskSource == undefined ? noMaskShader : maskShader
-
- onFragmentShaderChanged: horizontalRatioChanged()
-
- property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient_mask.frag.qsb"
- property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient_nomask.frag.qsb"
- }
-}
diff --git a/src/effects/RectangularGlow.qml b/src/effects/RectangularGlow.qml
deleted file mode 100644
index a148de9..0000000
--- a/src/effects/RectangularGlow.qml
+++ /dev/null
@@ -1,278 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype RectangularGlow
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-glow
- \brief Generates a blurred and colorized rectangle, which gives
- the impression that the source is glowing.
-
- This effect is intended to have good performance. The shape of the glow is
- limited to a rectangle with a custom corner radius. For situations where
- custom shapes are required, consider \l {QtGraphicalEffects::Glow} {Glow}
- effect.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image RectangularGlow_applied.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet RectangularGlow-example.qml example
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines how many pixels outside the item area are reached
- by the glow.
-
- The value ranges from 0.0 (no glow) to inf (infinite glow). By default,
- the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different glowRadius values
- \li
- \li
- \row
- \li \image RectangularGlow_glowRadius1.png
- \li \image RectangularGlow_glowRadius2.png
- \li \image RectangularGlow_glowRadius3.png
- \row
- \li \b { glowRadius: 10 }
- \li \b { glowRadius: 20 }
- \li \b { glowRadius: 40 }
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
-
- */
- property real glowRadius: 0.0
-
- /*!
- This property defines how large part of the glow color is strengthened
- near the source edges.
-
- The value ranges from 0.0 (no strength increase) to 1.0 (maximum
- strength increase). By default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image RectangularGlow_spread1.png
- \li \image RectangularGlow_spread2.png
- \li \image RectangularGlow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
- */
- property real spread: 0.0
-
- /*!
- This property defines the RGBA color value which is used for the glow.
-
- By default, the property is set to \c "white".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image RectangularGlow_color1.png
- \li \image RectangularGlow_color2.png
- \li \image RectangularGlow_color3.png
- \row
- \li \b { color: #ffffff }
- \li \b { color: #55ff55 }
- \li \b { color: #5555ff }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
- */
- property color color: "white"
-
- /*!
- This property defines the corner radius that is used to draw a glow with
- rounded corners.
-
- The value ranges from 0.0 to half of the effective width or height of
- the glow, whichever is smaller. This can be calculated with: \c{
- min(width, height) / 2.0 + glowRadius}
-
- By default, the property is bound to glowRadius property. The glow
- behaves as if the rectangle was blurred when adjusting the glowRadius
- property.
-
- \table
- \header
- \li Output examples with different cornerRadius values
- \li
- \li
- \row
- \li \image RectangularGlow_cornerRadius1.png
- \li \image RectangularGlow_cornerRadius2.png
- \li \image RectangularGlow_cornerRadius3.png
- \row
- \li \b { cornerRadius: 0 }
- \li \b { cornerRadius: 25 }
- \li \b { cornerRadius: 50 }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \endtable
- */
- property real cornerRadius: glowRadius
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
-
- x: (parent.width - width) / 2.0
- y: (parent.height - height) / 2.0
- width: parent.width + rootItem.glowRadius * 2 + cornerRadius * 2
- height: parent.height + rootItem.glowRadius * 2 + cornerRadius * 2
-
- function clampedCornerRadius() {
- var maxCornerRadius = Math.min(rootItem.width, rootItem.height) / 2 + glowRadius;
- return Math.max(0, Math.min(rootItem.cornerRadius, maxCornerRadius))
- }
-
- property color color: rootItem.color
- property real inverseSpread: 1.0 - rootItem.spread
- property real relativeSizeX: ((inverseSpread * inverseSpread) * rootItem.glowRadius + cornerRadius * 2.0) / width
- property real relativeSizeY: relativeSizeX * (width / height)
- property real spread: rootItem.spread / 2.0
- property real cornerRadius: clampedCornerRadius()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/rectangularglow.frag.qsb"
- }
-}
diff --git a/src/effects/ThresholdMask.qml b/src/effects/ThresholdMask.qml
deleted file mode 100644
index 911ec4c..0000000
--- a/src/effects/ThresholdMask.qml
+++ /dev/null
@@ -1,224 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype ThresholdMask
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-mask
- \brief Masks the source item with another item and applies a threshold
- value.
-
- The masking behavior can be controlled with the \l threshold value for the
- mask pixels.
-
- \table
- \header
- \li Source
- \li MaskSource
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image ThresholdMask_mask.png
- \li \image ThresholdMask_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet ThresholdMask-example.qml example
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be masked.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the item that is going to be used as the mask.
- Mask item gets rendered into an intermediate pixel buffer and the alpha
- values from the result are used to determine the source item's pixels
- visibility in the display.
-
- \table
- \header
- \li Original
- \li Mask
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image ThresholdMask_mask.png
- \li \image ThresholdMask_bug.png
- \endtable
-
- \note It is not supported to let the effect include itself, for
- instance by setting maskSource to the effect's parent.
- */
- property variant maskSource
-
- /*!
- This property defines a threshold value for the mask pixels. The mask
- pixels that have an alpha value below this property are used to
- completely mask away the corresponding pixels from the source item. The
- mask pixels that have a higher alpha value are used to alphablend the
- source item to the display.
-
- The value ranges from 0.0 (alpha value 0) to 1.0 (alpha value 255). By
- default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different threshold values
- \li
- \li
- \row
- \li \image ThresholdMask_threshold1.png
- \li \image ThresholdMask_threshold2.png
- \li \image ThresholdMask_threshold3.png
- \row
- \li \b { threshold: 0.0 }
- \li \b { threshold: 0.5 }
- \li \b { threshold: 0.7 }
- \row
- \li \l spread: 0.2
- \li \l spread: 0.2
- \li \l spread: 0.2
- \endtable
- */
- property real threshold: 0.0
-
- /*!
- This property defines the smoothness of the mask edges near the
- \l{ThresholdMask::threshold}{threshold} alpha value. Setting spread to
- 0.0 uses mask normally with the specified threshold. Setting higher
- spread values softens the transition from the transparent mask pixels
- towards opaque mask pixels by adding interpolated values between them.
-
- The value ranges from 0.0 (sharp mask edge) to 1.0 (smooth mask edge).
- By default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image ThresholdMask_spread1.png
- \li \image ThresholdMask_spread2.png
- \li \image ThresholdMask_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.2 }
- \li \b { spread: 0.8 }
- \row
- \li \l threshold: 0.4
- \li \l threshold: 0.4
- \li \l threshold: 0.4
- \endtable
-
- */
- property real spread: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.maskSource
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant maskSource: maskSourceProxy.output
- property real threshold: rootItem.threshold
- property real spread: rootItem.spread
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/thresholdmask.frag.qsb"
- }
-}
diff --git a/src/effects/doc/images/BrightnessContrast_brightness1.png b/src/effects/doc/images/BrightnessContrast_brightness1.png
deleted file mode 100644
index 98a9d25..0000000
--- a/src/effects/doc/images/BrightnessContrast_brightness1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_brightness2.png b/src/effects/doc/images/BrightnessContrast_brightness2.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/BrightnessContrast_brightness2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_brightness3.png b/src/effects/doc/images/BrightnessContrast_brightness3.png
deleted file mode 100644
index 8d0cbb9..0000000
--- a/src/effects/doc/images/BrightnessContrast_brightness3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_bug.png b/src/effects/doc/images/BrightnessContrast_bug.png
deleted file mode 100644
index 9b3c467..0000000
--- a/src/effects/doc/images/BrightnessContrast_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast1.png b/src/effects/doc/images/BrightnessContrast_contrast1.png
deleted file mode 100644
index 908cc0f..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast2.png b/src/effects/doc/images/BrightnessContrast_contrast2.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast3.png b/src/effects/doc/images/BrightnessContrast_contrast3.png
deleted file mode 100644
index 2fc89dc..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast_graph.png b/src/effects/doc/images/BrightnessContrast_contrast_graph.png
deleted file mode 100644
index ee3b767..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_butterfly.png b/src/effects/doc/images/ColorOverlay_butterfly.png
deleted file mode 100644
index faa0dbf..0000000
--- a/src/effects/doc/images/ColorOverlay_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_color1.png b/src/effects/doc/images/ColorOverlay_color1.png
deleted file mode 100644
index 48925eb..0000000
--- a/src/effects/doc/images/ColorOverlay_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_color2.png b/src/effects/doc/images/ColorOverlay_color2.png
deleted file mode 100644
index bfb27af..0000000
--- a/src/effects/doc/images/ColorOverlay_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_color3.png b/src/effects/doc/images/ColorOverlay_color3.png
deleted file mode 100644
index 16ded7a..0000000
--- a/src/effects/doc/images/ColorOverlay_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_bug.png b/src/effects/doc/images/Colorize_bug.png
deleted file mode 100644
index 7b5e7df..0000000
--- a/src/effects/doc/images/Colorize_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue1.png b/src/effects/doc/images/Colorize_hue1.png
deleted file mode 100644
index b5cf01d..0000000
--- a/src/effects/doc/images/Colorize_hue1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue2.png b/src/effects/doc/images/Colorize_hue2.png
deleted file mode 100644
index 23c8348..0000000
--- a/src/effects/doc/images/Colorize_hue2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue3.png b/src/effects/doc/images/Colorize_hue3.png
deleted file mode 100644
index 5b7ec44..0000000
--- a/src/effects/doc/images/Colorize_hue3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue_scale.png b/src/effects/doc/images/Colorize_hue_scale.png
deleted file mode 100644
index 1e8ccd4..0000000
--- a/src/effects/doc/images/Colorize_hue_scale.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_lightness1.png b/src/effects/doc/images/Colorize_lightness1.png
deleted file mode 100644
index b40eb49..0000000
--- a/src/effects/doc/images/Colorize_lightness1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_lightness2.png b/src/effects/doc/images/Colorize_lightness2.png
deleted file mode 100644
index 100c718..0000000
--- a/src/effects/doc/images/Colorize_lightness2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_lightness3.png b/src/effects/doc/images/Colorize_lightness3.png
deleted file mode 100644
index 2e1e50c..0000000
--- a/src/effects/doc/images/Colorize_lightness3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_saturation1.png b/src/effects/doc/images/Colorize_saturation1.png
deleted file mode 100644
index de755e7..0000000
--- a/src/effects/doc/images/Colorize_saturation1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_saturation2.png b/src/effects/doc/images/Colorize_saturation2.png
deleted file mode 100644
index 059a5ac..0000000
--- a/src/effects/doc/images/Colorize_saturation2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_saturation3.png b/src/effects/doc/images/Colorize_saturation3.png
deleted file mode 100644
index 100c718..0000000
--- a/src/effects/doc/images/Colorize_saturation3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient.png b/src/effects/doc/images/ConicalGradient.png
deleted file mode 100644
index d22dba0..0000000
--- a/src/effects/doc/images/ConicalGradient.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_angle1.png b/src/effects/doc/images/ConicalGradient_angle1.png
deleted file mode 100644
index c29f72a..0000000
--- a/src/effects/doc/images/ConicalGradient_angle1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_angle2.png b/src/effects/doc/images/ConicalGradient_angle2.png
deleted file mode 100644
index d77f438..0000000
--- a/src/effects/doc/images/ConicalGradient_angle2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_angle3.png b/src/effects/doc/images/ConicalGradient_angle3.png
deleted file mode 100644
index 7c7b165..0000000
--- a/src/effects/doc/images/ConicalGradient_angle3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_gradient1.png b/src/effects/doc/images/ConicalGradient_gradient1.png
deleted file mode 100644
index 34676bf..0000000
--- a/src/effects/doc/images/ConicalGradient_gradient1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_gradient2.png b/src/effects/doc/images/ConicalGradient_gradient2.png
deleted file mode 100644
index 819915f..0000000
--- a/src/effects/doc/images/ConicalGradient_gradient2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_gradient3.png b/src/effects/doc/images/ConicalGradient_gradient3.png
deleted file mode 100644
index f53a65d..0000000
--- a/src/effects/doc/images/ConicalGradient_gradient3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_horizontalOffset1.png b/src/effects/doc/images/ConicalGradient_horizontalOffset1.png
deleted file mode 100644
index abd767e..0000000
--- a/src/effects/doc/images/ConicalGradient_horizontalOffset1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_horizontalOffset2.png b/src/effects/doc/images/ConicalGradient_horizontalOffset2.png
deleted file mode 100644
index c29f72a..0000000
--- a/src/effects/doc/images/ConicalGradient_horizontalOffset2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_horizontalOffset3.png b/src/effects/doc/images/ConicalGradient_horizontalOffset3.png
deleted file mode 100644
index 9052e45..0000000
--- a/src/effects/doc/images/ConicalGradient_horizontalOffset3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_maskSource1.png b/src/effects/doc/images/ConicalGradient_maskSource1.png
deleted file mode 100644
index c29f72a..0000000
--- a/src/effects/doc/images/ConicalGradient_maskSource1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_maskSource2.png b/src/effects/doc/images/ConicalGradient_maskSource2.png
deleted file mode 100644
index 4c6e25d..0000000
--- a/src/effects/doc/images/ConicalGradient_maskSource2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_bug.png b/src/effects/doc/images/Desaturate_bug.png
deleted file mode 100644
index 30c840b..0000000
--- a/src/effects/doc/images/Desaturate_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_desaturation1.png b/src/effects/doc/images/Desaturate_desaturation1.png
deleted file mode 100644
index f514ee4..0000000
--- a/src/effects/doc/images/Desaturate_desaturation1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_desaturation2.png b/src/effects/doc/images/Desaturate_desaturation2.png
deleted file mode 100644
index 9665093..0000000
--- a/src/effects/doc/images/Desaturate_desaturation2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_desaturation3.png b/src/effects/doc/images/Desaturate_desaturation3.png
deleted file mode 100644
index 0c9a6ec..0000000
--- a/src/effects/doc/images/Desaturate_desaturation3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_bug.png b/src/effects/doc/images/Displace_bug.png
deleted file mode 100644
index db95764..0000000
--- a/src/effects/doc/images/Displace_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_displacement1.png b/src/effects/doc/images/Displace_displacement1.png
deleted file mode 100644
index a7c4a68..0000000
--- a/src/effects/doc/images/Displace_displacement1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_displacement2.png b/src/effects/doc/images/Displace_displacement2.png
deleted file mode 100644
index ad8a68c..0000000
--- a/src/effects/doc/images/Displace_displacement2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_displacement3.png b/src/effects/doc/images/Displace_displacement3.png
deleted file mode 100644
index 58286a8..0000000
--- a/src/effects/doc/images/Displace_displacement3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_map.png b/src/effects/doc/images/Displace_map.png
deleted file mode 100644
index 42f6baa..0000000
--- a/src/effects/doc/images/Displace_map.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow-transparentBorder.png b/src/effects/doc/images/DropShadow-transparentBorder.png
deleted file mode 100644
index bb1e3b9..0000000
--- a/src/effects/doc/images/DropShadow-transparentBorder.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_butterfly.png b/src/effects/doc/images/DropShadow_butterfly.png
deleted file mode 100644
index 8fa2c09..0000000
--- a/src/effects/doc/images/DropShadow_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_color1.png b/src/effects/doc/images/DropShadow_color1.png
deleted file mode 100644
index a5945d4..0000000
--- a/src/effects/doc/images/DropShadow_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_color2.png b/src/effects/doc/images/DropShadow_color2.png
deleted file mode 100644
index 6e5a16e..0000000
--- a/src/effects/doc/images/DropShadow_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_color3.png b/src/effects/doc/images/DropShadow_color3.png
deleted file mode 100644
index 042ada6..0000000
--- a/src/effects/doc/images/DropShadow_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_fast1.png b/src/effects/doc/images/DropShadow_fast1.png
deleted file mode 100644
index 1138f84..0000000
--- a/src/effects/doc/images/DropShadow_fast1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_fast2.png b/src/effects/doc/images/DropShadow_fast2.png
deleted file mode 100644
index 385c0dc..0000000
--- a/src/effects/doc/images/DropShadow_fast2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_horizontalOffset1.png b/src/effects/doc/images/DropShadow_horizontalOffset1.png
deleted file mode 100644
index 901780d..0000000
--- a/src/effects/doc/images/DropShadow_horizontalOffset1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_horizontalOffset2.png b/src/effects/doc/images/DropShadow_horizontalOffset2.png
deleted file mode 100644
index 87ebf93..0000000
--- a/src/effects/doc/images/DropShadow_horizontalOffset2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_horizontalOffset3.png b/src/effects/doc/images/DropShadow_horizontalOffset3.png
deleted file mode 100644
index 1f56467..0000000
--- a/src/effects/doc/images/DropShadow_horizontalOffset3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_radius1.png b/src/effects/doc/images/DropShadow_radius1.png
deleted file mode 100644
index 2dd234b..0000000
--- a/src/effects/doc/images/DropShadow_radius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_radius2.png b/src/effects/doc/images/DropShadow_radius2.png
deleted file mode 100644
index 50fdd15..0000000
--- a/src/effects/doc/images/DropShadow_radius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_radius3.png b/src/effects/doc/images/DropShadow_radius3.png
deleted file mode 100644
index e7daa02..0000000
--- a/src/effects/doc/images/DropShadow_radius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_spread1.png b/src/effects/doc/images/DropShadow_spread1.png
deleted file mode 100644
index fa9ca85..0000000
--- a/src/effects/doc/images/DropShadow_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_spread2.png b/src/effects/doc/images/DropShadow_spread2.png
deleted file mode 100644
index 0a9024f..0000000
--- a/src/effects/doc/images/DropShadow_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_spread3.png b/src/effects/doc/images/DropShadow_spread3.png
deleted file mode 100644
index 4f50544..0000000
--- a/src/effects/doc/images/DropShadow_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_bug.png b/src/effects/doc/images/FastBlur_bug.png
deleted file mode 100644
index 05d5e8d..0000000
--- a/src/effects/doc/images/FastBlur_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_radius1.png b/src/effects/doc/images/FastBlur_radius1.png
deleted file mode 100644
index 43816e9..0000000
--- a/src/effects/doc/images/FastBlur_radius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_radius2.png b/src/effects/doc/images/FastBlur_radius2.png
deleted file mode 100644
index 239bee7..0000000
--- a/src/effects/doc/images/FastBlur_radius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_radius3.png b/src/effects/doc/images/FastBlur_radius3.png
deleted file mode 100644
index 6c66780..0000000
--- a/src/effects/doc/images/FastBlur_radius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_transparentBorder1.png b/src/effects/doc/images/FastBlur_transparentBorder1.png
deleted file mode 100644
index 6c66780..0000000
--- a/src/effects/doc/images/FastBlur_transparentBorder1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_transparentBorder2.png b/src/effects/doc/images/FastBlur_transparentBorder2.png
deleted file mode 100644
index 9f0d293..0000000
--- a/src/effects/doc/images/FastBlur_transparentBorder2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_bug.png b/src/effects/doc/images/GammaAdjust_bug.png
deleted file mode 100644
index dd3c907..0000000
--- a/src/effects/doc/images/GammaAdjust_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma1.png b/src/effects/doc/images/GammaAdjust_gamma1.png
deleted file mode 100644
index 4154557..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma1_graph.png b/src/effects/doc/images/GammaAdjust_gamma1_graph.png
deleted file mode 100644
index 12916d4..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma1_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma2.png b/src/effects/doc/images/GammaAdjust_gamma2.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma2_graph.png b/src/effects/doc/images/GammaAdjust_gamma2_graph.png
deleted file mode 100644
index 15064cb..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma2_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma3.png b/src/effects/doc/images/GammaAdjust_gamma3.png
deleted file mode 100644
index 7e76d49..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma3_graph.png b/src/effects/doc/images/GammaAdjust_gamma3_graph.png
deleted file mode 100644
index 8201612..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma3_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow-transparentBorder.png b/src/effects/doc/images/Glow-transparentBorder.png
deleted file mode 100644
index 58aae6c..0000000
--- a/src/effects/doc/images/Glow-transparentBorder.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_butterfly.png b/src/effects/doc/images/Glow_butterfly.png
deleted file mode 100644
index 57c26f8..0000000
--- a/src/effects/doc/images/Glow_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_color1.png b/src/effects/doc/images/Glow_color1.png
deleted file mode 100644
index 1a7ec7e..0000000
--- a/src/effects/doc/images/Glow_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_color2.png b/src/effects/doc/images/Glow_color2.png
deleted file mode 100644
index d080e4e..0000000
--- a/src/effects/doc/images/Glow_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_color3.png b/src/effects/doc/images/Glow_color3.png
deleted file mode 100644
index 4f938b9..0000000
--- a/src/effects/doc/images/Glow_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_fast1.png b/src/effects/doc/images/Glow_fast1.png
deleted file mode 100644
index 02dda5f..0000000
--- a/src/effects/doc/images/Glow_fast1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_fast2.png b/src/effects/doc/images/Glow_fast2.png
deleted file mode 100644
index 6bec33e..0000000
--- a/src/effects/doc/images/Glow_fast2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_radius1.png b/src/effects/doc/images/Glow_radius1.png
deleted file mode 100644
index 884e591..0000000
--- a/src/effects/doc/images/Glow_radius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_radius2.png b/src/effects/doc/images/Glow_radius2.png
deleted file mode 100644
index cf641fa..0000000
--- a/src/effects/doc/images/Glow_radius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_radius3.png b/src/effects/doc/images/Glow_radius3.png
deleted file mode 100644
index c8c59d0..0000000
--- a/src/effects/doc/images/Glow_radius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_spread1.png b/src/effects/doc/images/Glow_spread1.png
deleted file mode 100644
index 6751da5..0000000
--- a/src/effects/doc/images/Glow_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_spread2.png b/src/effects/doc/images/Glow_spread2.png
deleted file mode 100644
index 1a7ec7e..0000000
--- a/src/effects/doc/images/Glow_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_spread3.png b/src/effects/doc/images/Glow_spread3.png
deleted file mode 100644
index 2ac79e7..0000000
--- a/src/effects/doc/images/Glow_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_bug.png b/src/effects/doc/images/HueSaturation_bug.png
deleted file mode 100644
index 96c150d..0000000
--- a/src/effects/doc/images/HueSaturation_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_hue1.png b/src/effects/doc/images/HueSaturation_hue1.png
deleted file mode 100644
index a48fbf2..0000000
--- a/src/effects/doc/images/HueSaturation_hue1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_hue2.png b/src/effects/doc/images/HueSaturation_hue2.png
deleted file mode 100644
index cbb2883..0000000
--- a/src/effects/doc/images/HueSaturation_hue2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_hue3.png b/src/effects/doc/images/HueSaturation_hue3.png
deleted file mode 100644
index 01ce35c..0000000
--- a/src/effects/doc/images/HueSaturation_hue3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_lightness1.png b/src/effects/doc/images/HueSaturation_lightness1.png
deleted file mode 100644
index 64cd230..0000000
--- a/src/effects/doc/images/HueSaturation_lightness1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_lightness2.png b/src/effects/doc/images/HueSaturation_lightness2.png
deleted file mode 100644
index cbb2883..0000000
--- a/src/effects/doc/images/HueSaturation_lightness2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_lightness3.png b/src/effects/doc/images/HueSaturation_lightness3.png
deleted file mode 100644
index 037f20f..0000000
--- a/src/effects/doc/images/HueSaturation_lightness3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_saturation1.png b/src/effects/doc/images/HueSaturation_saturation1.png
deleted file mode 100644
index 0ba3ff6..0000000
--- a/src/effects/doc/images/HueSaturation_saturation1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_saturation2.png b/src/effects/doc/images/HueSaturation_saturation2.png
deleted file mode 100644
index cbb2883..0000000
--- a/src/effects/doc/images/HueSaturation_saturation2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_saturation3.png b/src/effects/doc/images/HueSaturation_saturation3.png
deleted file mode 100644
index f2fb8ed..0000000
--- a/src/effects/doc/images/HueSaturation_saturation3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_butterfly.png b/src/effects/doc/images/LevelAdjust_butterfly.png
deleted file mode 100644
index 442380e..0000000
--- a/src/effects/doc/images/LevelAdjust_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_default_curve.png b/src/effects/doc/images/LevelAdjust_default_curve.png
deleted file mode 100644
index d689e0b..0000000
--- a/src/effects/doc/images/LevelAdjust_default_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma1.png b/src/effects/doc/images/LevelAdjust_gamma1.png
deleted file mode 100644
index 83475bf..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma1_curve.png b/src/effects/doc/images/LevelAdjust_gamma1_curve.png
deleted file mode 100644
index d689e0b..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma1_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma2.png b/src/effects/doc/images/LevelAdjust_gamma2.png
deleted file mode 100644
index 1f968a5..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma2_curve.png b/src/effects/doc/images/LevelAdjust_gamma2_curve.png
deleted file mode 100644
index 2533ca3..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma3.png b/src/effects/doc/images/LevelAdjust_gamma3.png
deleted file mode 100644
index d656513..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma3_curve.png b/src/effects/doc/images/LevelAdjust_gamma3_curve.png
deleted file mode 100644
index ac3a7ca..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput1.png b/src/effects/doc/images/LevelAdjust_maximumInput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput2.png b/src/effects/doc/images/LevelAdjust_maximumInput2.png
deleted file mode 100644
index 59ab858..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput2_curve.png b/src/effects/doc/images/LevelAdjust_maximumInput2_curve.png
deleted file mode 100644
index 8cfcae9..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput3.png b/src/effects/doc/images/LevelAdjust_maximumInput3.png
deleted file mode 100644
index 309f60e..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput3_curve.png b/src/effects/doc/images/LevelAdjust_maximumInput3_curve.png
deleted file mode 100644
index 76ee303..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput1.png b/src/effects/doc/images/LevelAdjust_maximumOutput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput2.png b/src/effects/doc/images/LevelAdjust_maximumOutput2.png
deleted file mode 100644
index 4c69453..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput2_curve.png b/src/effects/doc/images/LevelAdjust_maximumOutput2_curve.png
deleted file mode 100644
index 6c98980..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput3.png b/src/effects/doc/images/LevelAdjust_maximumOutput3.png
deleted file mode 100644
index 3039b56..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput3_curve.png b/src/effects/doc/images/LevelAdjust_maximumOutput3_curve.png
deleted file mode 100644
index 3e464ef..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput1.png b/src/effects/doc/images/LevelAdjust_minimumInput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput2.png b/src/effects/doc/images/LevelAdjust_minimumInput2.png
deleted file mode 100644
index aa317d0..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput2_curve.png b/src/effects/doc/images/LevelAdjust_minimumInput2_curve.png
deleted file mode 100644
index 056f828..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput3.png b/src/effects/doc/images/LevelAdjust_minimumInput3.png
deleted file mode 100644
index be62f73..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput3_curve.png b/src/effects/doc/images/LevelAdjust_minimumInput3_curve.png
deleted file mode 100644
index ed4c5e5..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput1.png b/src/effects/doc/images/LevelAdjust_minimumOutput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput2.png b/src/effects/doc/images/LevelAdjust_minimumOutput2.png
deleted file mode 100644
index 6124df1..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput2_curve.png b/src/effects/doc/images/LevelAdjust_minimumOutput2_curve.png
deleted file mode 100644
index 2b4d3b1..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput3.png b/src/effects/doc/images/LevelAdjust_minimumOutput3.png
deleted file mode 100644
index 43fe2b7..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput3_curve.png b/src/effects/doc/images/LevelAdjust_minimumOutput3_curve.png
deleted file mode 100644
index 7ebc8a9..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient.png b/src/effects/doc/images/LinearGradient.png
deleted file mode 100644
index 1f96c11..0000000
--- a/src/effects/doc/images/LinearGradient.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_end1.png b/src/effects/doc/images/LinearGradient_end1.png
deleted file mode 100644
index 0967b0f..0000000
--- a/src/effects/doc/images/LinearGradient_end1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_end2.png b/src/effects/doc/images/LinearGradient_end2.png
deleted file mode 100644
index d0cde06..0000000
--- a/src/effects/doc/images/LinearGradient_end2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_end3.png b/src/effects/doc/images/LinearGradient_end3.png
deleted file mode 100644
index 49e5be2..0000000
--- a/src/effects/doc/images/LinearGradient_end3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_gradient1.png b/src/effects/doc/images/LinearGradient_gradient1.png
deleted file mode 100644
index 5788562..0000000
--- a/src/effects/doc/images/LinearGradient_gradient1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_gradient2.png b/src/effects/doc/images/LinearGradient_gradient2.png
deleted file mode 100644
index 21c2809..0000000
--- a/src/effects/doc/images/LinearGradient_gradient2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_gradient3.png b/src/effects/doc/images/LinearGradient_gradient3.png
deleted file mode 100644
index 3950a09..0000000
--- a/src/effects/doc/images/LinearGradient_gradient3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_maskSource1.png b/src/effects/doc/images/LinearGradient_maskSource1.png
deleted file mode 100644
index 0967b0f..0000000
--- a/src/effects/doc/images/LinearGradient_maskSource1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_maskSource2.png b/src/effects/doc/images/LinearGradient_maskSource2.png
deleted file mode 100644
index 5f0fcdd..0000000
--- a/src/effects/doc/images/LinearGradient_maskSource2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_start1.png b/src/effects/doc/images/LinearGradient_start1.png
deleted file mode 100644
index 0967b0f..0000000
--- a/src/effects/doc/images/LinearGradient_start1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_start2.png b/src/effects/doc/images/LinearGradient_start2.png
deleted file mode 100644
index b895154..0000000
--- a/src/effects/doc/images/LinearGradient_start2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_start3.png b/src/effects/doc/images/LinearGradient_start3.png
deleted file mode 100644
index ddf06b6..0000000
--- a/src/effects/doc/images/LinearGradient_start3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/OpacityMask_bug.png b/src/effects/doc/images/OpacityMask_bug.png
deleted file mode 100644
index 353aa19..0000000
--- a/src/effects/doc/images/OpacityMask_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/OpacityMask_mask.png b/src/effects/doc/images/OpacityMask_mask.png
deleted file mode 100644
index 2522da3..0000000
--- a/src/effects/doc/images/OpacityMask_mask.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Original_bug.png b/src/effects/doc/images/Original_bug.png
deleted file mode 100644
index a93bcde..0000000
--- a/src/effects/doc/images/Original_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Original_butterfly.png b/src/effects/doc/images/Original_butterfly.png
deleted file mode 100644
index a81dc7b..0000000
--- a/src/effects/doc/images/Original_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Original_butterfly_black.png b/src/effects/doc/images/Original_butterfly_black.png
deleted file mode 100644
index 1f9f010..0000000
--- a/src/effects/doc/images/Original_butterfly_black.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient.png b/src/effects/doc/images/RadialGradient.png
deleted file mode 100644
index 279e3de..0000000
--- a/src/effects/doc/images/RadialGradient.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_angle1.png b/src/effects/doc/images/RadialGradient_angle1.png
deleted file mode 100644
index f7b1847..0000000
--- a/src/effects/doc/images/RadialGradient_angle1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_angle2.png b/src/effects/doc/images/RadialGradient_angle2.png
deleted file mode 100644
index b39243b..0000000
--- a/src/effects/doc/images/RadialGradient_angle2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_angle3.png b/src/effects/doc/images/RadialGradient_angle3.png
deleted file mode 100644
index fba3fdb..0000000
--- a/src/effects/doc/images/RadialGradient_angle3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_default.png b/src/effects/doc/images/RadialGradient_default.png
deleted file mode 100644
index 58de74d..0000000
--- a/src/effects/doc/images/RadialGradient_default.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_gradient1.png b/src/effects/doc/images/RadialGradient_gradient1.png
deleted file mode 100644
index 947ac33..0000000
--- a/src/effects/doc/images/RadialGradient_gradient1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_gradient2.png b/src/effects/doc/images/RadialGradient_gradient2.png
deleted file mode 100644
index 90b2ce5..0000000
--- a/src/effects/doc/images/RadialGradient_gradient2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_gradient3.png b/src/effects/doc/images/RadialGradient_gradient3.png
deleted file mode 100644
index 9f97c8e..0000000
--- a/src/effects/doc/images/RadialGradient_gradient3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalOffset1.png b/src/effects/doc/images/RadialGradient_horizontalOffset1.png
deleted file mode 100644
index 0bf231a..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalOffset1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalOffset2.png b/src/effects/doc/images/RadialGradient_horizontalOffset2.png
deleted file mode 100644
index 983855f..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalOffset2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalOffset3.png b/src/effects/doc/images/RadialGradient_horizontalOffset3.png
deleted file mode 100644
index 6cb008b..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalOffset3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalRadius1.png b/src/effects/doc/images/RadialGradient_horizontalRadius1.png
deleted file mode 100644
index 983855f..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalRadius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalRadius2.png b/src/effects/doc/images/RadialGradient_horizontalRadius2.png
deleted file mode 100644
index f7b1847..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalRadius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalRadius3.png b/src/effects/doc/images/RadialGradient_horizontalRadius3.png
deleted file mode 100644
index 2f8c8f9..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalRadius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_maskSource1.png b/src/effects/doc/images/RadialGradient_maskSource1.png
deleted file mode 100644
index 983855f..0000000
--- a/src/effects/doc/images/RadialGradient_maskSource1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_maskSource2.png b/src/effects/doc/images/RadialGradient_maskSource2.png
deleted file mode 100644
index 7748131..0000000
--- a/src/effects/doc/images/RadialGradient_maskSource2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_withmask.png b/src/effects/doc/images/RadialGradient_withmask.png
deleted file mode 100644
index b78f26a..0000000
--- a/src/effects/doc/images/RadialGradient_withmask.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_applied.png b/src/effects/doc/images/RectangularGlow_applied.png
deleted file mode 100644
index c4d530a..0000000
--- a/src/effects/doc/images/RectangularGlow_applied.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_color1.png b/src/effects/doc/images/RectangularGlow_color1.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_color2.png b/src/effects/doc/images/RectangularGlow_color2.png
deleted file mode 100644
index e26dafc..0000000
--- a/src/effects/doc/images/RectangularGlow_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_color3.png b/src/effects/doc/images/RectangularGlow_color3.png
deleted file mode 100644
index 81003f5..0000000
--- a/src/effects/doc/images/RectangularGlow_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_cornerRadius1.png b/src/effects/doc/images/RectangularGlow_cornerRadius1.png
deleted file mode 100644
index 8abb5cb..0000000
--- a/src/effects/doc/images/RectangularGlow_cornerRadius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_cornerRadius2.png b/src/effects/doc/images/RectangularGlow_cornerRadius2.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_cornerRadius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_cornerRadius3.png b/src/effects/doc/images/RectangularGlow_cornerRadius3.png
deleted file mode 100644
index 9dc4b8f..0000000
--- a/src/effects/doc/images/RectangularGlow_cornerRadius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_glowRadius1.png b/src/effects/doc/images/RectangularGlow_glowRadius1.png
deleted file mode 100644
index 80a316f..0000000
--- a/src/effects/doc/images/RectangularGlow_glowRadius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_glowRadius2.png b/src/effects/doc/images/RectangularGlow_glowRadius2.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_glowRadius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_glowRadius3.png b/src/effects/doc/images/RectangularGlow_glowRadius3.png
deleted file mode 100644
index 2ac2561..0000000
--- a/src/effects/doc/images/RectangularGlow_glowRadius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_spread1.png b/src/effects/doc/images/RectangularGlow_spread1.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_spread2.png b/src/effects/doc/images/RectangularGlow_spread2.png
deleted file mode 100644
index 249eae2..0000000
--- a/src/effects/doc/images/RectangularGlow_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_spread3.png b/src/effects/doc/images/RectangularGlow_spread3.png
deleted file mode 100644
index 536d321..0000000
--- a/src/effects/doc/images/RectangularGlow_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_bug.png b/src/effects/doc/images/ThresholdMask_bug.png
deleted file mode 100644
index d16429a..0000000
--- a/src/effects/doc/images/ThresholdMask_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_mask.png b/src/effects/doc/images/ThresholdMask_mask.png
deleted file mode 100644
index 1904fbf..0000000
--- a/src/effects/doc/images/ThresholdMask_mask.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_spread1.png b/src/effects/doc/images/ThresholdMask_spread1.png
deleted file mode 100644
index 2288c2f..0000000
--- a/src/effects/doc/images/ThresholdMask_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_spread2.png b/src/effects/doc/images/ThresholdMask_spread2.png
deleted file mode 100644
index 504702e..0000000
--- a/src/effects/doc/images/ThresholdMask_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_spread3.png b/src/effects/doc/images/ThresholdMask_spread3.png
deleted file mode 100644
index db289b1..0000000
--- a/src/effects/doc/images/ThresholdMask_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_threshold1.png b/src/effects/doc/images/ThresholdMask_threshold1.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/ThresholdMask_threshold1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_threshold2.png b/src/effects/doc/images/ThresholdMask_threshold2.png
deleted file mode 100644
index 15f1a1d..0000000
--- a/src/effects/doc/images/ThresholdMask_threshold2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_threshold3.png b/src/effects/doc/images/ThresholdMask_threshold3.png
deleted file mode 100644
index e0eb02b..0000000
--- a/src/effects/doc/images/ThresholdMask_threshold3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/bug.jpg b/src/effects/doc/images/bug.jpg
deleted file mode 100644
index 43e3676..0000000
--- a/src/effects/doc/images/bug.jpg
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/butterfly.png b/src/effects/doc/images/butterfly.png
deleted file mode 100644
index ce544f2..0000000
--- a/src/effects/doc/images/butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/checker.png b/src/effects/doc/images/checker.png
deleted file mode 100644
index b7f067b..0000000
--- a/src/effects/doc/images/checker.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/fog.png b/src/effects/doc/images/fog.png
deleted file mode 100644
index 1a51c01..0000000
--- a/src/effects/doc/images/fog.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/glass_normal.png b/src/effects/doc/images/glass_normal.png
deleted file mode 100644
index ba360ef..0000000
--- a/src/effects/doc/images/glass_normal.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/qtgraphicaleffects.qdocconf b/src/effects/doc/qtgraphicaleffects.qdocconf
deleted file mode 100644
index 27d8917..0000000
--- a/src/effects/doc/qtgraphicaleffects.qdocconf
+++ /dev/null
@@ -1,44 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtgraphicaleffects.qdocconf)
-
-project = QtGraphicalEffects
-description = Qt Graphical Effects Reference Documentation
-version = $QT_VERSION
-moduleheader =
-
-qhp.projects = QtGraphicalEffects
-
-qhp.QtGraphicalEffects.file = qtgraphicaleffects.qhp
-qhp.QtGraphicalEffects.namespace = org.qt-project.qtgraphicaleffects.$QT_VERSION_TAG
-qhp.QtGraphicalEffects.virtualFolder = qtgraphicaleffects
-qhp.QtGraphicalEffects.indexTitle = Qt Graphical Effects
-qhp.QtGraphicalEffects.indexRoot =
-
-qhp.QtGraphicalEffects.filterAttributes = qtgraphicaleffects $QT_VERSION qtrefdoc
-qhp.QtGraphicalEffects.customFilters.Qt.name = QtGraphicalEffects $QT_VERSION
-qhp.QtGraphicalEffects.customFilters.Qt.filterAttributes = qtgraphicaleffects $QT_VERSION
-
-qhp.QtGraphicalEffects.subprojects = qmltypes
-qhp.QtGraphicalEffects.subprojects.qmltypes.title = QML Types
-qhp.QtGraphicalEffects.subprojects.qmltypes.indexTitle = Graphical Effects
-qhp.QtGraphicalEffects.subprojects.qmltypes.selectors = qmlclass
-qhp.QtGraphicalEffects.subprojects.qmltypes.sortPages = true
-
-outputdir = $$QT_INSTALL_DOCS/qtgraphicaleffects
-tagfile = ../../../doc/qtgraphicaleffects/qtgraphicaleffects.tags
-
-headerdirs += .. \
-
-sourcedirs += .. \
-
-
-exampledirs += ../../../examples/graphicaleffects \
- snippets/
-
-
-imagedirs += images
-
-depends += qtqml qtquick qtdoc qtcore
-
-navigation.landingpage = "Qt Graphical Effects"
-navigation.qmltypespage = "Graphical Effects"
diff --git a/src/effects/doc/snippets/BrightnessContrast-example.qml b/src/effects/doc/snippets/BrightnessContrast-example.qml
deleted file mode 100644
index aae1f57..0000000
--- a/src/effects/doc/snippets/BrightnessContrast-example.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- BrightnessContrast {
- anchors.fill: bug
- source: bug
- brightness: 0.5
- contrast: 0.5
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/ColorOverlay-example.qml b/src/effects/doc/snippets/ColorOverlay-example.qml
deleted file mode 100644
index 6d4143c..0000000
--- a/src/effects/doc/snippets/ColorOverlay-example.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- ColorOverlay {
- anchors.fill: bug
- source: bug
- color: "#80800000"
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Colorize-example.qml b/src/effects/doc/snippets/Colorize-example.qml
deleted file mode 100644
index 50df592..0000000
--- a/src/effects/doc/snippets/Colorize-example.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Colorize {
- anchors.fill: bug
- source: bug
- hue: 0.0
- saturation: 0.5
- lightness: -0.2
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/ConicalGradient-example.qml b/src/effects/doc/snippets/ConicalGradient-example.qml
deleted file mode 100644
index 427f54c..0000000
--- a/src/effects/doc/snippets/ConicalGradient-example.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- ConicalGradient {
- anchors.fill: parent
- angle: 0.0
- gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Desaturate-example.qml b/src/effects/doc/snippets/Desaturate-example.qml
deleted file mode 100644
index 41120dd..0000000
--- a/src/effects/doc/snippets/Desaturate-example.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Desaturate {
- anchors.fill: bug
- source: bug
- desaturation: 0.8
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Displace-example.qml b/src/effects/doc/snippets/Displace-example.qml
deleted file mode 100644
index d54c4af..0000000
--- a/src/effects/doc/snippets/Displace-example.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Rectangle {
- id: displacement
- color: Qt.rgba(0.5, 0.5, 1.0, 1.0)
- anchors.fill: parent
- visible: false
- Image {
- anchors.centerIn: parent
- source: "images/glass_normal.png"
- sourceSize: Qt.size(parent.width/2, parent.height/2)
- smooth: true
- }
- }
-
- Displace {
- anchors.fill: bug
- source: bug
- displacementSource: displacement
- displacement: 0.1
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/DropShadow-example.qml b/src/effects/doc/snippets/DropShadow-example.qml
deleted file mode 100644
index 75361dd..0000000
--- a/src/effects/doc/snippets/DropShadow-example.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Rectangle {
- anchors.fill: parent
- }
-
- Image {
- id: butterfly
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- DropShadow {
- anchors.fill: butterfly
- horizontalOffset: 3
- verticalOffset: 3
- radius: 8.0
- color: "#80000000"
- source: butterfly
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml b/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
deleted file mode 100644
index 3ebfe0e..0000000
--- a/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Rectangle {
- width: 180
- height: 100
-
- Row {
- anchors.centerIn: parent
- spacing: 16
-
- Rectangle {
- id: normalRect
- width: 60
- height: 60
- radius: 10
- color: "steelblue"
- layer.enabled: true
- layer.effect: DropShadow {
- transparentBorder: false
- horizontalOffset: 8
- verticalOffset: 8
- }
- }
-
- Rectangle {
- id: transparentBorderRect
- width: 60
- height: 60
- radius: 10
- color: "steelblue"
- layer.enabled: true
- layer.effect: DropShadow {
- transparentBorder: true
- horizontalOffset: 8
- verticalOffset: 8
- }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/FastBlur-example.qml b/src/effects/doc/snippets/FastBlur-example.qml
deleted file mode 100644
index 7c4aa94..0000000
--- a/src/effects/doc/snippets/FastBlur-example.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-//! [import]
-import QtGraphicalEffects 1.12
-//! [import]
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- FastBlur {
- anchors.fill: bug
- source: bug
- radius: 32
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/GammaAdjust-example.qml b/src/effects/doc/snippets/GammaAdjust-example.qml
deleted file mode 100644
index f40da80..0000000
--- a/src/effects/doc/snippets/GammaAdjust-example.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- GammaAdjust {
- anchors.fill: bug
- source: bug
- gamma: 0.45
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Glow-example.qml b/src/effects/doc/snippets/Glow-example.qml
deleted file mode 100644
index 1e9cbd5..0000000
--- a/src/effects/doc/snippets/Glow-example.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Rectangle {
- anchors.fill: parent
- color: "black"
- }
-
- Image {
- id: butterfly
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Glow {
- anchors.fill: butterfly
- radius: 8
- color: "white"
- source: butterfly
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Glow-transparentBorder-example.qml b/src/effects/doc/snippets/Glow-transparentBorder-example.qml
deleted file mode 100644
index 5ae8515..0000000
--- a/src/effects/doc/snippets/Glow-transparentBorder-example.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Rectangle {
- width: 180
- height: 100
-
- Row {
- anchors.centerIn: parent
- spacing: 16
-
- Rectangle {
- id: normalRect
- width: 60
- height: 60
- color: "black"
- radius: 10
- layer.enabled: true
- layer.effect: Glow {
- samples: 15
- color: "blue"
- transparentBorder: false
- }
- }
-
- Rectangle {
- id: transparentBorderRect
- width: 60
- height: 60
- color: "black"
- radius: 10
- layer.enabled: true
- layer.effect: Glow {
- samples: 15
- color: "blue"
- transparentBorder: true
- }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/HueSaturation-example.qml b/src/effects/doc/snippets/HueSaturation-example.qml
deleted file mode 100644
index bd88841..0000000
--- a/src/effects/doc/snippets/HueSaturation-example.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- HueSaturation {
- anchors.fill: bug
- source: bug
- hue: -0.3
- saturation: 0.5
- lightness: -0.1
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/LevelAdjust-example.qml b/src/effects/doc/snippets/LevelAdjust-example.qml
deleted file mode 100644
index e54a4b8..0000000
--- a/src/effects/doc/snippets/LevelAdjust-example.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: butterfly
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- LevelAdjust {
- anchors.fill: butterfly
- source: butterfly
- minimumOutput: "#00ffffff"
- maximumOutput: "#ff000000"
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/LinearGradient-example.qml b/src/effects/doc/snippets/LinearGradient-example.qml
deleted file mode 100644
index 2b3ab27..0000000
--- a/src/effects/doc/snippets/LinearGradient-example.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- LinearGradient {
- anchors.fill: parent
- start: Qt.point(0, 0)
- end: Qt.point(0, 300)
- gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/OpacityMask-example.qml b/src/effects/doc/snippets/OpacityMask-example.qml
deleted file mode 100644
index b8c608c..0000000
--- a/src/effects/doc/snippets/OpacityMask-example.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Image {
- id: mask
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- OpacityMask {
- anchors.fill: bug
- source: bug
- maskSource: mask
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/RadialGradient-example.qml b/src/effects/doc/snippets/RadialGradient-example.qml
deleted file mode 100644
index fb3dd10..0000000
--- a/src/effects/doc/snippets/RadialGradient-example.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- RadialGradient {
- anchors.fill: parent
- gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 0.5; color: "black" }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/RectangularGlow-example.qml b/src/effects/doc/snippets/RectangularGlow-example.qml
deleted file mode 100644
index 1ced586..0000000
--- a/src/effects/doc/snippets/RectangularGlow-example.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Rectangle {
- id: background
- anchors.fill: parent
- color: "black"
- }
-
- RectangularGlow {
- id: effect
- anchors.fill: rect
- glowRadius: 10
- spread: 0.2
- color: "white"
- cornerRadius: rect.radius + glowRadius
- }
-
- Rectangle {
- id: rect
- color: "black"
- anchors.centerIn: parent
- width: Math.round(parent.width / 1.5)
- height: Math.round(parent.height / 2)
- radius: 25
- }
-}
-//! [example]
-
diff --git a/src/effects/doc/snippets/ThresholdMask-example.qml b/src/effects/doc/snippets/ThresholdMask-example.qml
deleted file mode 100644
index e6ccf46..0000000
--- a/src/effects/doc/snippets/ThresholdMask-example.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: background
- anchors.fill: parent
- source: "images/checker.png"
- smooth: true
- fillMode: Image.Tile
- }
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Image {
- id: mask
- source: "images/fog.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- ThresholdMask {
- anchors.fill: bug
- source: bug
- maskSource: mask
- threshold: 0.4
- spread: 0.2
- }
-}
-//! [example]
diff --git a/src/effects/doc/src/overview-graphicaleffects.qdoc b/src/effects/doc/src/overview-graphicaleffects.qdoc
deleted file mode 100644
index 1011c09..0000000
--- a/src/effects/doc/src/overview-graphicaleffects.qdoc
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
- /*!
- \page graphicaleffects.html
- \title Graphical Effects
- \brief Effects provided by the Qt Graphical Effects API
-
- Effects are visual items that can be added to Qt Quick user interface as UI
- components. To import the Qt Graphical Effects types, include the Qt
- Graphical Effects module by adding the following statement to the QML file:
-
- \qml \QtMinorVersion
- import QtGraphicalEffects 1.\1
- \endqml
-
- To use the effects, simply add a specific effect declaration to the QML
- scene and configure the effects properties. The source item type can be any
- QML type, even video or another effect. Pipelining multiple effects together
- is a simple way to create even more impressive output.
-
- The following list presents the functional division of types that are part
- of Qt Graphical Effects:
-
- \section1 Color
- \annotatedlist qtgraphicaleffects-color
-
- \section1 Gradient
- \annotatedlist qtgraphicaleffects-gradient
-
- \section1 Distortion
- \annotatedlist qtgraphicaleffects-distortion
-
- \section1 Drop Shadow
- \annotatedlist qtgraphicaleffects-drop-shadow
-
- \section1 Blur
- \annotatedlist qtgraphicaleffects-blur
-
- \section1 Glow
- \annotatedlist qtgraphicaleffects-glow
-
- \section1 Mask
- \annotatedlist qtgraphicaleffects-mask
- */
diff --git a/src/effects/doc/src/qtgraphicaleffects.qdoc b/src/effects/doc/src/qtgraphicaleffects.qdoc
deleted file mode 100644
index 0b7c67a..0000000
--- a/src/effects/doc/src/qtgraphicaleffects.qdoc
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule QtGraphicalEffects 1.\QtMinorVersion
- \title Qt Graphical Effect QML Types
- \ingroup qmlmodules
-
- \brief The Qt Graphical Effects module provides a range of stunning
- visual effects that can be applied to Qt Quick applications.
-
- The \l{qtgraphicaleffects-index.html}{Qt Graphical Effects} module provides a set of QML types for
- adding visually impressive and configurable effects to user
- interfaces. Effects are visual items that can be added to Qt Quick
- user interface as UI components.
-
- To use the types in this module, import the module with the following line:
- \qml \QtMinorVersion
- import QtGraphicalEffects 1.\1
- \endqml
-
- \note There are no API changes since version 1.0, so it's OK
- to import version 1.0, or 1.\QtMinorVersion for convenience.
- */
-
-/*!
-\title Qt Graphical Effects
-\page qtgraphicaleffects-index.html
-\brief Qt Graphical Effects module is a Qt Quick Add-On module.
-
-The Qt Graphical Effects module provides a set of QML types for adding visually
-impressive and configurable effects to user interfaces. Effects are visual
-items that can be added to Qt Quick user interface as UI components.
-
-The API consists of over 15 effects provided as separate QML types. The effects
-cover functional areas such as masking, blurring, coloring, and many more.
-
-\section1 Getting Started
-To load Qt Graphical Effects, add the following import statement to your .qml file:
-\snippet FastBlur-example.qml import
-
-To use the effects, simply add a specific effect declaration to the QML scene and
-configure the effects properties. Effects have one or more source properties for
-specifying the visual input for which the effect is applied to. The altered visual
-output is then presented in the effect item itself. The source can be another,
-often hidden, item in the QML scene. More complex effects can have multiple sources.
-The source item type can be any QML type, even video or another effect. Pipelining
-multiple effects together is a simple way to create even more impressive output.
-
-Each effect has a set of properties that can be used to configure the effect output.
-Properties can be animated just like any other QML properties. The QML type
-documentation contains property descriptions and basic usage examples.
-
-\note Effects are not available when running with the \c software
-backend of Qt Quick. For more information on Qt Quick scene graph
-backends, see \l{qtquick-visualcanvas-adaptations.html}{Scene Graph
-Adaptations}.
-
-\section1 Reference
-
-\list
-\li \l {Graphical Effects}{QML Types}
-\endlist
-
-*/
diff --git a/src/effects/effects.pro b/src/effects/effects.pro
deleted file mode 100644
index 32e6d0b..0000000
--- a/src/effects/effects.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-TEMPLATE=subdirs
-SUBDIRS=effects_plugin.pro private
-
diff --git a/src/effects/effects_plugin.pro b/src/effects/effects_plugin.pro
deleted file mode 100644
index 4cfe4e3..0000000
--- a/src/effects/effects_plugin.pro
+++ /dev/null
@@ -1,32 +0,0 @@
-CXX_MODULE = qml
-TARGET = qtgraphicaleffectsplugin
-TARGETPATH = QtGraphicalEffects
-QT += quick qml
-IMPORT_VERSION = 1.$$QT_MINOR_VERSION
-QML_FILES = \
- BrightnessContrast.qml \
- ColorOverlay.qml \
- Colorize.qml \
- ConicalGradient.qml \
- Desaturate.qml \
- Displace.qml \
- DropShadow.qml \
- FastBlur.qml \
- GammaAdjust.qml \
- Glow.qml \
- HueSaturation.qml \
- LevelAdjust.qml \
- LinearGradient.qml \
- OpacityMask.qml \
- RadialGradient.qml \
- RectangularGlow.qml \
- ThresholdMask.qml
-
-# !static: CONFIG += qmlcache
-
-RESOURCES += \
- qtgraphicaleffectsshaders.qrc
-
-QMAKE_DOCS = $$PWD/doc/qtgraphicaleffects.qdocconf
-SOURCES += plugin.cpp
-load(qml_plugin)
diff --git a/src/effects/plugin.cpp b/src/effects/plugin.cpp
deleted file mode 100644
index 84763b7..0000000
--- a/src/effects/plugin.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQml/qqmlextensionplugin.h>
-#include <QtQml/qqml.h>
-#include <QtQml/qqmlengine.h>
-
-QT_BEGIN_NAMESPACE
-
-class QtGraphicalEffectsPlugin : public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtGraphicalEffectsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
- void registerTypes(const char *uri) override
- {
- Q_ASSERT(QLatin1String(uri) == QLatin1String("QtGraphicalEffects"));
-
- qmlRegisterModule(uri, 1, 0);
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 1, 15);
- }
-};
-
-QT_END_NAMESPACE
-
-#include "plugin.moc"
diff --git a/src/effects/plugins.qmltypes b/src/effects/plugins.qmltypes
deleted file mode 100644
index f805843..0000000
--- a/src/effects/plugins.qmltypes
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick.tooling 1.2
-
-// This file describes the plugin-supplied types contained in the library.
-// It is used for QML tooling purposes only.
-//
-// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtGraphicalEffects 1.15'
-
-Module {
- dependencies: ["QtQuick 2.12", "QtQuick.Window 2.12"]
-}
diff --git a/src/effects/private/.prev_CMakeLists.txt b/src/effects/private/.prev_CMakeLists.txt
deleted file mode 100644
index aba6f59..0000000
--- a/src/effects/private/.prev_CMakeLists.txt
+++ /dev/null
@@ -1,73 +0,0 @@
-# Generated from private.pro.
-
-#####################################################################
-## qtgraphicaleffectsprivate Plugin:
-#####################################################################
-
-qt_add_qml_module(qtgraphicaleffectsprivate
- URI "QtGraphicalEffects.private"
- VERSION "${CMAKE_PROJECT_VERSION}"
- CLASSNAME QtGraphicalEffectsPrivatePlugin
- SOURCES
- plugin.cpp
- qgfxshaderbuilder.cpp qgfxshaderbuilder_p.h
- qgfxsourceproxy.cpp qgfxsourceproxy_p.h
- PUBLIC_LIBRARIES
- Qt::Core
- Qt::CorePrivate
- Qt::Gui
- Qt::GuiPrivate
- Qt::Qml
- Qt::QmlPrivate
- Qt::Quick
- Qt::QuickPrivate
-)
-
-#### Keys ignored in scope 1:.:.:private.pro:<TRUE>:
-# CXX_MODULE = "qml"
-# QML_FILES = "DropShadowBase.qml" "FastGlow.qml" "FastInnerShadow.qml" "FastMaskedBlur.qml" "GaussianDirectionalBlur.qml" "GaussianGlow.qml" "GaussianInnerShadow.qml" "GaussianMaskedBlur.qml"
-# QML_IMPORT_VERSION = "$$QT_VERSION"
-# TARGETPATH = "QtGraphicalEffects/private"
-
-## Scopes:
-#####################################################################
-
-set(qml_files
- "DropShadowBase.qml"
- "FastGlow.qml"
- "FastInnerShadow.qml"
- "FastMaskedBlur.qml"
- "GaussianDirectionalBlur.qml"
- "GaussianGlow.qml"
- "GaussianInnerShadow.qml"
- "GaussianMaskedBlur.qml"
-)
-set_source_files_properties(DropShadowBase.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastInnerShadow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastMaskedBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianDirectionalBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianInnerShadow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianMaskedBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-
-qt6_target_qml_files(qtgraphicaleffectsprivate
- FILES
- ${qml_files}
-)
diff --git a/src/effects/private/CMakeLists.txt b/src/effects/private/CMakeLists.txt
deleted file mode 100644
index b8e0e5b..0000000
--- a/src/effects/private/CMakeLists.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-# Generated from private.pro.
-
-#####################################################################
-## qtgraphicaleffectsprivate Plugin:
-#####################################################################
-
-qt_internal_add_qml_module(qtgraphicaleffectsprivate
- URI "QtGraphicalEffects.private"
- VERSION "${CMAKE_PROJECT_VERSION}"
- CLASSNAME QtGraphicalEffectsPrivatePlugin
- SOURCES
- plugin.cpp
- qgfxsourceproxy.cpp qgfxsourceproxy_p.h
- PUBLIC_LIBRARIES
- Qt::Core
- Qt::CorePrivate
- Qt::Gui
- Qt::GuiPrivate
- Qt::Qml
- Qt::QmlPrivate
- Qt::Quick
- Qt::QuickPrivate
-)
-
-#### Keys ignored in scope 1:.:.:private.pro:<TRUE>:
-# CXX_MODULE = "qml"
-# QML_FILES = "FastGlow.qml"
-# QML_IMPORT_VERSION = "$$QT_VERSION"
-# TARGETPATH = "QtGraphicalEffects/private"
-
-## Scopes:
-#####################################################################
-
-set(qml_files
- "FastGlow.qml"
-)
-set_source_files_properties(FastGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-
-qt6_target_qml_files(qtgraphicaleffectsprivate
- FILES
- ${qml_files}
-)
diff --git a/src/effects/private/FastGlow.qml b/src/effects/private/FastGlow.qml
deleted file mode 100644
index 896dcae..0000000
--- a/src/effects/private/FastGlow.qml
+++ /dev/null
@@ -1,342 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-Item {
- id: rootItem
- property variant source
- property real spread: 0.0
- property real blur: 0.0
- property color color: "white"
- property bool transparentBorder: false
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- property string __internalBlurVertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"
-
- property string __internalBlurFragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"
-
- ShaderEffect {
- id: level0
- property variant source: sourceProxy.output
- anchors.fill: parent
- visible: false
- smooth: true
- }
-
- ShaderEffectSource {
- id: level1
- width: Math.ceil(shaderItem.width / 32) * 32
- height: Math.ceil(shaderItem.height / 32) * 32
- sourceItem: level0
- hideSource: rootItem.visible
- sourceRect: transparentBorder ? Qt.rect(-64, -64, shaderItem.width, shaderItem.height) : Qt.rect(0,0,0,0)
- smooth: true
- visible: false
- }
-
- ShaderEffect {
- id: effect1
- property variant source: level1
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level2
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level2
- width: level1.width / 2
- height: level1.height / 2
- sourceItem: effect1
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect2
- property variant source: level2
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level3
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level3
- width: level2.width / 2
- height: level2.height / 2
- sourceItem: effect2
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect3
- property variant source: level3
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level4
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level4
- width: level3.width / 2
- height: level3.height / 2
- sourceItem: effect3
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect4
- property variant source: level4
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level5
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level5
- width: level4.width / 2
- height: level4.height / 2
- sourceItem: effect4
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect5
- property variant source: level5
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level6
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level6
- width: level5.width / 2
- height: level5.height / 2
- sourceItem: effect5
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- Item {
- id: dummysource
- width: 1
- height: 1
- visible: false
- }
-
- ShaderEffectSource {
- id: dummy
- width: 1
- height: 1
- sourceItem: dummysource
- visible: false
- smooth: false
- live: false
- }
-
- ShaderEffect {
- id: shaderItem
- x: transparentBorder ? -64 : 0
- y: transparentBorder ? -64 : 0
- width: transparentBorder ? parent.width + 128 : parent.width
- height: transparentBorder ? parent.height + 128 : parent.height
-
- property variant source1: level1
- property variant source2: level2
- property variant source3: level3
- property variant source4: level4
- property variant source5: level5
- property variant source6: level6
- property real lod: rootItem.blur
-
- property real weight1;
- property real weight2;
- property real weight3;
- property real weight4;
- property real weight5;
- property real weight6;
-
- property real spread: 1.0 - (rootItem.spread * 0.98)
- property alias color: rootItem.color
-
- function weight(v) {
- if (v <= 0.0)
- return 1
- if (v >= 0.5)
- return 0
-
- return 1.0 - v / 0.5
- }
-
- function calculateWeights() {
-
- var w1 = weight(Math.abs(lod - 0.100))
- var w2 = weight(Math.abs(lod - 0.300))
- var w3 = weight(Math.abs(lod - 0.500))
- var w4 = weight(Math.abs(lod - 0.700))
- var w5 = weight(Math.abs(lod - 0.900))
- var w6 = weight(Math.abs(lod - 1.100))
-
- var sum = w1 + w2 + w3 + w4 + w5 + w6;
- weight1 = w1 / sum;
- weight2 = w2 / sum;
- weight3 = w3 / sum;
- weight4 = w4 / sum;
- weight5 = w5 / sum;
- weight6 = w6 / sum;
-
- upateSources()
- }
-
- function upateSources() {
- var sources = new Array();
- var weights = new Array();
-
- if (weight1 > 0) {
- sources.push(level1)
- weights.push(weight1)
- }
-
- if (weight2 > 0) {
- sources.push(level2)
- weights.push(weight2)
- }
-
- if (weight3 > 0) {
- sources.push(level3)
- weights.push(weight3)
- }
-
- if (weight4 > 0) {
- sources.push(level4)
- weights.push(weight4)
- }
-
- if (weight5 > 0) {
- sources.push(level5)
- weights.push(weight5)
- }
-
- if (weight6 > 0) {
- sources.push(level6)
- weights.push(weight6)
- }
-
- for (var j = sources.length; j < 6; j++) {
- sources.push(dummy)
- weights.push(0.0)
- }
-
- source1 = sources[0]
- source2 = sources[1]
- source3 = sources[2]
- source4 = sources[3]
- source5 = sources[4]
- source6 = sources[5]
-
- weight1 = weights[0]
- weight2 = weights[1]
- weight3 = weights[2]
- weight4 = weights[3]
- weight5 = weights[4]
- weight6 = weights[5]
- }
-
- Component.onCompleted: calculateWeights()
-
- onLodChanged: calculateWeights()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastglow.frag.qsb"
- }
-}
diff --git a/src/effects/private/plugin.cpp b/src/effects/private/plugin.cpp
deleted file mode 100644
index c03926c..0000000
--- a/src/effects/private/plugin.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQml/qqmlextensionplugin.h>
-#include <QtQml/qqml.h>
-#include <QtQml/qqmlengine.h>
-
-#include "qgfxsourceproxy_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QtGraphicalEffectsPrivatePlugin : public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtGraphicalEffectsPrivatePlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
- void registerTypes(const char *uri) override
- {
- Q_ASSERT(QByteArray(uri) == QByteArrayLiteral("QtGraphicalEffects.private"));
- qmlRegisterType<QGfxSourceProxy>(uri, 1, 0, "SourceProxy");
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 1, 15);
- }
-};
-
-QT_END_NAMESPACE
-
-#include "plugin.moc"
diff --git a/src/effects/private/private.pro b/src/effects/private/private.pro
deleted file mode 100644
index b8d162a..0000000
--- a/src/effects/private/private.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-CXX_MODULE=qml
-TARGETPATH=QtGraphicalEffects/private
-TARGET = qtgraphicaleffectsprivate
-QML_IMPORT_VERSION = $$QT_VERSION
-
-QT += quick qml
-# Needed to get a hold of QQuickShaderEffectSource, QQuickImage and QQuickItemPrivate
-QT += quick-private gui-private core-private qml-private
-
-SOURCES += plugin.cpp \
- qgfxsourceproxy.cpp
-
-HEADERS += \
- qgfxsourceproxy_p.h
-
-QML_FILES = \
- FastGlow.qml
-
-!static: CONFIG += qmlcache
-
-load(qml_plugin)
diff --git a/src/effects/private/qgfxsourceproxy.cpp b/src/effects/private/qgfxsourceproxy.cpp
deleted file mode 100644
index cf64807..0000000
--- a/src/effects/private/qgfxsourceproxy.cpp
+++ /dev/null
@@ -1,216 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "qgfxsourceproxy_p.h"
-
-#include <private/qquickshadereffectsource_p.h>
-#include <private/qquickitem_p.h>
-#include <private/qquickimage_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QGfxSourceProxy::QGfxSourceProxy(QQuickItem *parentItem)
- : QQuickItem(parentItem)
- , m_input(0)
- , m_output(0)
- , m_proxy(0)
- , m_interpolation(AnyInterpolation)
-{
-}
-
-QGfxSourceProxy::~QGfxSourceProxy()
-{
- delete m_proxy;
-}
-
-void QGfxSourceProxy::setInput(QQuickItem *input)
-{
- if (m_input == input)
- return;
-
- if (m_input != nullptr)
- disconnect(m_input, nullptr, this, nullptr);
- m_input = input;
- polish();
- if (m_input != nullptr) {
- if (QQuickImage *image = qobject_cast<QQuickImage *>(m_input)) {
- connect(image, &QQuickImage::sourceSizeChanged, this, &QGfxSourceProxy::repolish);
- connect(image, &QQuickImage::fillModeChanged, this, &QGfxSourceProxy::repolish);
- }
- connect(m_input, &QQuickItem::childrenChanged, this, &QGfxSourceProxy::repolish);
- }
- emit inputChanged();
-}
-
-void QGfxSourceProxy::setOutput(QQuickItem *output)
-{
- if (m_output == output)
- return;
- m_output = output;
- emit activeChanged();
- emit outputChanged();
-}
-
-void QGfxSourceProxy::setSourceRect(const QRectF &sourceRect)
-{
- if (m_sourceRect == sourceRect)
- return;
- m_sourceRect = sourceRect;
- polish();
- emit sourceRectChanged();
-}
-
-void QGfxSourceProxy::setInterpolation(Interpolation i)
-{
- if (m_interpolation == i)
- return;
- m_interpolation = i;
- polish();
- emit interpolationChanged();
-}
-
-
-void QGfxSourceProxy::useProxy()
-{
- if (!m_proxy)
- m_proxy = new QQuickShaderEffectSource(this);
- m_proxy->setSourceRect(m_sourceRect);
- m_proxy->setSourceItem(m_input);
- m_proxy->setSmooth(m_interpolation != NearestInterpolation);
- setOutput(m_proxy);
-}
-
-void QGfxSourceProxy::repolish()
-{
- polish();
-}
-
-QObject *QGfxSourceProxy::findLayer(QQuickItem *item)
-{
- if (!item)
- return 0;
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
- if (d->extra.isAllocated() && d->extra->layer) {
- QObject *layer = qvariant_cast<QObject *>(item->property("layer"));
- if (layer && layer->property("enabled").toBool())
- return layer;
- }
- return 0;
-}
-
-void QGfxSourceProxy::updatePolish()
-{
- if (m_input == 0) {
- setOutput(0);
- return;
- }
-
- QQuickImage *image = qobject_cast<QQuickImage *>(m_input);
- QQuickShaderEffectSource *shaderSource = qobject_cast<QQuickShaderEffectSource *>(m_input);
- bool childless = m_input->childItems().size() == 0;
- bool interpOk = m_interpolation == AnyInterpolation
- || (m_interpolation == LinearInterpolation && m_input->smooth() == true)
- || (m_interpolation == NearestInterpolation && m_input->smooth() == false);
-
- // Layers can be used in two different ways. Option 1 is when the item is
- // used as input to a separate ShaderEffect component. In this case,
- // m_input will be the item itself.
- QObject *layer = findLayer(m_input);
- if (!layer && shaderSource) {
- // Alternatively, the effect is applied via layer.effect, and the
- // input to the effect will be the layer's internal ShaderEffectSource
- // item. In this case, we need to backtrack and find the item that has
- // the layer and configure it accordingly.
- layer = findLayer(shaderSource->sourceItem());
- }
-
- // A bit crude test, but we're only using source rect for
- // blurring+transparent edge, so this is good enough.
- bool padded = m_sourceRect.x() < 0 || m_sourceRect.y() < 0;
-
- bool direct = false;
-
- if (layer) {
- // Auto-configure the layer so interpolation and padding works as
- // expected without allocating additional FBOs. In edgecases, where
- // this feature is undesiered, the user can simply use
- // ShaderEffectSource rather than layer.
- layer->setProperty("sourceRect", m_sourceRect);
- layer->setProperty("smooth", m_interpolation != NearestInterpolation);
- direct = true;
-
- } else if (childless && interpOk) {
-
- if (shaderSource) {
- if (shaderSource->sourceRect() == m_sourceRect || m_sourceRect.isEmpty())
- direct = true;
-
- } else if (!padded && ((image && image->fillMode() == QQuickImage::Stretch && !image->sourceSize().isNull())
- || (!image && m_input->isTextureProvider())
- )
- ) {
- direct = true;
- }
- }
-
- if (direct) {
- setOutput(m_input);
- } else {
- useProxy();
- }
-
- // Remove the proxy if it is not in use..
- if (m_proxy && m_output == m_input) {
- delete m_proxy;
- m_proxy = 0;
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/effects/private/qgfxsourceproxy_p.h b/src/effects/private/qgfxsourceproxy_p.h
deleted file mode 100644
index 8fe592c..0000000
--- a/src/effects/private/qgfxsourceproxy_p.h
+++ /dev/null
@@ -1,125 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QGFXSOURCEPROXY_P_H
-#define QGFXSOURCEPROXY_P_H
-
-#include <QtQuick/QQuickItem>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickShaderEffectSource;
-
-class QGfxSourceProxy : public QQuickItem
-{
- Q_OBJECT
-
- Q_PROPERTY(QQuickItem *input READ input WRITE setInput NOTIFY inputChanged RESET resetInput)
- Q_PROPERTY(QQuickItem *output READ output NOTIFY outputChanged)
- Q_PROPERTY(QRectF sourceRect READ sourceRect WRITE setSourceRect NOTIFY sourceRectChanged)
-
- Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
- Q_PROPERTY(Interpolation interpolation READ interpolation WRITE setInterpolation NOTIFY interpolationChanged)
-
- Q_ENUMS(Interpolation)
-
-public:
- enum Interpolation {
- AnyInterpolation,
- NearestInterpolation,
- LinearInterpolation
- };
-
- QGfxSourceProxy(QQuickItem *item = 0);
- ~QGfxSourceProxy();
-
- QQuickItem *input() const { return m_input; }
- void setInput(QQuickItem *input);
- void resetInput() { setInput(0); }
-
- QQuickItem *output() const { return m_output; }
-
- QRectF sourceRect() const { return m_sourceRect; }
- void setSourceRect(const QRectF &sourceRect);
-
- bool isActive() const { return m_output && m_output != m_input; }
-
- void setInterpolation(Interpolation i);
- Interpolation interpolation() const { return m_interpolation; }
-
-protected:
- void updatePolish() override;
-
-signals:
- void inputChanged();
- void outputChanged();
- void sourceRectChanged();
- void activeChanged();
- void interpolationChanged();
-
-private slots:
- void repolish();
-
-private:
- void setOutput(QQuickItem *output);
- void useProxy();
- static QObject *findLayer(QQuickItem *);
-
- QRectF m_sourceRect;
- QQuickItem *m_input;
- QQuickItem *m_output;
- QQuickShaderEffectSource *m_proxy;
-
- Interpolation m_interpolation;
-};
-
-QT_END_NAMESPACE
-
-#endif // QGFXSOURCEPROXY_P_H
diff --git a/src/effects/private/qmldir b/src/effects/private/qmldir
deleted file mode 100644
index da46a25..0000000
--- a/src/effects/private/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-module QtGraphicalEffects.private
-plugin qtgraphicaleffectsprivate
-classname QtGraphicalEffectsPrivatePlugin
-FastGlow 1.0 FastGlow.qml
diff --git a/src/effects/qmldir b/src/effects/qmldir
deleted file mode 100644
index c0b4dbe..0000000
--- a/src/effects/qmldir
+++ /dev/null
@@ -1,23 +0,0 @@
-module QtGraphicalEffects
-plugin qtgraphicaleffectsplugin
-classname QtGraphicalEffectsPlugin
-BrightnessContrast 1.0 BrightnessContrast.qml
-Colorize 1.0 Colorize.qml
-ColorOverlay 1.0 ColorOverlay.qml
-ConicalGradient 1.0 ConicalGradient.qml
-Desaturate 1.0 Desaturate.qml
-Displace 1.0 Displace.qml
-DropShadow 1.0 DropShadow.qml
-FastBlur 1.0 FastBlur.qml
-GammaAdjust 1.0 GammaAdjust.qml
-Glow 1.0 Glow.qml
-HueSaturation 1.0 HueSaturation.qml
-LevelAdjust 1.0 LevelAdjust.qml
-LinearGradient 1.0 LinearGradient.qml
-OpacityMask 1.0 OpacityMask.qml
-RadialGradient 1.0 RadialGradient.qml
-RectangularGlow 1.0 RectangularGlow.qml
-ThresholdMask 1.0 ThresholdMask.qml
-designersupported
-depends QtGraphicalEffects/private 1.0
-depends QtQuick.Window 2.1
diff --git a/src/effects/qtgraphicaleffectsshaders.qrc b/src/effects/qtgraphicaleffectsshaders.qrc
deleted file mode 100644
index 169f190..0000000
--- a/src/effects/qtgraphicaleffectsshaders.qrc
+++ /dev/null
@@ -1,28 +0,0 @@
-<RCC>
- <qresource prefix="/qt-project.org/imports/QtGraphicalEffects">
- <file>shaders_ng/opacitymask.frag.qsb</file>
- <file>shaders_ng/opacitymask_invert.frag.qsb</file>
- <file>shaders_ng/fastblur.frag.qsb</file>
- <file>shaders_ng/fastblur_internal.vert.qsb</file>
- <file>shaders_ng/fastblur_internal.frag.qsb</file>
- <file>shaders_ng/fastglow.frag.qsb</file>
- <file>shaders_ng/colorize.frag.qsb</file>
- <file>shaders_ng/brightnesscontrast.frag.qsb</file>
- <file>shaders_ng/coloroverlay.frag.qsb</file>
- <file>shaders_ng/desaturate.frag.qsb</file>
- <file>shaders_ng/displace.frag.qsb</file>
- <file>shaders_ng/gammaadjust.frag.qsb</file>
- <file>shaders_ng/huesaturation.frag.qsb</file>
- <file>shaders_ng/rectangularglow.frag.qsb</file>
- <file>shaders_ng/thresholdmask.frag.qsb</file>
- <file>shaders_ng/conicalgradient_nomask.frag.qsb</file>
- <file>shaders_ng/conicalgradient_mask.frag.qsb</file>
- <file>shaders_ng/lineargradient.vert.qsb</file>
- <file>shaders_ng/lineargradient_nomask.frag.qsb</file>
- <file>shaders_ng/lineargradient_mask.frag.qsb</file>
- <file>shaders_ng/radialgradient_nomask.frag.qsb</file>
- <file>shaders_ng/radialgradient_mask.frag.qsb</file>
- <file>shaders_ng/radialgradient.vert.qsb</file>
- <file>shaders_ng/leveladjust.frag.qsb</file>
- </qresource>
-</RCC>
diff --git a/src/effects/shaders_ng/brightnesscontrast.frag b/src/effects/shaders_ng/brightnesscontrast.frag
deleted file mode 100644
index c9ae173..0000000
--- a/src/effects/shaders_ng/brightnesscontrast.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float brightness;
- float contrast;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 pixelColor = texture(source, qt_TexCoord0);
- pixelColor.rgb /= max(1.0/256.0, pixelColor.a);
- float c = 1.0 + contrast;
- float contrastGainFactor = 1.0 + c * c * c * c * step(0.0, contrast);
- pixelColor.rgb = ((pixelColor.rgb - 0.5) * (contrastGainFactor * contrast + 1.0)) + 0.5;
- pixelColor.rgb = mix(pixelColor.rgb, vec3(step(0.0, brightness)), abs(brightness));
- fragColor = vec4(pixelColor.rgb * pixelColor.a, pixelColor.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/brightnesscontrast.frag.qsb b/src/effects/shaders_ng/brightnesscontrast.frag.qsb
deleted file mode 100644
index 2fc9761..0000000
--- a/src/effects/shaders_ng/brightnesscontrast.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/colorize.frag b/src/effects/shaders_ng/colorize.frag
deleted file mode 100644
index a109a45..0000000
--- a/src/effects/shaders_ng/colorize.frag
+++ /dev/null
@@ -1,72 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float hue;
- float saturation;
- float lightness;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-float RGBtoL(vec3 color)
-{
- float cmin = min(color.r, min(color.g, color.b));
- float cmax = max(color.r, max(color.g, color.b));
- float l = (cmin + cmax) / 2.0;
- return l;
-}
-
-float hueToIntensity(float v1, float v2, float h)
-{
- h = fract(h);
- if (h < 1.0 / 6.0)
- return v1 + (v2 - v1) * 6.0 * h;
- else if (h < 1.0 / 2.0)
- return v2;
- else if (h < 2.0 / 3.0)
- return v1 + (v2 - v1) * 6.0 * (2.0 / 3.0 - h);
-
- return v1;
-}
-
-vec3 HSLtoRGB(vec3 color)
-{
- float h = color.x;
- float l = color.z;
- float s = color.y;
-
- if (s < 1.0 / 256.0)
- return vec3(l, l, l);
-
- float v1;
- float v2;
- if (l < 0.5)
- v2 = l * (1.0 + s);
- else
- v2 = (l + s) - (s * l);
-
- v1 = 2.0 * l - v2;
-
- float d = 1.0 / 3.0;
- float r = hueToIntensity(v1, v2, h + d);
- float g = hueToIntensity(v1, v2, h);
- float b = hueToIntensity(v1, v2, h - d);
- return vec3(r, g, b);
-}
-
-void main()
-{
- vec4 samp = texture(source, qt_TexCoord0);
- samp = vec4(samp.rgb / max(1.0/256.0, samp.a), samp.a);
- float light = RGBtoL(samp.rgb);
- float c = step(0.0, lightness);
- samp.rgb = HSLtoRGB(vec3(hue, saturation, mix(light, c, abs(lightness))));
- fragColor = vec4(samp.rgb * samp.a, samp.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/colorize.frag.qsb b/src/effects/shaders_ng/colorize.frag.qsb
deleted file mode 100644
index eb55cb3..0000000
--- a/src/effects/shaders_ng/colorize.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/coloroverlay.frag b/src/effects/shaders_ng/coloroverlay.frag
deleted file mode 100644
index 5ec1666..0000000
--- a/src/effects/shaders_ng/coloroverlay.frag
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec4 color;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 pixelColor = texture(source, qt_TexCoord0);
- fragColor = vec4(mix(pixelColor.rgb/max(pixelColor.a, 0.00390625), color.rgb/max(color.a, 0.00390625), color.a) * pixelColor.a, pixelColor.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/coloroverlay.frag.qsb b/src/effects/shaders_ng/coloroverlay.frag.qsb
deleted file mode 100644
index e1eb955..0000000
--- a/src/effects/shaders_ng/coloroverlay.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/compile.bat b/src/effects/shaders_ng/compile.bat
deleted file mode 100644
index 9eafc03..0000000
--- a/src/effects/shaders_ng/compile.bat
+++ /dev/null
@@ -1,77 +0,0 @@
-:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-::
-:: Copyright (C) 2020 The Qt Company Ltd.
-:: Contact: https://www.qt.io/licensing/
-::
-:: This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-::
-:: $QT_BEGIN_LICENSE:BSD$
-:: Commercial License Usage
-:: Licensees holding valid commercial Qt licenses may use this file in
-:: accordance with the commercial license agreement provided with the
-:: Software or, alternatively, in accordance with the terms contained in
-:: a written agreement between you and The Qt Company. For licensing terms
-:: and conditions see https://www.qt.io/terms-conditions. For further
-:: information use the contact form at https://www.qt.io/contact-us.
-::
-:: BSD License Usage
-:: Alternatively, you may use this file under the terms of the BSD license
-:: as follows:
-::
-:: "Redistribution and use in source and binary forms, with or without
-:: modification, are permitted provided that the following conditions are
-:: met:
-:: * Redistributions of source code must retain the above copyright
-:: notice, this list of conditions and the following disclaimer.
-:: * Redistributions in binary form must reproduce the above copyright
-:: notice, this list of conditions and the following disclaimer in
-:: the documentation and/or other materials provided with the
-:: distribution.
-:: * Neither the name of The Qt Company Ltd nor the names of its
-:: contributors may be used to endorse or promote products derived
-:: from this software without specific prior written permission.
-::
-::
-:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-:: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-:: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-:: A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-:: OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-:: LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-:: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-:: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-:: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-:: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-::
-:: $QT_END_LICENSE$
-::
-::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::/
-
-:: For HLSL we invoke fxc.exe (-c argument) and store the resulting intermediate format
-:: instead of HLSL source, so this needs to be run on Windows from a developer command prompt.
-
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o opacitymask.frag.qsb opacitymask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o opacitymask_invert.frag.qsb opacitymask_invert.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastblur.frag.qsb fastblur.frag
-qsb -b --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastblur_internal.vert.qsb fastblur_internal.vert
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastblur_internal.frag.qsb fastblur_internal.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastglow.frag.qsb fastglow.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o colorize.frag.qsb colorize.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o brightnesscontrast.frag.qsb brightnesscontrast.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o coloroverlay.frag.qsb coloroverlay.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o desaturate.frag.qsb desaturate.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o displace.frag.qsb displace.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o gammaadjust.frag.qsb gammaadjust.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o huesaturation.frag.qsb huesaturation.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o rectangularglow.frag.qsb rectangularglow.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o thresholdmask.frag.qsb thresholdmask.frag
-qsb -b --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o lineargradient.vert.qsb lineargradient.vert
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o lineargradient_nomask.frag.qsb lineargradient_nomask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o lineargradient_mask.frag.qsb lineargradient_mask.frag
-qsb -b --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o radialgradient.vert.qsb radialgradient.vert
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o radialgradient_nomask.frag.qsb radialgradient_nomask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o radialgradient_mask.frag.qsb radialgradient_mask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o conicalgradient_nomask.frag.qsb conicalgradient_nomask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o conicalgradient_mask.frag.qsb conicalgradient_mask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o leveladjust.frag.qsb leveladjust.frag
diff --git a/src/effects/shaders_ng/conicalgradient_mask.frag b/src/effects/shaders_ng/conicalgradient_mask.frag
deleted file mode 100644
index 5c1f2ed..0000000
--- a/src/effects/shaders_ng/conicalgradient_mask.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- float startAngle;
-};
-
-layout(binding = 1) uniform sampler2D gradientSource;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- float maskAlpha = texture(maskSource, qt_TexCoord0).a;
- const float PI = 3.14159265;
- const float PIx2inv = 0.1591549;
- float a = (atan((center.y - qt_TexCoord0.t), (center.x - qt_TexCoord0.s)) + PI - startAngle) * PIx2inv;
- fragColor = texture(gradientSource, vec2(0.0, fract(a))) * maskAlpha * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/conicalgradient_mask.frag.qsb b/src/effects/shaders_ng/conicalgradient_mask.frag.qsb
deleted file mode 100644
index f0ce8e7..0000000
--- a/src/effects/shaders_ng/conicalgradient_mask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/conicalgradient_nomask.frag b/src/effects/shaders_ng/conicalgradient_nomask.frag
deleted file mode 100644
index b63d7e6..0000000
--- a/src/effects/shaders_ng/conicalgradient_nomask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- float startAngle;
-};
-
-layout(binding = 1) uniform sampler2D gradientSource;
-
-void main()
-{
- const float PI = 3.14159265;
- const float PIx2inv = 0.1591549;
- float a = (atan((center.y - qt_TexCoord0.t), (center.x - qt_TexCoord0.s)) + PI - startAngle) * PIx2inv;
- fragColor = texture(gradientSource, vec2(0.0, fract(a))) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/conicalgradient_nomask.frag.qsb b/src/effects/shaders_ng/conicalgradient_nomask.frag.qsb
deleted file mode 100644
index d074e61..0000000
--- a/src/effects/shaders_ng/conicalgradient_nomask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/desaturate.frag b/src/effects/shaders_ng/desaturate.frag
deleted file mode 100644
index b54b3ac..0000000
--- a/src/effects/shaders_ng/desaturate.frag
+++ /dev/null
@@ -1,21 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float desaturation;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main(void)
-{
- vec4 textureColor = texture(source, qt_TexCoord0.st);
- float grayColor = (textureColor.r + textureColor.g + textureColor.b) / 3.0;
- fragColor = mix(textureColor, vec4(vec3(grayColor), textureColor.a), desaturation) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/desaturate.frag.qsb b/src/effects/shaders_ng/desaturate.frag.qsb
deleted file mode 100644
index 8a0b4da..0000000
--- a/src/effects/shaders_ng/desaturate.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/displace.frag b/src/effects/shaders_ng/displace.frag
deleted file mode 100644
index df6bc78..0000000
--- a/src/effects/shaders_ng/displace.frag
+++ /dev/null
@@ -1,39 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float displacement;
- float xPixel;
- float yPixel;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D displacementSource;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- vec4 offset = texture(displacementSource, qt_TexCoord0);
- offset.xy -= vec2(0.5, 0.5);
- offset.xy = offset.xy * step(vec2(1.0/256.0), abs(offset.xy));
- vec2 tx = qt_TexCoord0 + (vec2(-offset.x, offset.y) * displacement);
-
- float e1 = linearstep(0.0, xPixel, tx.x);
- float e2 = linearstep(0.0, yPixel, tx.y);
- float e3 = 1.0 - linearstep(1.0, 1.0 + xPixel, tx.x);
- float e4 = 1.0 - linearstep(1.0, 1.0 + yPixel, tx.y);
-
- vec4 samp = texture(source, tx);
- samp.rgb *= e1 * e2 * e3 * e4;
- fragColor = samp * qt_Opacity * offset.a;
-}
diff --git a/src/effects/shaders_ng/displace.frag.qsb b/src/effects/shaders_ng/displace.frag.qsb
deleted file mode 100644
index 3c3656c..0000000
--- a/src/effects/shaders_ng/displace.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastblur.frag b/src/effects/shaders_ng/fastblur.frag
deleted file mode 100644
index 6e2ca14..0000000
--- a/src/effects/shaders_ng/fastblur.frag
+++ /dev/null
@@ -1,32 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float weight1;
- float weight2;
- float weight3;
- float weight4;
- float weight5;
-};
-
-layout(binding = 1) uniform sampler2D source1;
-layout(binding = 2) uniform sampler2D source2;
-layout(binding = 3) uniform sampler2D source3;
-layout(binding = 4) uniform sampler2D source4;
-layout(binding = 5) uniform sampler2D source5;
-
-void main()
-{
- vec4 sourceColor = texture(source1, qt_TexCoord0) * weight1;
- sourceColor += texture(source2, qt_TexCoord0) * weight2;
- sourceColor += texture(source3, qt_TexCoord0) * weight3;
- sourceColor += texture(source4, qt_TexCoord0) * weight4;
- sourceColor += texture(source5, qt_TexCoord0) * weight5;
- fragColor = sourceColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/fastblur.frag.qsb b/src/effects/shaders_ng/fastblur.frag.qsb
deleted file mode 100644
index 24c623a..0000000
--- a/src/effects/shaders_ng/fastblur.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastblur_internal.frag b/src/effects/shaders_ng/fastblur_internal.frag
deleted file mode 100644
index 7a608de..0000000
--- a/src/effects/shaders_ng/fastblur_internal.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 2) in vec2 qt_TexCoord2;
-layout(location = 3) in vec2 qt_TexCoord3;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- float xStep;
- float yStep;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 sourceColor = (texture(source, qt_TexCoord0) +
- texture(source, qt_TexCoord1) +
- texture(source, qt_TexCoord2) +
- texture(source, qt_TexCoord3)) * 0.25;
- fragColor = sourceColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/fastblur_internal.frag.qsb b/src/effects/shaders_ng/fastblur_internal.frag.qsb
deleted file mode 100644
index fd439c8..0000000
--- a/src/effects/shaders_ng/fastblur_internal.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastblur_internal.vert b/src/effects/shaders_ng/fastblur_internal.vert
deleted file mode 100644
index e9a14b0..0000000
--- a/src/effects/shaders_ng/fastblur_internal.vert
+++ /dev/null
@@ -1,27 +0,0 @@
-#version 440
-
-layout(location = 0) in vec4 qt_Vertex;
-layout(location = 1) in vec2 qt_MultiTexCoord0;
-
-layout(location = 0) out vec2 qt_TexCoord0;
-layout(location = 1) out vec2 qt_TexCoord1;
-layout(location = 2) out vec2 qt_TexCoord2;
-layout(location = 3) out vec2 qt_TexCoord3;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- float xStep;
- float yStep;
-};
-
-out gl_PerVertex { vec4 gl_Position; };
-
-void main()
-{
- qt_TexCoord0 = vec2(qt_MultiTexCoord0.x + xStep, qt_MultiTexCoord0.y + yStep * 0.36);
- qt_TexCoord1 = vec2(qt_MultiTexCoord0.x + xStep * 0.36, qt_MultiTexCoord0.y - yStep);
- qt_TexCoord2 = vec2(qt_MultiTexCoord0.x - xStep * 0.36, qt_MultiTexCoord0.y + yStep);
- qt_TexCoord3 = vec2(qt_MultiTexCoord0.x - xStep, qt_MultiTexCoord0.y - yStep * 0.36);
- gl_Position = qt_Matrix * qt_Vertex;
-}
diff --git a/src/effects/shaders_ng/fastblur_internal.vert.qsb b/src/effects/shaders_ng/fastblur_internal.vert.qsb
deleted file mode 100644
index 96781b8..0000000
--- a/src/effects/shaders_ng/fastblur_internal.vert.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastglow.frag b/src/effects/shaders_ng/fastglow.frag
deleted file mode 100644
index fa19239..0000000
--- a/src/effects/shaders_ng/fastglow.frag
+++ /dev/null
@@ -1,40 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec4 color;
- float spread;
- float weight1;
- float weight2;
- float weight3;
- float weight4;
- float weight5;
-};
-
-layout(binding = 1) uniform sampler2D source1;
-layout(binding = 2) uniform sampler2D source2;
-layout(binding = 3) uniform sampler2D source3;
-layout(binding = 4) uniform sampler2D source4;
-layout(binding = 5) uniform sampler2D source5;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- vec4 sourceColor = texture(source1, qt_TexCoord0) * weight1;
- sourceColor += texture(source2, qt_TexCoord0) * weight2;
- sourceColor += texture(source3, qt_TexCoord0) * weight3;
- sourceColor += texture(source4, qt_TexCoord0) * weight4;
- sourceColor += texture(source5, qt_TexCoord0) * weight5;
- sourceColor = mix(vec4(0), color, linearstep(0.0, spread, sourceColor.a));
- fragColor = sourceColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/fastglow.frag.qsb b/src/effects/shaders_ng/fastglow.frag.qsb
deleted file mode 100644
index d78cd6d..0000000
--- a/src/effects/shaders_ng/fastglow.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/gammaadjust.frag b/src/effects/shaders_ng/gammaadjust.frag
deleted file mode 100644
index 0a1175a..0000000
--- a/src/effects/shaders_ng/gammaadjust.frag
+++ /dev/null
@@ -1,22 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float gamma;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 originalColor = texture(source, qt_TexCoord0.st);
- originalColor.rgb = originalColor.rgb / max(1.0/256.0, originalColor.a);
- vec3 adjustedColor = pow(originalColor.rgb, vec3(gamma));
- fragColor = vec4(adjustedColor * originalColor.a, originalColor.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/gammaadjust.frag.qsb b/src/effects/shaders_ng/gammaadjust.frag.qsb
deleted file mode 100644
index 40ab6c1..0000000
--- a/src/effects/shaders_ng/gammaadjust.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/huesaturation.frag b/src/effects/shaders_ng/huesaturation.frag
deleted file mode 100644
index 0b1e10e..0000000
--- a/src/effects/shaders_ng/huesaturation.frag
+++ /dev/null
@@ -1,91 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec3 hsl;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-vec3 RGBtoHSL(vec3 color)
-{
- float cmin = min(color.r, min(color.g, color.b));
- float cmax = max(color.r, max(color.g, color.b));
- float h = 0.0;
- float s = 0.0;
- float l = (cmin + cmax) / 2.0;
- float diff = cmax - cmin;
-
- if (diff > 1.0 / 256.0) {
- if (l < 0.5)
- s = diff / (cmin + cmax);
- else
- s = diff / (2.0 - (cmin + cmax));
-
- if (color.r == cmax)
- h = (color.g - color.b) / diff;
- else if (color.g == cmax)
- h = 2.0 + (color.b - color.r) / diff;
- else
- h = 4.0 + (color.r - color.g) / diff;
-
- h /= 6.0;
- }
- return vec3(h, s, l);
-}
-
-float hueToIntensity(float v1, float v2, float h)
-{
- h = fract(h);
- if (h < 1.0 / 6.0)
- return v1 + (v2 - v1) * 6.0 * h;
- else if (h < 1.0 / 2.0)
- return v2;
- else if (h < 2.0 / 3.0)
- return v1 + (v2 - v1) * 6.0 * (2.0 / 3.0 - h);
-
- return v1;
-}
-
-vec3 HSLtoRGB(vec3 color)
-{
- float h = color.x;
- float l = color.z;
- float s = color.y;
-
- if (s < 1.0 / 256.0)
- return vec3(l);
-
- float v1;
- float v2;
- if (l < 0.5)
- v2 = l * (1.0 + s);
- else
- v2 = (l + s) - (s * l);
-
- v1 = 2.0 * l - v2;
-
- float d = 1.0 / 3.0;
- float r = hueToIntensity(v1, v2, h + d);
- float g = hueToIntensity(v1, v2, h);
- float b = hueToIntensity(v1, v2, h - d);
- return vec3(r, g, b);
-}
-
-void main()
-{
- vec4 samp = texture(source, qt_TexCoord0);
- samp = vec4(samp.rgb / max(1.0/256.0, samp.a), samp.a);
- samp.rgb = mix(vec3(dot(samp.rgb, vec3(0.2125, 0.7154, 0.0721))), samp.rgb, 1.0 + hsl.y);
- samp.xyz = RGBtoHSL(samp.rgb);
- samp.rgb = HSLtoRGB(vec3(samp.x + hsl.x, samp.y, samp.z));
- float c = step(0.0, hsl.z);
- samp.rgb = mix(samp.rgb, vec3(c), abs(hsl.z));
- fragColor = vec4(samp.rgb * samp.a, samp.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/huesaturation.frag.qsb b/src/effects/shaders_ng/huesaturation.frag.qsb
deleted file mode 100644
index 028a8b8..0000000
--- a/src/effects/shaders_ng/huesaturation.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/leveladjust.frag b/src/effects/shaders_ng/leveladjust.frag
deleted file mode 100644
index d8cde59..0000000
--- a/src/effects/shaders_ng/leveladjust.frag
+++ /dev/null
@@ -1,47 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec3 minimumInputRGB;
- vec3 maximumInputRGB;
- float minimumInputAlpha;
- float maximumInputAlpha;
- vec3 minimumOutputRGB;
- vec3 maximumOutputRGB;
- float minimumOutputAlpha;
- float maximumOutputAlpha;
- vec3 gamma;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- vec4 textureColor = texture(source, qt_TexCoord0.st);
- vec4 color = vec4(textureColor.rgb / max(1.0/256.0, textureColor.a), textureColor.a);
-
- color.r = linearstep(minimumInputRGB.r, maximumInputRGB.r, color.r);
- color.g = linearstep(minimumInputRGB.g, maximumInputRGB.g, color.g);
- color.b = linearstep(minimumInputRGB.b, maximumInputRGB.b, color.b);
- color.a = linearstep(minimumInputAlpha, maximumInputAlpha, color.a);
-
- color.rgb = pow(color.rgb, gamma);
-
- color.r = minimumOutputRGB.r + color.r * (maximumOutputRGB.r - minimumOutputRGB.r);
- color.g = minimumOutputRGB.g + color.g * (maximumOutputRGB.g - minimumOutputRGB.g);
- color.b = minimumOutputRGB.b + color.b * (maximumOutputRGB.b - minimumOutputRGB.b);
- color.a = minimumOutputAlpha + color.a * (maximumOutputAlpha - minimumOutputAlpha);
-
- fragColor = vec4(color.rgb * color.a, color.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/leveladjust.frag.qsb b/src/effects/shaders_ng/leveladjust.frag.qsb
deleted file mode 100644
index fad450d..0000000
--- a/src/effects/shaders_ng/leveladjust.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/lineargradient.vert b/src/effects/shaders_ng/lineargradient.vert
deleted file mode 100644
index cd8f8a8..0000000
--- a/src/effects/shaders_ng/lineargradient.vert
+++ /dev/null
@@ -1,31 +0,0 @@
-#version 440
-
-layout(location = 0) in vec4 qt_Vertex;
-layout(location = 1) in vec2 qt_MultiTexCoord0;
-
-layout(location = 0) out vec2 qt_TexCoord0;
-layout(location = 1) out vec2 qt_TexCoord1;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 startPoint;
- vec2 matrixData;
- float l;
-};
-
-out gl_PerVertex { vec4 gl_Position; };
-
-void main()
-{
- mat2 rot = mat2(matrixData.y, -matrixData.x,
- matrixData.x, matrixData.y);
-
- qt_TexCoord0 = qt_MultiTexCoord0;
-
- qt_TexCoord1 = qt_MultiTexCoord0 * l;
- qt_TexCoord1 -= startPoint * l;
- qt_TexCoord1 *= rot;
-
- gl_Position = qt_Matrix * qt_Vertex;
-}
diff --git a/src/effects/shaders_ng/lineargradient.vert.qsb b/src/effects/shaders_ng/lineargradient.vert.qsb
deleted file mode 100644
index 475ace8..0000000
--- a/src/effects/shaders_ng/lineargradient.vert.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/lineargradient_mask.frag b/src/effects/shaders_ng/lineargradient_mask.frag
deleted file mode 100644
index dda85d7..0000000
--- a/src/effects/shaders_ng/lineargradient_mask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 startPoint;
- vec2 matrixData;
- float l;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- vec4 gradientColor = texture(source, qt_TexCoord1);
- float maskAlpha = texture(maskSource, qt_TexCoord0).a;
- fragColor = gradientColor * maskAlpha * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/lineargradient_mask.frag.qsb b/src/effects/shaders_ng/lineargradient_mask.frag.qsb
deleted file mode 100644
index 1e99b35..0000000
--- a/src/effects/shaders_ng/lineargradient_mask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/lineargradient_nomask.frag b/src/effects/shaders_ng/lineargradient_nomask.frag
deleted file mode 100644
index be1d992..0000000
--- a/src/effects/shaders_ng/lineargradient_nomask.frag
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 startPoint;
- vec2 matrixData;
- float l;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- fragColor = texture(source, qt_TexCoord1) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/lineargradient_nomask.frag.qsb b/src/effects/shaders_ng/lineargradient_nomask.frag.qsb
deleted file mode 100644
index 99c479c..0000000
--- a/src/effects/shaders_ng/lineargradient_nomask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/opacitymask.frag b/src/effects/shaders_ng/opacitymask.frag
deleted file mode 100644
index 94a80b8..0000000
--- a/src/effects/shaders_ng/opacitymask.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- fragColor = texture(source, qt_TexCoord0.st) * (texture(maskSource, qt_TexCoord0.st).a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/opacitymask.frag.qsb b/src/effects/shaders_ng/opacitymask.frag.qsb
deleted file mode 100644
index cef12b4..0000000
--- a/src/effects/shaders_ng/opacitymask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/opacitymask_invert.frag b/src/effects/shaders_ng/opacitymask_invert.frag
deleted file mode 100644
index 2506bdb..0000000
--- a/src/effects/shaders_ng/opacitymask_invert.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- fragColor = texture(source, qt_TexCoord0.st) * (1.0 - texture(maskSource, qt_TexCoord0.st).a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/opacitymask_invert.frag.qsb b/src/effects/shaders_ng/opacitymask_invert.frag.qsb
deleted file mode 100644
index b622ff9..0000000
--- a/src/effects/shaders_ng/opacitymask_invert.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/radialgradient.vert b/src/effects/shaders_ng/radialgradient.vert
deleted file mode 100644
index 27dd88a..0000000
--- a/src/effects/shaders_ng/radialgradient.vert
+++ /dev/null
@@ -1,39 +0,0 @@
-#version 440
-
-layout(location = 0) in vec4 qt_Vertex;
-layout(location = 1) in vec2 qt_MultiTexCoord0;
-
-layout(location = 0) out vec2 qt_TexCoord0;
-layout(location = 1) out vec2 qt_TexCoord1;
-layout(location = 2) out vec2 centerPoint;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- vec2 matrixData;
- float horizontalRatio;
- float verticalRatio;
-};
-
-out gl_PerVertex { vec4 gl_Position; };
-
-void main()
-{
- vec2 ratio = vec2(horizontalRatio, verticalRatio);
-
- mat2 rot = mat2(matrixData.y, -matrixData.x,
- matrixData.x, matrixData.y);
-
- qt_TexCoord0 = qt_MultiTexCoord0;
-
- qt_TexCoord1 = qt_MultiTexCoord0;
- qt_TexCoord1 -= center;
- qt_TexCoord1 *= rot;
- qt_TexCoord1 += center;
- qt_TexCoord1 *= ratio;
-
- centerPoint = center * ratio;
-
- gl_Position = qt_Matrix * qt_Vertex;
-}
diff --git a/src/effects/shaders_ng/radialgradient.vert.qsb b/src/effects/shaders_ng/radialgradient.vert.qsb
deleted file mode 100644
index 38961b8..0000000
--- a/src/effects/shaders_ng/radialgradient.vert.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/radialgradient_mask.frag b/src/effects/shaders_ng/radialgradient_mask.frag
deleted file mode 100644
index b67d67f..0000000
--- a/src/effects/shaders_ng/radialgradient_mask.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 2) in vec2 centerPoint;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- vec2 matrixData;
- float horizontalRatio;
- float verticalRatio;
-};
-
-layout(binding = 1) uniform sampler2D gradientImage;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- vec4 gradientColor = texture(gradientImage, vec2(0.0, 2.0 * distance(qt_TexCoord1, centerPoint)));
- float maskAlpha = texture(maskSource, qt_TexCoord0).a;
- fragColor = gradientColor * maskAlpha * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/radialgradient_mask.frag.qsb b/src/effects/shaders_ng/radialgradient_mask.frag.qsb
deleted file mode 100644
index 8606a67..0000000
--- a/src/effects/shaders_ng/radialgradient_mask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/radialgradient_nomask.frag b/src/effects/shaders_ng/radialgradient_nomask.frag
deleted file mode 100644
index 777d53d..0000000
--- a/src/effects/shaders_ng/radialgradient_nomask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 2) in vec2 centerPoint;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- vec2 matrixData;
- float horizontalRatio;
- float verticalRatio;
-};
-
-layout(binding = 1) uniform sampler2D gradientImage;
-
-void main()
-{
- vec4 gradientColor = texture(gradientImage, vec2(0.0, 2.0 * distance(qt_TexCoord1, centerPoint)));
- fragColor = gradientColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/radialgradient_nomask.frag.qsb b/src/effects/shaders_ng/radialgradient_nomask.frag.qsb
deleted file mode 100644
index 1df3ebc..0000000
--- a/src/effects/shaders_ng/radialgradient_nomask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/rectangularglow.frag b/src/effects/shaders_ng/rectangularglow.frag
deleted file mode 100644
index cf20b93..0000000
--- a/src/effects/shaders_ng/rectangularglow.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec4 color;
- float relativeSizeX;
- float relativeSizeY;
- float spread;
-};
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- float alpha =
- smoothstep(0.0, relativeSizeX, 0.5 - abs(0.5 - qt_TexCoord0.x)) *
- smoothstep(0.0, relativeSizeY, 0.5 - abs(0.5 - qt_TexCoord0.y));
-
- float spreadMultiplier = linearstep(spread, 1.0 - spread, alpha);
- fragColor = color * qt_Opacity * spreadMultiplier * spreadMultiplier;
-}
diff --git a/src/effects/shaders_ng/rectangularglow.frag.qsb b/src/effects/shaders_ng/rectangularglow.frag.qsb
deleted file mode 100644
index 7eaf930..0000000
--- a/src/effects/shaders_ng/rectangularglow.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/thresholdmask.frag b/src/effects/shaders_ng/thresholdmask.frag
deleted file mode 100644
index 7740e7e..0000000
--- a/src/effects/shaders_ng/thresholdmask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float threshold;
- float spread;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- vec4 colorFragment = texture(source, qt_TexCoord0.st);
- vec4 maskFragment = texture(maskSource, qt_TexCoord0.st);
- fragColor = colorFragment * smoothstep(threshold * (1.0 + spread) - spread, threshold * (1.0 + spread), maskFragment.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/thresholdmask.frag.qsb b/src/effects/shaders_ng/thresholdmask.frag.qsb
deleted file mode 100644
index 38e7391..0000000
--- a/src/effects/shaders_ng/thresholdmask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/src.pro b/src/src.pro
deleted file mode 100644
index b779774..0000000
--- a/src/src.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += effects