cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
9k stars 2.27k forks source link

change access control modifier in ***Filter class #508

Open Lojincen opened 4 years ago

Lojincen commented 4 years ago

private property in ***Filter class become public

What is the motivation?

I want overrid setter method.But property is private.like: in super class: private float temperature; public void setTemperature(final float temperature) { this.temperature = temperature; setFloat(temperatureLocation, this.temperature < 5000 ? (float) (0.0004 (this.temperature - 5000.0)) : (float) (0.00006 (this.temperature - 5000.0))); } I can not use private property in subclass

Lojincen commented 4 years ago

One is temperature 0.0004, The other is temperature 0.00006. That's why yellow is so light