AdvanceOptions
Advanced options for video encoding.
struct AdvanceOptions { ENCODING_PREFERENCE encodingPreference; COMPRESSION_PREFERENCE compressionPreference; bool encodeAlpha; AdvanceOptions() : encodingPreference(PREFER_AUTO), compressionPreference(PREFER_LOW_LATENCY), encodeAlpha(false) {} AdvanceOptions(ENCODING_PREFERENCE encoding_preference, COMPRESSION_PREFERENCE compression_preference, bool encode_alpha) : encodingPreference(encoding_preference), compressionPreference(compression_preference), encodeAlpha(encode_alpha) {} bool operator==(const AdvanceOptions& rhs) const { return encodingPreference == rhs.encodingPreference && compressionPreference == rhs.compressionPreference && encodeAlpha == rhs.encodeAlpha; } };
Attributes
- encodingPreference
- Video encoder preference. See ENCODING_PREFERENCE.
- compressionPreference
- Compression preference for video encoding. See COMPRESSION_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.