- RevueSDK
- Vp8Encoding
Structure
Vp8Encoding
VP8 編碼參數
struct Vp8EncodingOverview
8 個欄位對應 revuekit-c 的 8 個 VP8 setter。所有欄位皆 non-optional 且有預設值, Vp8Encoding() 等同 .allKeyframe(不破圖精神)。
4 個 preset 常數
| Preset | maxBitrate | cpuUsed | quantizer | kf | rcMode |
|---|---|---|---|---|---|
.allKeyframe (init 預設) | 3 Mbps | 16 | 30-40 | 1 | VBR |
.lowLatency (C 對應) | 3 Mbps | 12 | 4-48 | 15 | CBR |
.highQuality (C 對應) | 8 Mbps | 4 | 2-40 | 60 | VBR |
.lowBandwidth (C 對應) | 1.5 Mbps | 16 | 10-56 | 10 | CQ |
Topics
Initializers
Instance Properties
let cpuUsed: Int8編碼器 CPU 用力程度(-16 ~ 16)
let cqLevel: UInt8CQ 模式下的目標畫質等級(0 ~ 63)
let keyframeInterval: UInt16Keyframe 間隔(幀數)
let maxBitrate: Int目標位元率(bps)
let quantizerMax: UInt8Quantizer 上限(0 ~ 63)
let quantizerMin: UInt8Quantizer 下限(0 ~ 63)
let rateControlMode: RcModeRate Control 模式
let temporalLayers: UInt32Temporal Layers 數量(1 ~ 3)
Type Properties
static let allKeyframe: Vp8Encoding全 keyframe(每幀完整、不破圖)— init default
static let highQuality: Vp8Encoding高畫質 preset(對應 C 層
apply_high_quality_mode)static let lowBandwidth: Vp8Encoding弱網優先 preset(對應 C 層
apply_low_bandwidth_mode)static let lowLatency: Vp8Encoding低延遲 preset(對應 C 層
apply_low_latency_mode)