简体   繁体   中英

Android 2.1 Native Lock Bitmap Pixels

I'm running a basic native function that modifies the pixels of a bitmap. To do this I am getting the pixels via the Bitmap_lockPixels() function. However, this isn't available for versions lower than 2.2.

How do you recommend I replace this function to retain as much speed as possible?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM