Separate from ion-sfu (#171)
* Separate from ion-sfu changes: 1. extract pkg/buffer, twcc, sfu, relay, stats, logger 2. to solve cycle import, move ion-sfu/pkg/logger to pkg/sfu/logger 3. replace pion/ion-sfu => ./ reason: will change import pion/ion-sfu/pkg/* to livekit-server/pkg/* after this pr merged. Just not change any code in this pr, because it will confused with the separate code from ion-sfu in review. * Move code from ion-sfu to pkg/sfu * fix build error for resovle conflict Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
co-authored by
cnderrauber
parent
289ebd32ff
commit
1e1aaeb86b
@@ -0,0 +1,29 @@
|
||||
package sfu
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
quarterResolution = "q"
|
||||
halfResolution = "h"
|
||||
fullResolution = "f"
|
||||
)
|
||||
|
||||
type SimulcastConfig struct {
|
||||
BestQualityFirst bool `mapstructure:"bestqualityfirst"`
|
||||
EnableTemporalLayer bool `mapstructure:"enabletemporallayer"`
|
||||
}
|
||||
|
||||
type simulcastTrackHelpers struct {
|
||||
switchDelay time.Time
|
||||
temporalSupported bool
|
||||
temporalEnabled bool
|
||||
lTSCalc atomicInt64
|
||||
|
||||
// VP8Helper temporal helpers
|
||||
pRefPicID atomicUint16
|
||||
refPicID atomicUint16
|
||||
lPicID atomicUint16
|
||||
pRefTlZIdx atomicUint8
|
||||
refTlZIdx atomicUint8
|
||||
lTlZIdx atomicUint8
|
||||
}
|
||||
Reference in New Issue
Block a user