MOVERIO Pro Developer's Guide (Rev.1.4)
89
6.8.12.
onPreviewFrame
Function
Use the standard Android API.
Describe processing content when acquiring image data.
Format
Parameter
Model
name in/out Explanation
byte[] data
in
Image data acquired from a camera. The default is
NV21 format.
Camera
camera
in
Camera service object.
Return value
None.
Usage procedure
void onPreviewFrame (
byte[] data
Camera camera
);
// 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 callback method at the optimal time
camera.setPreviewCallback(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 ...