Epson BT-2000 Developers Guide - Page 74
onPreviewFrame
View all Epson BT-2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 74 highlights
6.7.12. onPreviewFrame Function Use the standard Android API. Describe processing content when acquiring image data. Format void onPreviewFrame ( byte[] data Camera camera ); Parameter Model name byte[] data Camera camera in/out Explanation in Image data acquired from a camera. The default is NV21 format. in Camera service object. Return value None. Usage procedure // 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 Developer's Guide (Rev.1.0) 70