We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1d598f commit 289799bCopy full SHA for 289799b
app/src/main/java/co/stonephone/stonecamera/plugins/Portrait.kt
@@ -178,7 +178,7 @@ class PortraitModePlugin : IPlugin {
178
val dv = IntArray(256 * div)
179
i = 0
180
while (i < 256 * div) {
181
- dv[i] = (i / div)
+ dv[i] = i / div
182
i++
183
}
184
@@ -210,8 +210,8 @@ class PortraitModePlugin : IPlugin {
210
p1 = pix[yw + vmin[x]]
211
p2 = pix[yw + vmax[x]]
212
213
- rsum += ((p1 and 0xff0000) - (p2 and 0xff0000)) shr 16
214
- gsum += ((p1 and 0x00ff00) - (p2 and 0x00ff00)) shr 8
+ rsum += (p1 and 0xff0000) - (p2 and 0xff0000) shr 16
+ gsum += (p1 and 0x00ff00) - (p2 and 0x00ff00) shr 8
215
bsum += (p1 and 0x0000ff) - (p2 and 0x0000ff)
216
yi++
217
x++
0 commit comments