mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-06-30 05:12:45 +08:00
fix format
This commit is contained in:
parent
1a474cdd8c
commit
1264e01f6e
@ -38,7 +38,7 @@ public class RSBlur {
|
|||||||
rs = RenderScript.create(context);
|
rs = RenderScript.create(context);
|
||||||
rs.setMessageHandler(new RenderScript.RSMessageHandler());
|
rs.setMessageHandler(new RenderScript.RSMessageHandler());
|
||||||
input = Allocation.createFromBitmap(rs, bitmap, Allocation.MipmapControl.MIPMAP_NONE,
|
input = Allocation.createFromBitmap(rs, bitmap, Allocation.MipmapControl.MIPMAP_NONE,
|
||||||
Allocation.USAGE_SCRIPT);
|
Allocation.USAGE_SCRIPT);
|
||||||
output = Allocation.createTyped(rs, input.getType());
|
output = Allocation.createTyped(rs, input.getType());
|
||||||
blur = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
|
blur = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
|
||||||
|
|
||||||
@ -51,13 +51,13 @@ public class RSBlur {
|
|||||||
rs.destroy();
|
rs.destroy();
|
||||||
}
|
}
|
||||||
if (input != null) {
|
if (input != null) {
|
||||||
input.destroy();
|
input.destroy();
|
||||||
}
|
}
|
||||||
if (output != null) {
|
if (output != null) {
|
||||||
output.destroy();
|
output.destroy();
|
||||||
}
|
}
|
||||||
if (blur != null) {
|
if (blur != null) {
|
||||||
blur.destroy();
|
blur.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user