FUABT_AdvanceOptions
Advanced options for video encoding.
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 { } };
Attributes
- encodingPreference
- Video encoder preference. See FENUMWRAP_ENCODING_PREFERENCE.
- compressionPreference
- Compression preference for video encoding. See ECOMPRESSION_PREFERENCE.
- encodeAlpha
- Whether to encode and send the Alpha data present in the video frame to the remote end:
true
: Encode and send Alpha data.false
: (Default) Do not encode and send Alpha data.