Skip to content

Commit 6d27e6e

Browse files
committed
update
1 parent 74b8965 commit 6d27e6e

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
## 捕捉会话
2+
3+
- 捕捉会话: AVCaptureSession
4+
- 捕捉设备: AVCaptureDevice
5+
- 捕捉设备输入: AVCaptureDeviceInput
6+
- 捕捉设备输出: AVCaptureOutput
7+
- AVCaptureStillImageOutput (静态图片)
8+
- AVCaptureMovieFileOutput (视频输出)
9+
10+
- 捕捉连接类: AVCaptureConnection
11+
- 它建立输入和输出 的连接
12+
13+
- 捕捉预览(拍了些什么东西看看): AVCaptureVideoPreviewLayer
14+
15+
16+
## AVCaptureSession 插座板
17+
18+
1.**输入****输出**的连接工作
19+
20+
21+
## 捕捉设备:
22+
23+
摄像头, 麦克风, 这些都是捕捉设备
24+
25+
方法
26+
- 光圈
27+
- 聚焦
28+
- 闪光灯
29+
30+
## 捕捉设备输入
31+
32+
- 音频输入
33+
- 视频输入
34+
35+
36+
## 捕捉设备输出: ---抽象类
37+
38+
有可能输出声音
39+
有可能输出视频
40+
41+
42+
## 捕捉连接类: AVCaptureConnection
43+
它建立输入和输出 的连接
44+
45+
拍摄视频的时候,用一个类来实时显示摄像头的拍摄到的内容,
46+
47+
48+
## captureDevicePointOfInterestForPoint 点击屏幕聚焦
49+
50+
你点击屏幕,说要聚焦到那个地方..
51+
52+
获取屏幕坐标系的CGPoint数据, 返回转换得到摄像头设备坐标系的CGPoint数据
53+
54+
## pointForCaptureDevicePointOfInterest
55+
和上面的正好相反
56+
获取摄像头坐标系的CGPoint数据, 返回转换得到的屏幕坐标系CGPoint数据
57+
58+
59+
60+
61+
## 摄像头是一个公共设备, 它不隶属某一个APP, 有可能别的APP也在使用, 添加之前要看看能不能添加
62+
63+
```
64+
65+
if ([self.captureSession canAddInput:videoInput]) {
66+
67+
[self.captureSession addInput:videoInput];
68+
69+
self.activeVideoInput = videoInput;
70+
71+
}
72+
73+
```
74+
75+
76+
![2022AVFoundation001](images/2022AVFoundation001.png)
77+
78+
79+
80+
## AVCaptureDevice 的 isFocusPointOfInterestSupported
81+
82+
看看是否能支持聚焦
83+
84+
- iPhone6的前置摄像头是不支持聚焦的.
85+
453 KB
Loading

0 commit comments

Comments
 (0)