FAdvanceOptions
视频编码的高级选项。
C++
USTRUCT(BlueprintType)
struct FAdvanceOptions {
GENERATED_BODY()
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AdvanceOptions")
FENUMWRAP_ENCODING_PREFERENCE encodingPreference = EENUMCUSTOM_ENCODING_PREFERENCE::PREFER_AUTO;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AdvanceOptions")
ECOMPRESSION_PREFERENCE compressionPreference = ECOMPRESSION_PREFERENCE::PREFER_QUALITY;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AdvanceOptions")
bool encodeAlpha = false;
FAdvanceOptions() {}
FAdvanceOptions(const agora::rtc::AdvanceOptions & AgoraData){
encodingPreference = AgoraData.encodingPreference;
compressionPreference = static_cast<ECOMPRESSION_PREFERENCE>(AgoraData.compressionPreference);
encodeAlpha = AgoraData.encodeAlpha;
}
agora::rtc::AdvanceOptions CreateAgoraData() const{
agora::rtc::AdvanceOptions AgoraData;
AgoraData.encodingPreference = encodingPreference.GetRawValue();
AgoraData.compressionPreference =static_cast<agora::rtc::COMPRESSION_PREFERENCE>(compressionPreference);
AgoraData.encodeAlpha = encodeAlpha;
return AgoraData;
}
void FreeAgoraData(agora::rtc::AdvanceOptions& AgoraData) const {
}
};
encodingPreference
视频编码器偏好。详见 FENUMWRAP_ENCODING_PREFERENCE。
compressionPreference
视频编码的压缩偏好。详见 ECOMPRESSION_PREFERENCE。
encodeAlpha
当视频帧包含 Alpha 通道数据时,设置是否将 Alpha 数据编码并发送至远端:
true
:对 Alpha 数据进行编码发送。false
:(默认)不对 Alpha 数据进行编码发送。