Android摄像头抓取图像的格式
2015-11-18 09:59
435 查看
android.hardware.Camera.PreviewCallback
/** * Callback interface used to deliver copies of preview frames as * they are displayed. * * @see #setPreviewCallback(Camera.PreviewCallback) * @see #setOneShotPreviewCallback(Camera.PreviewCallback) * @see #setPreviewCallbackWithBuffer(Camera.PreviewCallback) * @see #startPreview() */ public interface PreviewCallback { /** * Called as preview frames are displayed. This callback is invoked * on the event thread {@link #open(int)} was called from. * * @param data the contents of the preview frame in the format defined * by {@link android.graphics.ImageFormat}, which can be queried * with {@link android.hardware.Camera.Parameters#getPreviewFormat()}. * If {@link android.hardware.Camera.Parameters#setPreviewFormat(int)} * is never called, the default will be the YCbCr_420_SP * (NV21) format. * @param camera the Camera service object. */ void onPreviewFrame(byte[] data, Camera camera); };
相关文章推荐
- Android中ImageView的图片宽度设置
- Android 自定义下拉刷新
- android 之 SharedPreferences 保存对象数据
- 安卓开发之Intent
- android接入即时IM(接入亲加通信云)
- android studio学习(一)
- android多媒体编程--复制图片
- Android应用程序与SurfaceFlinger服务的连接过程分析
- android游戏开发初学之SurfaceView绘制图片
- Android开发学习笔记之通过API接口将LaTex数学函数表达式转化为图片形式
- Android4.4深入浅出之SurfaceFlinger总体结构
- Android左右图片切换(可自动)
- Android 4.4(KitKat)中的设计模式-Graphics子系统
- Android自定义控件:上拉刷新下拉加载的滑动控件
- android:gravity 与 android:layout_gravity 的区别
- android studio 手动更新
- 自定义View步骤
- 在android studio上使用小米真机调试
- android多媒体编程--加载大图片
- 关于android使用Xutil保存cookie