BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.21k stars 4.61k forks source link

Crosshatch unselectively filling blank areas on iOS11 #2552

Open Cloov opened 6 years ago

Cloov commented 6 years ago

Hi,

On iOS11 (or on iPhone 6, I'm not sure which) the crosshatch filter appears to fill the entire image, but on my older testing devices on iOS 10 it doesn't (and I believe this is how the filter should look, only affecting the areas of the image with content that isn't pure white pixels, though I may be wrong).

Does anyone know why this might be happening

preios11 ios11

Cloov commented 6 years ago

I tracked this down, and I've created a custom crosshatch filter for my own use that checks for luminance < 0.99 instead of luminance < 1.0.

On my iPhone 5C running iOS 10.3.3, this always worked fine, and on all my other devices (usually newer, and on iOS 11) it doesn't - it fills the whole image. So it's as though the reported or rounded luminance differs somewhere.