Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android相机应用基本功能实现 | 影像技术栈 #7

Open
GeoffBao opened this issue Jul 10, 2022 · 2 comments
Open

Android相机应用基本功能实现 | 影像技术栈 #7

GeoffBao opened this issue Jul 10, 2022 · 2 comments

Comments

@GeoffBao
Copy link
Owner

https://camerastacker.com/2022/061832563.html

前言文章传送门:

Android:调用系统相机实现拍照+裁切(兼容7.0以上系统)
Android: Camera相机开发详解(上) —— 知识储备
Android: Camera相机开发详解(中) ——实现预览、拍照、保存照片等功能
A

@GeoffBao
Copy link
Owner Author

因为打开相机和创建会话等都是耗时操作,所以我们启动一个HandlerThread在子线程中来处理
有两个关于尺寸的变量,一个是预览尺寸(在屏幕上显示),一个是保存图片的尺寸(保存到sd卡中图片的尺寸)
有两个方向,一个是手机方向(如果是竖屏应用的话此方向为0),另一个是摄像头方向(一般来说,前置摄像头方向为270,后置摄像头方向为90)

@GeoffBao
Copy link
Owner Author

teat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant