MOVERIO Pro Developer's Guide (Rev.1.4)
95
6.8.16.
addCallbackBuffer
Function
The API for registering the buffer used in setPreviewCallbackWithBuffer.
Format
Parameter
Model
name
in/out Explanation
byte[]
callbackBuffer
in
Buffer to be registered
Return value
None.
Usage procedure
void setPreviewCallbackWithBuffer (
byte[] callbackBuffer
);
// App developer applies processing when acquiring image data
private Camera.PreviewCallback mPreviewCB = new
Camera.PreviewCallback() {
@Override
public void onPreviewFrame(byte
data[], Camera camera) {
Log.d(TAG, "Save preview image");
synchronized (lockObject) {
savePreviewData(data);
}
// Register the buffer to be used
camera.addCallbackBuffer(mPreviewData);
}
};
// Register the buffer to be used
camera.addCallbackBuffer(mPreviewData);
//Register the callback method at the optimal time
camera.setPreviewCallbackWithBuffer(mPreviewCB);
Содержание Moverio Pro BT-2000
Страница 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Страница 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Страница 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Страница 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Страница 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Страница 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Страница 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Страница 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Страница 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Страница 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Страница 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Страница 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...