Android Camera中我遇到的巨坑
来源:互联网 发布:淘宝饰品店店铺介绍 编辑:程序博客网 时间:2024/04/30 20:20
addCallbackBufferAdded in API level 8void addCallbackBuffer (byte[] callbackBuffer)Adds a pre-allocated buffer to the preview callback buffer queue. Applications can add one or more buffers to the queue. When a preview frame arrives and there is still at least one available buffer, the buffer will be used and removed from the queue. Then preview callback is invoked with the buffer. If a frame arrives and there is no buffer left, the frame is discarded. Applications should add buffers back when they finish processing the data in them.
做的时候没有仔细看每个方法的说明,由于我做了输出数据的实时旋转,然后加了一些保护,在剧烈晃动和旋转时可能导致没有数据输出了,找了不少原因,才发现这句话中最关键的一句。
If a frame arrives and there is no buffer left, the frame is discarded.
中间所有做保护中断的地方,以及数据处理后必须还要调用
addCallbackBuffer
0 0
- Android Camera中我遇到的巨坑
- Android Camera遇到的坑
- Camera中MediaStore.EXTRA_OUTPUT遇到的问题
- Android 笔记 camera.takePicture(),使用flashMode,改变focusMode,continuous-picture中遇到的问题
- Android中Camera的学习
- 自定义camera遇到过的坑
- Android中遇到的坑。
- 我在Android开发中遇到的一些问题
- 我在Android开发中遇到的问题
- Android调用Camera API拍照遇到的问题和解决方法
- camera开发中遇到的一些问题, 备忘
- 关于camera CTS调试中遇到的问题
- Camera应用在调试中遇到的一些问题
- android 我遇到的问题
- 我遇到的坑
- Android中Camera的Wake Lock
- Android中Camera的调用流程
- Android中定制自己的Camera
- 【项目中】关于android:windowNoTitle不起作用的解决办法
- Android 手机获取手机号实现方法
- Java泛型
- 让我怎能过大年
- Linux/Windows ssh公私钥访问
- Android Camera中我遇到的巨坑
- iOS-UIAlertController弹出延迟(UIAlertController弹出缓慢,tableViewCell点击时背景颜色改变)
- linux shell中利用awk获取关键字符的用法,实例说明。
- Javase笔记之集合类
- java食品管理系统(ArrayList的使用)
- iOS开发-读取“健康”中的步数和步行+跑步距离
- 多线程买票
- LeetCode Shell
- scp命令