From 56e1d67a2719c0143ebc80c893f63c075f73dbe6 Mon Sep 17 00:00:00 2001 From: iMJ007 Date: Thu, 24 Sep 2020 19:53:27 +0530 Subject: [PATCH] - Added getter methods to many filters to get their intensity values. --- .../filter/GPUImageBrightnessFilter.java | 4 ++++ .../filter/GPUImageColorMatrixFilter.java | 4 ++++ .../gpuimage/filter/GPUImageContrastFilter.java | 4 ++++ .../gpuimage/filter/GPUImageKuwaharaFilter.java | 4 ++++ .../gpuimage/filter/GPUImageLookupFilter.java | 4 ++++ .../filter/GPUImagePixelationFilter.java | 4 ++++ .../filter/GPUImageSaturationFilter.java | 4 ++++ .../gpuimage/filter/GPUImageSharpenFilter.java | 4 ++++ .../gpuimage/filter/GPUImageVibranceFilter.java | 4 ++++ .../gpuimage/filter/GPUImageVignetteFilter.java | 16 ++++++++++++++++ .../gpuimage/filter/GPUImageZoomBlurFilter.java | 4 ++++ 11 files changed, 56 insertions(+) diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageBrightnessFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageBrightnessFilter.java index fe8f1028f..fa3bb5c37 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageBrightnessFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageBrightnessFilter.java @@ -63,4 +63,8 @@ public void setBrightness(final float brightness) { this.brightness = brightness; setFloat(brightnessLocation, this.brightness); } + + public float getBrightness() { + return brightness; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageColorMatrixFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageColorMatrixFilter.java index a3e8ddd4e..b1cb6a468 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageColorMatrixFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageColorMatrixFilter.java @@ -81,4 +81,8 @@ public void setColorMatrix(final float[] colorMatrix) { this.colorMatrix = colorMatrix; setUniformMatrix4f(colorMatrixLocation, colorMatrix); } + + public float getIntensity() { + return intensity; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageContrastFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageContrastFilter.java index bd890f73f..0acf3059a 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageContrastFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageContrastFilter.java @@ -65,4 +65,8 @@ public void setContrast(final float contrast) { this.contrast = contrast; setFloat(contrastLocation, this.contrast); } + + public float getContrast() { + return contrast; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageKuwaharaFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageKuwaharaFilter.java index f047e61ab..e74e1870b 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageKuwaharaFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageKuwaharaFilter.java @@ -148,4 +148,8 @@ public void setRadius(final int radius) { this.radius = radius; setInteger(radiusLocation, radius); } + + public int getRadius() { + return radius; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageLookupFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageLookupFilter.java index df56675d2..061c78a7b 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageLookupFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageLookupFilter.java @@ -85,4 +85,8 @@ public void setIntensity(final float intensity) { this.intensity = intensity; setFloat(intensityLocation, this.intensity); } + + public float getIntensity() { + return intensity; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImagePixelationFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImagePixelationFilter.java index 0e061bfdd..9ead717f2 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImagePixelationFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImagePixelationFilter.java @@ -77,4 +77,8 @@ public void setPixel(final float pixel) { this.pixel = pixel; setFloat(pixelLocation, this.pixel); } + + public float getPixel() { + return pixel; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSaturationFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSaturationFilter.java index dd1f59ce0..65a4aad07 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSaturationFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSaturationFilter.java @@ -69,4 +69,8 @@ public void setSaturation(final float saturation) { this.saturation = saturation; setFloat(saturationLocation, this.saturation); } + + public float getSaturation() { + return saturation; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSharpenFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSharpenFilter.java index c0cf6820d..a0a774862 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSharpenFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageSharpenFilter.java @@ -122,4 +122,8 @@ public void setSharpness(final float sharpness) { this.sharpness = sharpness; setFloat(sharpnessLocation, this.sharpness); } + + public float getSharpness() { + return sharpness; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVibranceFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVibranceFilter.java index 13291234a..a85f46882 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVibranceFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVibranceFilter.java @@ -48,5 +48,9 @@ public void setVibrance(final float vibrance) { setFloat(vibranceLocation, vibrance); } } + + public float getVibrance() { + return vibrance; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVignetteFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVignetteFilter.java index 81b44b111..6b5d704ff 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVignetteFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageVignetteFilter.java @@ -108,4 +108,20 @@ public void setVignetteEnd(final float vignetteEnd) { this.vignetteEnd = vignetteEnd; setFloat(vignetteEndLocation, this.vignetteEnd); } + + public PointF getVignetteCenter() { + return vignetteCenter; + } + + public float[] getVignetteColor() { + return vignetteColor; + } + + public float getVignetteStart() { + return vignetteStart; + } + + public float getVignetteEnd() { + return vignetteEnd; + } } diff --git a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageZoomBlurFilter.java b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageZoomBlurFilter.java index 14f5a9556..af0ce5cae 100644 --- a/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageZoomBlurFilter.java +++ b/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageZoomBlurFilter.java @@ -68,4 +68,8 @@ public void setBlurSize(final float blurSize) { this.blurSize = blurSize; setFloat(blurSizeLocation, blurSize); } + + public float getBlurSize() { + return blurSize; + } }