public interface OnFrameCallBack
| Modifier and Type | Method and Description |
|---|---|
Camera.Size |
onChoosePreviewSize(java.util.List<Camera.Size> supportedPreviewSizes,
Camera.Size preferredPreviewSizeForVideo)
The callback that outputs the selected preview resolution.
|
void |
onFrameBack(byte[] bytes,
int width,
int height,
Camera.CameraInfo info)
The callback that outputs the frame data captured by camera.
|
void |
openFailed()
The callback when an error occurred while turning on the camera.
|
void onFrameBack(byte[] bytes,
int width,
int height,
Camera.CameraInfo info)
bytes - The frame data size.width - The frame width.height - The frame height.info - The camera information.Camera.Size onChoosePreviewSize(java.util.List<Camera.Size> supportedPreviewSizes,
Camera.Size preferredPreviewSizeForVideo)
supportedPreviewSizes - The list of preview resolutions supported by camera.preferredPreviewSizeForVideo - The recommended preview resolution.void openFailed()