diff --git a/CoreImage/AppDelegate.cs b/CoreImage/AppDelegate.cs index 103ed772..b6e90dc0 100644 --- a/CoreImage/AppDelegate.cs +++ b/CoreImage/AppDelegate.cs @@ -98,10 +98,6 @@ namespace coreimage root.Add (testingSection); testingSection.Add (new RootElement("Show All Filters", (x) => new VisitFilterViewController (masterList))); - testingSection.Add (new RootElement("Test Filters", (x) => new TestImagesViewController (masterList))); - - if (Runtime.Arch == Arch.SIMULATOR) - testingSection.Add (new RootElement("Rebase Test Images", (x) => new RebaseImagesViewController (masterList))); window = new UIWindow (UIScreen.MainScreen.Bounds) { RootViewController = new UINavigationController (new DialogViewController (root)) diff --git a/CoreImage/RebaseImagesViewController.cs b/CoreImage/RebaseImagesViewController.cs deleted file mode 100644 index e9a55e45..00000000 --- a/CoreImage/RebaseImagesViewController.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.IO; -using MonoTouch.UIKit; -using MonoTouch.Foundation; -using MonoTouch.ObjCRuntime; -using System.Threading.Tasks; - -namespace coreimage -{ - class RebaseImagesViewController : VisitFilterViewController - { - public RebaseImagesViewController (FilterHolder [] filterList) : base (filterList) - { - BarButton.Title = "Rebase"; - } - - protected override async Task PerformActionOnTestImage (UIImage image, FilterHolder filterHolder) - { - await Task.Factory.StartNew (() => { - var directory = ImageDirectory(); - var fileName = ImagePath(filterHolder.Name); - - if(!Directory.Exists(directory)) - Directory.CreateDirectory(directory); - - if (Runtime.Arch == Arch.SIMULATOR) { - if(File.Exists(fileName)) - File.Delete(fileName); - - NSError err; - image.AsPNG().Save(fileName, NSDataWritingOptions.FileProtectionNone, out err); - - if(err != null) - Console.WriteLine("Could not write image File. " + Environment.NewLine + err.LocalizedDescription); - } - }); - } - } -} - diff --git a/CoreImage/TestImages/AdditionCompositing.png b/CoreImage/TestImages/AdditionCompositing.png deleted file mode 100644 index f246b441..00000000 Binary files a/CoreImage/TestImages/AdditionCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/AffineClamp.png b/CoreImage/TestImages/AffineClamp.png deleted file mode 100644 index 10381924..00000000 Binary files a/CoreImage/TestImages/AffineClamp.png and /dev/null differ diff --git a/CoreImage/TestImages/AffineTile.png b/CoreImage/TestImages/AffineTile.png deleted file mode 100644 index deb2e017..00000000 Binary files a/CoreImage/TestImages/AffineTile.png and /dev/null differ diff --git a/CoreImage/TestImages/AffineTransform.png b/CoreImage/TestImages/AffineTransform.png deleted file mode 100644 index ddbe656d..00000000 Binary files a/CoreImage/TestImages/AffineTransform.png and /dev/null differ diff --git a/CoreImage/TestImages/BarsSwipeTransition.png b/CoreImage/TestImages/BarsSwipeTransition.png deleted file mode 100644 index 06a624cd..00000000 Binary files a/CoreImage/TestImages/BarsSwipeTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/BlendWithAlphaMask.png b/CoreImage/TestImages/BlendWithAlphaMask.png deleted file mode 100644 index 91f8466e..00000000 Binary files a/CoreImage/TestImages/BlendWithAlphaMask.png and /dev/null differ diff --git a/CoreImage/TestImages/BlendWithMask.png b/CoreImage/TestImages/BlendWithMask.png deleted file mode 100644 index d96fa890..00000000 Binary files a/CoreImage/TestImages/BlendWithMask.png and /dev/null differ diff --git a/CoreImage/TestImages/Bloom.png b/CoreImage/TestImages/Bloom.png deleted file mode 100644 index 8f9b7849..00000000 Binary files a/CoreImage/TestImages/Bloom.png and /dev/null differ diff --git a/CoreImage/TestImages/BumpDistortion.png b/CoreImage/TestImages/BumpDistortion.png deleted file mode 100644 index d3a26114..00000000 Binary files a/CoreImage/TestImages/BumpDistortion.png and /dev/null differ diff --git a/CoreImage/TestImages/BumpDistortionLinear.png b/CoreImage/TestImages/BumpDistortionLinear.png deleted file mode 100644 index d0f1b5a5..00000000 Binary files a/CoreImage/TestImages/BumpDistortionLinear.png and /dev/null differ diff --git a/CoreImage/TestImages/CheckerboardGenerator.png b/CoreImage/TestImages/CheckerboardGenerator.png deleted file mode 100644 index c4f36931..00000000 Binary files a/CoreImage/TestImages/CheckerboardGenerator.png and /dev/null differ diff --git a/CoreImage/TestImages/CircleSplashDistortion.png b/CoreImage/TestImages/CircleSplashDistortion.png deleted file mode 100644 index 1ef425e7..00000000 Binary files a/CoreImage/TestImages/CircleSplashDistortion.png and /dev/null differ diff --git a/CoreImage/TestImages/CircularScreen.png b/CoreImage/TestImages/CircularScreen.png deleted file mode 100644 index 59b72d7f..00000000 Binary files a/CoreImage/TestImages/CircularScreen.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorBlendMode.png b/CoreImage/TestImages/ColorBlendMode.png deleted file mode 100644 index eb80e312..00000000 Binary files a/CoreImage/TestImages/ColorBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorBurnBlendMode.png b/CoreImage/TestImages/ColorBurnBlendMode.png deleted file mode 100644 index 9ff30def..00000000 Binary files a/CoreImage/TestImages/ColorBurnBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorClamp.png b/CoreImage/TestImages/ColorClamp.png deleted file mode 100644 index 97596bef..00000000 Binary files a/CoreImage/TestImages/ColorClamp.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorControls.png b/CoreImage/TestImages/ColorControls.png deleted file mode 100644 index 31947a92..00000000 Binary files a/CoreImage/TestImages/ColorControls.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorCrossPolynomial.png b/CoreImage/TestImages/ColorCrossPolynomial.png deleted file mode 100644 index 2ae793f2..00000000 Binary files a/CoreImage/TestImages/ColorCrossPolynomial.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorCube.png b/CoreImage/TestImages/ColorCube.png deleted file mode 100644 index f24711e5..00000000 Binary files a/CoreImage/TestImages/ColorCube.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorCubeWithColorSpace.png b/CoreImage/TestImages/ColorCubeWithColorSpace.png deleted file mode 100644 index ddac4609..00000000 Binary files a/CoreImage/TestImages/ColorCubeWithColorSpace.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorDodgeBlendMode.png b/CoreImage/TestImages/ColorDodgeBlendMode.png deleted file mode 100644 index 2a421deb..00000000 Binary files a/CoreImage/TestImages/ColorDodgeBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorInvert.png b/CoreImage/TestImages/ColorInvert.png deleted file mode 100644 index cd60050e..00000000 Binary files a/CoreImage/TestImages/ColorInvert.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorMap.png b/CoreImage/TestImages/ColorMap.png deleted file mode 100644 index c6c0abdd..00000000 Binary files a/CoreImage/TestImages/ColorMap.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorMatrix.png b/CoreImage/TestImages/ColorMatrix.png deleted file mode 100644 index 30f0b471..00000000 Binary files a/CoreImage/TestImages/ColorMatrix.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorMonochrome.png b/CoreImage/TestImages/ColorMonochrome.png deleted file mode 100644 index 80dc536f..00000000 Binary files a/CoreImage/TestImages/ColorMonochrome.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorPolynomial.png b/CoreImage/TestImages/ColorPolynomial.png deleted file mode 100644 index 1ca09ca0..00000000 Binary files a/CoreImage/TestImages/ColorPolynomial.png and /dev/null differ diff --git a/CoreImage/TestImages/ColorPosterize.png b/CoreImage/TestImages/ColorPosterize.png deleted file mode 100644 index a3aa8bc4..00000000 Binary files a/CoreImage/TestImages/ColorPosterize.png and /dev/null differ diff --git a/CoreImage/TestImages/ConstantColorGenerator.png b/CoreImage/TestImages/ConstantColorGenerator.png deleted file mode 100644 index 63b596cd..00000000 Binary files a/CoreImage/TestImages/ConstantColorGenerator.png and /dev/null differ diff --git a/CoreImage/TestImages/Convolution3X3.png b/CoreImage/TestImages/Convolution3X3.png deleted file mode 100644 index a4e291c7..00000000 Binary files a/CoreImage/TestImages/Convolution3X3.png and /dev/null differ diff --git a/CoreImage/TestImages/Convolution5X5.png b/CoreImage/TestImages/Convolution5X5.png deleted file mode 100644 index 7b9710ce..00000000 Binary files a/CoreImage/TestImages/Convolution5X5.png and /dev/null differ diff --git a/CoreImage/TestImages/Convolution9Horizontal.png b/CoreImage/TestImages/Convolution9Horizontal.png deleted file mode 100644 index a0cf593e..00000000 Binary files a/CoreImage/TestImages/Convolution9Horizontal.png and /dev/null differ diff --git a/CoreImage/TestImages/Convolution9Vertical.png b/CoreImage/TestImages/Convolution9Vertical.png deleted file mode 100644 index eadd2fa5..00000000 Binary files a/CoreImage/TestImages/Convolution9Vertical.png and /dev/null differ diff --git a/CoreImage/TestImages/CopyMachineTransition.png b/CoreImage/TestImages/CopyMachineTransition.png deleted file mode 100644 index b1e7de35..00000000 Binary files a/CoreImage/TestImages/CopyMachineTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/Crop.png b/CoreImage/TestImages/Crop.png deleted file mode 100644 index cdce8889..00000000 Binary files a/CoreImage/TestImages/Crop.png and /dev/null differ diff --git a/CoreImage/TestImages/DarkenBlendMode.png b/CoreImage/TestImages/DarkenBlendMode.png deleted file mode 100644 index 0a9f2f8b..00000000 Binary files a/CoreImage/TestImages/DarkenBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/DifferenceBlendMode.png b/CoreImage/TestImages/DifferenceBlendMode.png deleted file mode 100644 index 81c7f5f1..00000000 Binary files a/CoreImage/TestImages/DifferenceBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/DisintegrateWithMaskTransition.png b/CoreImage/TestImages/DisintegrateWithMaskTransition.png deleted file mode 100644 index 32db24d0..00000000 Binary files a/CoreImage/TestImages/DisintegrateWithMaskTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/DissolveTransition.png b/CoreImage/TestImages/DissolveTransition.png deleted file mode 100644 index a83b0457..00000000 Binary files a/CoreImage/TestImages/DissolveTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/DotScreen.png b/CoreImage/TestImages/DotScreen.png deleted file mode 100644 index b224b4c1..00000000 Binary files a/CoreImage/TestImages/DotScreen.png and /dev/null differ diff --git a/CoreImage/TestImages/EightfoldReflectedTile.png b/CoreImage/TestImages/EightfoldReflectedTile.png deleted file mode 100644 index 7cb393ed..00000000 Binary files a/CoreImage/TestImages/EightfoldReflectedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/ExclusionBlendMode.png b/CoreImage/TestImages/ExclusionBlendMode.png deleted file mode 100644 index 51f92a2f..00000000 Binary files a/CoreImage/TestImages/ExclusionBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/ExposureAdjust.png b/CoreImage/TestImages/ExposureAdjust.png deleted file mode 100644 index ffe88ae4..00000000 Binary files a/CoreImage/TestImages/ExposureAdjust.png and /dev/null differ diff --git a/CoreImage/TestImages/FalseColor.png b/CoreImage/TestImages/FalseColor.png deleted file mode 100644 index 7365e25d..00000000 Binary files a/CoreImage/TestImages/FalseColor.png and /dev/null differ diff --git a/CoreImage/TestImages/FlashTransition.png b/CoreImage/TestImages/FlashTransition.png deleted file mode 100644 index c8f2f563..00000000 Binary files a/CoreImage/TestImages/FlashTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/FourfoldReflectedTile.png b/CoreImage/TestImages/FourfoldReflectedTile.png deleted file mode 100644 index 9801db70..00000000 Binary files a/CoreImage/TestImages/FourfoldReflectedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/FourfoldRotatedTile.png b/CoreImage/TestImages/FourfoldRotatedTile.png deleted file mode 100644 index bd4ae2c4..00000000 Binary files a/CoreImage/TestImages/FourfoldRotatedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/FourfoldTranslatedTile.png b/CoreImage/TestImages/FourfoldTranslatedTile.png deleted file mode 100644 index bf6db7b3..00000000 Binary files a/CoreImage/TestImages/FourfoldTranslatedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/GammaAdjust.png b/CoreImage/TestImages/GammaAdjust.png deleted file mode 100644 index d9328f9e..00000000 Binary files a/CoreImage/TestImages/GammaAdjust.png and /dev/null differ diff --git a/CoreImage/TestImages/GaussianBlur.png b/CoreImage/TestImages/GaussianBlur.png deleted file mode 100644 index 7c9a6534..00000000 Binary files a/CoreImage/TestImages/GaussianBlur.png and /dev/null differ diff --git a/CoreImage/TestImages/GaussianGradient.png b/CoreImage/TestImages/GaussianGradient.png deleted file mode 100644 index 4e8cd75d..00000000 Binary files a/CoreImage/TestImages/GaussianGradient.png and /dev/null differ diff --git a/CoreImage/TestImages/GlideReflectedTile.png b/CoreImage/TestImages/GlideReflectedTile.png deleted file mode 100644 index b776f3b3..00000000 Binary files a/CoreImage/TestImages/GlideReflectedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/Gloom.png b/CoreImage/TestImages/Gloom.png deleted file mode 100644 index bfe155fe..00000000 Binary files a/CoreImage/TestImages/Gloom.png and /dev/null differ diff --git a/CoreImage/TestImages/HardLightBlendMode.png b/CoreImage/TestImages/HardLightBlendMode.png deleted file mode 100644 index abce8dcb..00000000 Binary files a/CoreImage/TestImages/HardLightBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/HatchedScreen.png b/CoreImage/TestImages/HatchedScreen.png deleted file mode 100644 index 2003bb34..00000000 Binary files a/CoreImage/TestImages/HatchedScreen.png and /dev/null differ diff --git a/CoreImage/TestImages/HighlightShadowAdjust.png b/CoreImage/TestImages/HighlightShadowAdjust.png deleted file mode 100644 index 4fd9df20..00000000 Binary files a/CoreImage/TestImages/HighlightShadowAdjust.png and /dev/null differ diff --git a/CoreImage/TestImages/HoleDistortion.png b/CoreImage/TestImages/HoleDistortion.png deleted file mode 100644 index 85240162..00000000 Binary files a/CoreImage/TestImages/HoleDistortion.png and /dev/null differ diff --git a/CoreImage/TestImages/HueAdjust.png b/CoreImage/TestImages/HueAdjust.png deleted file mode 100644 index 05f91853..00000000 Binary files a/CoreImage/TestImages/HueAdjust.png and /dev/null differ diff --git a/CoreImage/TestImages/HueBlendMode.png b/CoreImage/TestImages/HueBlendMode.png deleted file mode 100644 index 604be95a..00000000 Binary files a/CoreImage/TestImages/HueBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/LanczosScaleTransform.png b/CoreImage/TestImages/LanczosScaleTransform.png deleted file mode 100644 index cc6f0d14..00000000 Binary files a/CoreImage/TestImages/LanczosScaleTransform.png and /dev/null differ diff --git a/CoreImage/TestImages/LightTunnel.png b/CoreImage/TestImages/LightTunnel.png deleted file mode 100644 index 9821cbfb..00000000 Binary files a/CoreImage/TestImages/LightTunnel.png and /dev/null differ diff --git a/CoreImage/TestImages/LightenBlendMode.png b/CoreImage/TestImages/LightenBlendMode.png deleted file mode 100644 index da2a4703..00000000 Binary files a/CoreImage/TestImages/LightenBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/LineScreen.png b/CoreImage/TestImages/LineScreen.png deleted file mode 100644 index 14879e48..00000000 Binary files a/CoreImage/TestImages/LineScreen.png and /dev/null differ diff --git a/CoreImage/TestImages/LinearGradient.png b/CoreImage/TestImages/LinearGradient.png deleted file mode 100644 index 89959695..00000000 Binary files a/CoreImage/TestImages/LinearGradient.png and /dev/null differ diff --git a/CoreImage/TestImages/LinearToSRGBToneCurve.png b/CoreImage/TestImages/LinearToSRGBToneCurve.png deleted file mode 100644 index 2bee77d1..00000000 Binary files a/CoreImage/TestImages/LinearToSRGBToneCurve.png and /dev/null differ diff --git a/CoreImage/TestImages/LuminosityBlendMode.png b/CoreImage/TestImages/LuminosityBlendMode.png deleted file mode 100644 index f421a35b..00000000 Binary files a/CoreImage/TestImages/LuminosityBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/MaskToAlpha.png b/CoreImage/TestImages/MaskToAlpha.png deleted file mode 100644 index 38a44495..00000000 Binary files a/CoreImage/TestImages/MaskToAlpha.png and /dev/null differ diff --git a/CoreImage/TestImages/MaximumComponent.png b/CoreImage/TestImages/MaximumComponent.png deleted file mode 100644 index fd213547..00000000 Binary files a/CoreImage/TestImages/MaximumComponent.png and /dev/null differ diff --git a/CoreImage/TestImages/MaximumCompositing.png b/CoreImage/TestImages/MaximumCompositing.png deleted file mode 100644 index da2a4703..00000000 Binary files a/CoreImage/TestImages/MaximumCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/MinimumComponent.png b/CoreImage/TestImages/MinimumComponent.png deleted file mode 100644 index f492df40..00000000 Binary files a/CoreImage/TestImages/MinimumComponent.png and /dev/null differ diff --git a/CoreImage/TestImages/MinimumCompositing.png b/CoreImage/TestImages/MinimumCompositing.png deleted file mode 100644 index ef00d405..00000000 Binary files a/CoreImage/TestImages/MinimumCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/ModTransition.png b/CoreImage/TestImages/ModTransition.png deleted file mode 100644 index ff3e276c..00000000 Binary files a/CoreImage/TestImages/ModTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/MultiplyBlendMode.png b/CoreImage/TestImages/MultiplyBlendMode.png deleted file mode 100644 index 2c7d55be..00000000 Binary files a/CoreImage/TestImages/MultiplyBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/MultiplyCompositing.png b/CoreImage/TestImages/MultiplyCompositing.png deleted file mode 100644 index c57e9470..00000000 Binary files a/CoreImage/TestImages/MultiplyCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/OverlayBlendMode.png b/CoreImage/TestImages/OverlayBlendMode.png deleted file mode 100644 index 6d3e1ab6..00000000 Binary files a/CoreImage/TestImages/OverlayBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/PerspectiveTile.png b/CoreImage/TestImages/PerspectiveTile.png deleted file mode 100644 index cfd9f626..00000000 Binary files a/CoreImage/TestImages/PerspectiveTile.png and /dev/null differ diff --git a/CoreImage/TestImages/PerspectiveTransform.png b/CoreImage/TestImages/PerspectiveTransform.png deleted file mode 100644 index e0c0ea18..00000000 Binary files a/CoreImage/TestImages/PerspectiveTransform.png and /dev/null differ diff --git a/CoreImage/TestImages/PerspectiveTransformWithExtent.png b/CoreImage/TestImages/PerspectiveTransformWithExtent.png deleted file mode 100644 index 92532ebb..00000000 Binary files a/CoreImage/TestImages/PerspectiveTransformWithExtent.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectChrome.png b/CoreImage/TestImages/PhotoEffectChrome.png deleted file mode 100644 index d6077408..00000000 Binary files a/CoreImage/TestImages/PhotoEffectChrome.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectFade.png b/CoreImage/TestImages/PhotoEffectFade.png deleted file mode 100644 index d324f027..00000000 Binary files a/CoreImage/TestImages/PhotoEffectFade.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectInstant.png b/CoreImage/TestImages/PhotoEffectInstant.png deleted file mode 100644 index 75a4d417..00000000 Binary files a/CoreImage/TestImages/PhotoEffectInstant.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectMono.png b/CoreImage/TestImages/PhotoEffectMono.png deleted file mode 100644 index 8b4af42c..00000000 Binary files a/CoreImage/TestImages/PhotoEffectMono.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectNoir.png b/CoreImage/TestImages/PhotoEffectNoir.png deleted file mode 100644 index ea1701b8..00000000 Binary files a/CoreImage/TestImages/PhotoEffectNoir.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectProcess.png b/CoreImage/TestImages/PhotoEffectProcess.png deleted file mode 100644 index a012dff8..00000000 Binary files a/CoreImage/TestImages/PhotoEffectProcess.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectTonal.png b/CoreImage/TestImages/PhotoEffectTonal.png deleted file mode 100644 index 6c15cc79..00000000 Binary files a/CoreImage/TestImages/PhotoEffectTonal.png and /dev/null differ diff --git a/CoreImage/TestImages/PhotoEffectTransfer.png b/CoreImage/TestImages/PhotoEffectTransfer.png deleted file mode 100644 index 8d39476c..00000000 Binary files a/CoreImage/TestImages/PhotoEffectTransfer.png and /dev/null differ diff --git a/CoreImage/TestImages/PinchDistortion.png b/CoreImage/TestImages/PinchDistortion.png deleted file mode 100644 index 7e93d2a9..00000000 Binary files a/CoreImage/TestImages/PinchDistortion.png and /dev/null differ diff --git a/CoreImage/TestImages/Pixellate.png b/CoreImage/TestImages/Pixellate.png deleted file mode 100644 index 8de1cdae..00000000 Binary files a/CoreImage/TestImages/Pixellate.png and /dev/null differ diff --git a/CoreImage/TestImages/QRCodeGenerator.png b/CoreImage/TestImages/QRCodeGenerator.png deleted file mode 100644 index 18cd56cb..00000000 Binary files a/CoreImage/TestImages/QRCodeGenerator.png and /dev/null differ diff --git a/CoreImage/TestImages/RadialGradient.png b/CoreImage/TestImages/RadialGradient.png deleted file mode 100644 index b3e4953b..00000000 Binary files a/CoreImage/TestImages/RadialGradient.png and /dev/null differ diff --git a/CoreImage/TestImages/RandomGenerator.png b/CoreImage/TestImages/RandomGenerator.png deleted file mode 100644 index 8f605053..00000000 Binary files a/CoreImage/TestImages/RandomGenerator.png and /dev/null differ diff --git a/CoreImage/TestImages/SRGBToneCurveToLinear.png b/CoreImage/TestImages/SRGBToneCurveToLinear.png deleted file mode 100644 index de16db6a..00000000 Binary files a/CoreImage/TestImages/SRGBToneCurveToLinear.png and /dev/null differ diff --git a/CoreImage/TestImages/SaturationBlendMode.png b/CoreImage/TestImages/SaturationBlendMode.png deleted file mode 100644 index 1334323d..00000000 Binary files a/CoreImage/TestImages/SaturationBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/ScreenBlendMode.png b/CoreImage/TestImages/ScreenBlendMode.png deleted file mode 100644 index bea9fe11..00000000 Binary files a/CoreImage/TestImages/ScreenBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/SepiaTone.png b/CoreImage/TestImages/SepiaTone.png deleted file mode 100644 index 016df501..00000000 Binary files a/CoreImage/TestImages/SepiaTone.png and /dev/null differ diff --git a/CoreImage/TestImages/SharpenLuminance.png b/CoreImage/TestImages/SharpenLuminance.png deleted file mode 100644 index d00f0f75..00000000 Binary files a/CoreImage/TestImages/SharpenLuminance.png and /dev/null differ diff --git a/CoreImage/TestImages/SixfoldReflectedTile.png b/CoreImage/TestImages/SixfoldReflectedTile.png deleted file mode 100644 index ebb712f8..00000000 Binary files a/CoreImage/TestImages/SixfoldReflectedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/SixfoldRotatedTile.png b/CoreImage/TestImages/SixfoldRotatedTile.png deleted file mode 100644 index 41af9462..00000000 Binary files a/CoreImage/TestImages/SixfoldRotatedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/SmoothLinearGradient.png b/CoreImage/TestImages/SmoothLinearGradient.png deleted file mode 100644 index e3830abd..00000000 Binary files a/CoreImage/TestImages/SmoothLinearGradient.png and /dev/null differ diff --git a/CoreImage/TestImages/SoftLightBlendMode.png b/CoreImage/TestImages/SoftLightBlendMode.png deleted file mode 100644 index 3fe61a0a..00000000 Binary files a/CoreImage/TestImages/SoftLightBlendMode.png and /dev/null differ diff --git a/CoreImage/TestImages/SourceAtopCompositing.png b/CoreImage/TestImages/SourceAtopCompositing.png deleted file mode 100644 index ab75e73c..00000000 Binary files a/CoreImage/TestImages/SourceAtopCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/SourceInCompositing.png b/CoreImage/TestImages/SourceInCompositing.png deleted file mode 100644 index 5247aacf..00000000 Binary files a/CoreImage/TestImages/SourceInCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/SourceOutCompositing.png b/CoreImage/TestImages/SourceOutCompositing.png deleted file mode 100644 index 12312f42..00000000 Binary files a/CoreImage/TestImages/SourceOutCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/SourceOverCompositing.png b/CoreImage/TestImages/SourceOverCompositing.png deleted file mode 100644 index ab75e73c..00000000 Binary files a/CoreImage/TestImages/SourceOverCompositing.png and /dev/null differ diff --git a/CoreImage/TestImages/StarShineGenerator.png b/CoreImage/TestImages/StarShineGenerator.png deleted file mode 100644 index 1088e0fd..00000000 Binary files a/CoreImage/TestImages/StarShineGenerator.png and /dev/null differ diff --git a/CoreImage/TestImages/StraightenFilter.png b/CoreImage/TestImages/StraightenFilter.png deleted file mode 100644 index e3cf20aa..00000000 Binary files a/CoreImage/TestImages/StraightenFilter.png and /dev/null differ diff --git a/CoreImage/TestImages/StripesGenerator.png b/CoreImage/TestImages/StripesGenerator.png deleted file mode 100644 index 0f1111c5..00000000 Binary files a/CoreImage/TestImages/StripesGenerator.png and /dev/null differ diff --git a/CoreImage/TestImages/SwipeTransition.png b/CoreImage/TestImages/SwipeTransition.png deleted file mode 100644 index 3aca69ae..00000000 Binary files a/CoreImage/TestImages/SwipeTransition.png and /dev/null differ diff --git a/CoreImage/TestImages/TemperatureAndTint.png b/CoreImage/TestImages/TemperatureAndTint.png deleted file mode 100644 index c5825b0c..00000000 Binary files a/CoreImage/TestImages/TemperatureAndTint.png and /dev/null differ diff --git a/CoreImage/TestImages/ToneCurve.png b/CoreImage/TestImages/ToneCurve.png deleted file mode 100644 index 23ffc3ef..00000000 Binary files a/CoreImage/TestImages/ToneCurve.png and /dev/null differ diff --git a/CoreImage/TestImages/TriangleKaleidoscope.png b/CoreImage/TestImages/TriangleKaleidoscope.png deleted file mode 100644 index 82cc87a0..00000000 Binary files a/CoreImage/TestImages/TriangleKaleidoscope.png and /dev/null differ diff --git a/CoreImage/TestImages/TwelvefoldReflectedTile.png b/CoreImage/TestImages/TwelvefoldReflectedTile.png deleted file mode 100644 index 39da4c1d..00000000 Binary files a/CoreImage/TestImages/TwelvefoldReflectedTile.png and /dev/null differ diff --git a/CoreImage/TestImages/TwirlDistortion.png b/CoreImage/TestImages/TwirlDistortion.png deleted file mode 100644 index 8189fc26..00000000 Binary files a/CoreImage/TestImages/TwirlDistortion.png and /dev/null differ diff --git a/CoreImage/TestImages/UnsharpMask.png b/CoreImage/TestImages/UnsharpMask.png deleted file mode 100644 index 351cd28b..00000000 Binary files a/CoreImage/TestImages/UnsharpMask.png and /dev/null differ diff --git a/CoreImage/TestImages/Vibrance.png b/CoreImage/TestImages/Vibrance.png deleted file mode 100644 index 489a3516..00000000 Binary files a/CoreImage/TestImages/Vibrance.png and /dev/null differ diff --git a/CoreImage/TestImages/Vignette.png b/CoreImage/TestImages/Vignette.png deleted file mode 100644 index c2facb6c..00000000 Binary files a/CoreImage/TestImages/Vignette.png and /dev/null differ diff --git a/CoreImage/TestImages/VignetteEffect.png b/CoreImage/TestImages/VignetteEffect.png deleted file mode 100644 index 3b5aef32..00000000 Binary files a/CoreImage/TestImages/VignetteEffect.png and /dev/null differ diff --git a/CoreImage/TestImages/VortexDistortion.png b/CoreImage/TestImages/VortexDistortion.png deleted file mode 100644 index c40c11a2..00000000 Binary files a/CoreImage/TestImages/VortexDistortion.png and /dev/null differ diff --git a/CoreImage/TestImages/WhitePointAdjust.png b/CoreImage/TestImages/WhitePointAdjust.png deleted file mode 100644 index be6c7ffb..00000000 Binary files a/CoreImage/TestImages/WhitePointAdjust.png and /dev/null differ diff --git a/CoreImage/TestImagesViewController.cs b/CoreImage/TestImagesViewController.cs deleted file mode 100644 index 3d48025e..00000000 --- a/CoreImage/TestImagesViewController.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.Threading.Tasks; -using MonoTouch.UIKit; -using MonoTouch.CoreGraphics; -using System.Drawing; -using System.Collections.Generic; -using MonoTouch.Dialog; -using System.Linq; - -namespace coreimage -{ - class TestImagesViewController : VisitFilterViewController - { - List ResultList { get; set;} - - public TestImagesViewController (FilterHolder [] filterList) : base (filterList) - { - BarButton.Title = "Test"; - } - - protected override async Task VisitFiltersWithAction () - { - ResultList = new List (); - - await base.VisitFiltersWithAction (); - - if (ShouldStop) - return; - - var query = ResultList.Where (l => !l.Pass); - - if (query.Any ()) { - var root = new RootElement ("Failed Tests"); - var section = new Section (); - root.Add (section); - - section.AddAll (query.Select (l => new StringElement (l.FilterName))); - - NavigationItem.BackBarButtonItem = new UIBarButtonItem ("Back", UIBarButtonItemStyle.Bordered, null); - NavigationController.PushViewController (new DialogViewController (root, true), true); - } - else - Title = "All Tests Passed"; - } - - protected override async Task PerformActionOnTestImage (UIImage image, FilterHolder filterHolder) - { - await Task.Factory.StartNew (() => { - var cgImage = image.CGImage; - - // Get the Image data for the current Image - byte[] testRawData = new byte[cgImage.Width * cgImage.Height * 4]; - var testColorSpace = CGColorSpace.CreateDeviceRGB(); - - var testCGContext = new CGBitmapContext(testRawData, cgImage.Width, cgImage.Height, 8, cgImage.BytesPerRow, testColorSpace, CGImageAlphaInfo.PremultipliedLast); - testCGContext.DrawImage(new RectangleF(0, 0, cgImage.Width, cgImage.Height), cgImage); - - // Get the base image - var baseImage = GetTestImage(filterHolder.Name); - - // Get the image data for the base image. - byte[] baseRawData = new byte[baseImage.Width * baseImage.Height * 4]; - var baseColorSpace = CGColorSpace.CreateDeviceRGB(); - - var baseCGContext = new CGBitmapContext(baseRawData, baseImage.Width, baseImage.Height, 8, baseImage.BytesPerRow, baseColorSpace, CGImageAlphaInfo.PremultipliedLast); - baseCGContext.DrawImage(new RectangleF(0, 0, baseImage.Width, baseImage.Height), baseImage); - - if (baseRawData.Length != testRawData.Length ) { - ResultList.Add(new TestResult() { FilterName = filterHolder.Name, Pass = false}); - return; - } - - // Compare each Pixel - for(var i = 0; i < baseRawData.Length; i++) - { - if(testRawData[i] != baseRawData[i]) - { - ResultList.Add(new TestResult() { FilterName = filterHolder.Name, Pass = false}); - return; - } - } - - ResultList.Add(new TestResult() { FilterName = filterHolder.Name, Pass = true}); - }); - } - - CGImage GetTestImage(string imageName) - { - var image = UIImage.FromFile(ImagePath(imageName)); - return image.CGImage; - } - - struct TestResult - { - public bool Pass {get; set;} - public string FilterName {get; set;} - } - } -} - diff --git a/CoreImage/coreimage.csproj b/CoreImage/coreimage.csproj index d5b1e666..1531e3f3 100644 --- a/CoreImage/coreimage.csproj +++ b/CoreImage/coreimage.csproj @@ -77,8 +77,6 @@ - - @@ -91,86 +89,8 @@ PreserveNewest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -193,47 +113,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -