FFocalLengthInfo
摄像头支持的焦距信息,包含摄像头的方向以及焦距类型。
C++
USTRUCT(BlueprintType)
struct FFocalLengthInfo {
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FFocalLengthInfo")
int cameraDirection = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FFocalLengthInfo")
ECAMERA_FOCAL_LENGTH_TYPE focalLengthType = ECAMERA_FOCAL_LENGTH_TYPE::CAMERA_FOCAL_LENGTH_DEFAULT;
FFocalLengthInfo(){}
FFocalLengthInfo(const agora::rtc::FocalLengthInfo & AgoraData){
cameraDirection = AgoraData.cameraDirection;
focalLengthType = static_cast<ECAMERA_FOCAL_LENGTH_TYPE>(AgoraData.focalLengthType);
}
agora::rtc::FocalLengthInfo CreateAgoraData() const {
agora::rtc::FocalLengthInfo AgoraData;
AgoraData.cameraDirection = cameraDirection;
AgoraData.focalLengthType = static_cast<agora::rtc::CAMERA_FOCAL_LENGTH_TYPE>(focalLengthType);
return AgoraData;
}
void FreeAgoraData(agora::rtc::FocalLengthInfo& AgoraData) const {
}
};
注意
仅适用于 Android 和 iOS。
cameraDirection
摄像头方向。详见 ECAMERA_DIRECTION。
focalLengthType
焦距类型。详见 ECAMERA_FOCAL_LENGTH_TYPE。