|Re: [january-dev] January usage on Android?|
We don’t have anything to handle byte buffers directly. You would need to copy out the bytes to an array and then create a CompoundByteDataset (shape = [rows, columns], elements per item = 4) from that.
If you want to wrap a ByteBuffer as an IDataset to handle the slicing, then I could help you with the indexing calculations.
Hi January team,
For an Android app we need to do some "simple" image processing to manipulate the camera video stream, which is really a sequence of RGBA frames.
It appears that the Android "virtual display ImageReader" offers the video stream as a bytebuffer on which a kind of "shape" can be defined in a similar way as January represents its DataSets if I remember correctly.
One particular case is where certain mobile devices appear to pass more "pixels" than the actual camera resolution.
I.e. they add a black area to the right in the camera image for some unimaginable reason, so we want to remove that.
I think we could use January slicing for that.
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Back to the top