¡@

Home 

2014/10/16 ¤W¤È 08:27:35

android Programming Glossary: wheretoput

Rotating a bitmap using JNI & NDK

http://stackoverflow.com/questions/14398670/rotating-a-bitmap-using-jni-ndk

NULL uint32_t newBitmapPixels uint32_t bitmapPixels int whereToPut 0 for int x info.width 1 x 0 x for int y 0 y info.height y .. uint32_t pixel tempPixels info.width y x newBitmapPixels whereToPut pixel AndroidBitmap_unlockPixels env newBitmap freeing the native..

JNI bitmap operations , for helping to avoid OOM when using large images [closed]

http://stackoverflow.com/questions/18250951/jni-bitmap-operations-for-helping-to-avoid-oom-when-using-large-images

whereToGet previousData left top oldWidth uint32_t whereToPut newBitmapPixels for int y top y bottom y memcpy whereToPut whereToGet.. whereToPut newBitmapPixels for int y top y bottom y memcpy whereToPut whereToGet sizeof uint32_t newWidth whereToGet oldWidth whereToPut.. whereToGet sizeof uint32_t newWidth whereToGet oldWidth whereToPut newWidth done copying so replace old data with new one delete..

Rotating a bitmap using JNI & NDK

http://stackoverflow.com/questions/14398670/rotating-a-bitmap-using-jni-ndk

0 LOGE AndroidBitmap_lockPixels failed error d ret return NULL uint32_t newBitmapPixels uint32_t bitmapPixels int whereToPut 0 for int x info.width 1 x 0 x for int y 0 y info.height y uint32_t pixel tempPixels info.width y x newBitmapPixels whereToPut.. 0 for int x info.width 1 x 0 x for int y 0 y info.height y uint32_t pixel tempPixels info.width y x newBitmapPixels whereToPut pixel AndroidBitmap_unlockPixels env newBitmap freeing the native memory used to store the pixels delete tempPixels return..

JNI bitmap operations , for helping to avoid OOM when using large images [closed]

http://stackoverflow.com/questions/18250951/jni-bitmap-operations-for-helping-to-avoid-oom-when-using-large-images

uint32_t newBitmapPixels new uint32_t newWidth newHeight uint32_t whereToGet previousData left top oldWidth uint32_t whereToPut newBitmapPixels for int y top y bottom y memcpy whereToPut whereToGet sizeof uint32_t newWidth whereToGet oldWidth whereToPut.. uint32_t whereToGet previousData left top oldWidth uint32_t whereToPut newBitmapPixels for int y top y bottom y memcpy whereToPut whereToGet sizeof uint32_t newWidth whereToGet oldWidth whereToPut newWidth done copying so replace old data with new one.. newBitmapPixels for int y top y bottom y memcpy whereToPut whereToGet sizeof uint32_t newWidth whereToGet oldWidth whereToPut newWidth done copying so replace old data with new one delete previousData jniBitmap _storedBitmapPixels newBitmapPixels..