Files
livekit-3d/pkg/sfu/simulcast.go
T
cnderrauberandcnderrauber 1e1aaeb86b 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>
2021-11-09 12:03:16 +08:00

30 lines
595 B
Go

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
}