![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Camera开发
路过独木桥!!
本人从事6年的android app开发和framework开发 从事过rk 展锐 MTK等平台os定制开发
展开
-
Android 10 Camera2打印摄像头支持的预览size
打印摄像头支持的预览size private int getCameraOrientation() { if (cameraManager != null) { try { CameraManager cameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE); CameraCharacteristics cameraCharacteristics = cameraM原创 2022-04-16 17:13:08 · 1392 阅读 · 0 评论 -
Camera YUV数据如何保存到本地
Camera YUV数据如何保存到本地 public void writeYuvToFile(String path, byte[] data) { FileOutputStream out = null; try { File file = new File(path); File parent = file.getParentFile(); if (parent != null && !parent.exists()) p原创 2021-11-17 16:46:57 · 466 阅读 · 0 评论 -
Camera YUV数据转换Jpeg和Bitmap图片格式并保存到本地
Camera YUV数据转换Jpeg图片格式并保存到本地 private void saveYuv2Jpeg(String path, byte[] data) { YuvImage yuvImage = new YuvImage(data, ImageFormat.NV21, mWidth, mHeight, null); ByteArrayOutputStream bos = new ByteArrayOutputStream(data.length); boolean resu原创 2021-11-17 16:37:18 · 872 阅读 · 0 评论