public interface OnFrameCallBack
Modifier and Type | Method and Description |
---|---|
Camera.Size |
onChoosePreviewSize(java.util.List<Camera.Size> supportedPreviewSizes,
Camera.Size preferredPreviewSizeForVideo)
选择预览分辨率的回调
|
void |
onFrameBack(byte[] bytes,
int width,
int height,
Camera.CameraInfo info)
采集帧回调,每采集一帧会通过该接口返回帧数据
|
void |
openFailed()
摄像头开启失败
|
void onFrameBack(byte[] bytes, int width, int height, Camera.CameraInfo info)
bytes
- 图像帧数据width
- 图像帧宽度height
- 图像帧高度info
- 相机参数信息Camera.Size onChoosePreviewSize(java.util.List<Camera.Size> supportedPreviewSizes, Camera.Size preferredPreviewSizeForVideo)
supportedPreviewSizes
- 相机支持的预览分辨率列表preferredPreviewSizeForVideo
- 相机推荐的预览分辨率void openFailed()