-
-
Notifications
You must be signed in to change notification settings - Fork 155
Experiment with image operations in Kotlin #3813
Copy link
Copy link
Open
Labels
Priority: LowLow priority, I may not have time to implement these or are likely years away.Low priority, I may not have time to implement these or are likely years away.Size: MediumMedium size, requires some design, planning, and a moderate amount of code.Medium size, requires some design, planning, and a moderate amount of code.Type: SpikeResearch/investigation only - no code changes.Research/investigation only - no code changes.
Description
Metadata
Metadata
Assignees
Labels
Priority: LowLow priority, I may not have time to implement these or are likely years away.Low priority, I may not have time to implement these or are likely years away.Size: MediumMedium size, requires some design, planning, and a moderate amount of code.Medium size, requires some design, planning, and a moderate amount of code.Type: SpikeResearch/investigation only - no code changes.Research/investigation only - no code changes.
Perform image operations in Kotlin against the pixels array rather than sending it to native via JNI. Multi-threading can be used in Kotlin just like the Renderscript replacement toolkit does in C++. The map bounds detection code was written in Kotlin and it performed well for that use case. Previous attempts that were slow used the bitmap.get/set pattern which is slow because each read/write needs to pass through the JNI.
This would be easier to maintain and reduce the APK size.