Android 2.1

I run a basic native function that changes the pixels of a bitmap. To do this, I get pixels through the Bitmap_lockPixels () function. However, this is not available for versions below 2.2.

How do you recommend replacing this feature in order to maintain the highest possible speed?

+3
source share
1 answer

you can find an almost similar solution here. This function uses a ReentrantLock object and tries to obtain a lock. https://code.ros.org/trac/opencv/browser/trunk/opencv/android/src/com/opencv/camera/NativeProcessor.java?rev=3652

+4
source

Source: https://habr.com/ru/post/1784653/


All Articles