10 private long cPtr = 0;
17 protected void setData(
long cPtr) {
22 width =
MaxstARJNI.TrackedImage_getWidth(cPtr);
23 height =
MaxstARJNI.TrackedImage_getHeight(cPtr);
24 int tempLength =
MaxstARJNI.TrackedImage_getLength(cPtr);
26 if (data == null || tempLength != length) {
27 data =
new byte[tempLength];
31 int format =
MaxstARJNI.TrackedImage_getFormat(cPtr);
33 if (width == 0 || height == 0) {
38 MaxstARJNI.TrackedImage_getData(cPtr, data, length);