Closed GoogleCodeExporter closed 8 years ago
Android does not seem to give access to the internal buffer of Bitmap objects.
I am guessing that, similarly to Java's BufferedImage, some implementations may
store data in VRAM, which may not always map nicely to a direct Buffer. It
seems the most efficient, and safe, way requires at least one copy:
Bitmap.copyPixelsToBuffer(IplImage.getByteBuffer())
byte[] objects also do not map nicely to direct Buffer, and you may copy their
content this way:
IplImage.getByteBuffer().put(byte[])
And BTW, this is not an issue with JavaCV, so please post your questions on the
mailing list next time, thank you.
Original comment by samuel.a...@gmail.com
on 15 Apr 2011 at 3:58
Original issue reported on code.google.com by
charming...@naver.com
on 14 Apr 2011 at 8:26