MCPcopy Create free account
hub / github.com/Monibuca/engine / generateTimestamp

Method generateTimestamp

track/video.go:200–206  ·  view source on GitHub ↗
(ts uint32)

Source from the content-addressed store, hash-verified

198}
199
200func (vt *Video) generateTimestamp(ts uint32) {
201 if vt.State == TrackStateOffline {
202 vt.dtsEst = util.NewDTSEstimator()
203 }
204 vt.Value.PTS = time.Duration(ts)
205 vt.Value.DTS = time.Duration(vt.dtsEst.Feed(ts))
206}
207
208func (vt *Video) SetLostFlag() {
209 vt.lostFlag = true

Callers 2

WriteNaluMethod · 0.95
WriteAnnexBMethod · 0.95

Calls 2

NewDTSEstimatorFunction · 0.92
FeedMethod · 0.45

Tested by

no test coverage detected