public interface OnFrameCallBack
| Modifier and Type | Method and Description |
|---|---|
android.hardware.Camera.Size |
onChoosePreviewSize(java.util.List<android.hardware.Camera.Size> supportedPreviewSizes,
android.hardware.Camera.Size preferredPreviewSizeForVideo)
The callback that outputs the selected preview resolution.
|
void |
onFrameBack(byte[] bytes,
int width,
int height,
android.hardware.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,
android.hardware.Camera.CameraInfo info)
bytes - The frame data size.width - The frame width.height - The frame height.info - The camera information.android.hardware.Camera.Size onChoosePreviewSize(java.util.List<android.hardware.Camera.Size> supportedPreviewSizes,
android.hardware.Camera.Size preferredPreviewSizeForVideo)
supportedPreviewSizes - The list of preview resolutions supported by camera.preferredPreviewSizeForVideo - The recommended preview resolution.void openFailed()