Inside onXyzIjAvailable(TangoXyzIjData xyzIj), I am able to access xyz but not ij data. Why is it always null ? or is it just matter of time before the same is exposed to java layer ?
if (xyzIj.ijParcelFileDescriptor != null) {
try {
final byte[] ijBuffer
= new byte[xyzIj.ijRows * xyzIj.ijCols * 4];
FileInputStream ijFileStream
= new FileInputStream(xyzIj.ijParcelFileDescriptor.getFileDescriptor());
ijFileStream.read(ijBuffer);
ijFileStream.close();
} catch (IOException io) {
io.printStackTrace();
}
}