AgoraCameraCaptureOutputPreference 常量
Declared in | AgoraEnumerates.h |
---|
AgoraCameraCaptureOutputPreference
摄像头采集偏好
Definition
typedef NS_ENUM(NSInteger, AgoraCameraCaptureOutputPreference ) {
AgoraCameraCaptureOutputPreferenceAuto = 0,
AgoraCameraCaptureOutputPreferencePerformance = 1,
AgoraCameraCaptureOutputPreferencePreview = 2,
AgoraCameraCaptureOutputPreferenceUnkown = 3,
};
Constants
AgoraCameraCaptureOutputPreferenceAuto
-
(默认)自动调整采集参数。SDK 根据实际的采集设备性能及网络情况,选择合适的摄像头输出参数,在设备性能及视频预览质量之间,维持平衡。
Declared In
AgoraEnumerates.h
. AgoraCameraCaptureOutputPreferencePerformance
-
优先保证设备性能。SDK 根据用户在 setVideoEncoderConfiguration 中设置编码器的分辨率和帧率,选择最接近的摄像头输出参数,从而保证设备性能。在这种情况下,预览质量接近于编码器的输出质量。
Declared In
AgoraEnumerates.h
. AgoraCameraCaptureOutputPreferencePreview
-
优先保证视频预览质量。SDK 选择较高的摄像头输出参数,从而提高预览视频的质量。在这种情况下,会消耗更多的 CPU 及内存做视频前处理。
Declared In
AgoraEnumerates.h
. AgoraCameraCaptureOutputPreferenceUnkown
-
Internal use only
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h