Access to byte array
Brought to you by:
jtnimoy
I'm using JMyron with Eclipse for an SWT based
application.
SWT requires images to be put into the BGRA byte-array
format. So, I have written a function in Java that
converts the ARGB int array format to a BGRA
byte-array. Performance is ok, but not great.
While looking through the JNI source for webCamXtra, I
noticed that the underlying C++ code is providing a
BGRA char array, which is then converted by the JNI
code to an ARGB int array ... and then my java code
converts it back to a BGRA byte array. :)
So, I would like to know if another JNI function could
be added (maybe byteImage), which would return the
image in same format as is returned by the c++ image.