Accessing image data from phone.

Molando

Member
Licensed User
Longtime User
Hello,

I have a need to process the raw (not converted into a format) data from the phones camera.

The key here is to be able to get to the raw image without lots of time taken with it being copied from memory to buffers, to arrays etc before I can access it.

Also have the ability to access each byte quickly, so preferably with a simple pointer, or a picture[calculated offset].

From what I have read so far, the lure of the ease of basic4Android is very appealing.

So my questions are:

1) Can B4A give me direct(ish) access to the image data? If not, how can I get to it. A memory stream is far preferred to it being placed into a structure or an array.

2) Does B4A support the NDK? I know next to nothing about the NDK, but it seems to be very useful for heavy computations.

Regards,
M
 

Molando

Member
Licensed User
Longtime User
Perfect.
Just spotted the onPreviewFrame in ACL.
I can probably just do my work in there.

Thank you for your quick reply.

Regards,
M.
 
Upvote 0
Top