Rotating a bitmap using JNI & NDK

后端 未结 1 1121
南旧
南旧 2020-11-27 18:19

Background:

I\'ve decided that since bitmaps take a lot of memory which can cause out-of-memory errors easily, I will put the hard, memory consuming work on C/C++

相关标签:
1条回答
  • 2020-11-27 18:54

    Since you're using ARGB_8888 format every pixel is an uint32_t not uint16_t. Try changing your rotated Bitmap creation to use uint32_t for source and destination arrays and it should work better.

    0 讨论(0)
提交回复
热议问题