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

Function GetPtsDts

util/convert.go:312–321  ·  view source on GitHub ↗
(v uint64)

Source from the content-addressed store, hash-verified

310}
311
312func GetPtsDts(v uint64) uint64 {
313 // 4 + 3 + 1 + 15 + 1 + 15 + 1
314 // 0011
315 // 0010 + PTS[30-32] + marker_bit + PTS[29-15] + marker_bit + PTS[14-0] + marker_bit
316 pts1 := ((v >> 33) & 0x7) << 30
317 pts2 := ((v >> 17) & 0x7fff) << 15
318 pts3 := ((v >> 1) & 0x7fff)
319
320 return pts1 | pts2 | pts3
321}
322
323func PutPtsDts(v uint64) uint64 {
324 // 4 + 3 + 1 + 15 + 1 + 15 + 1

Callers 1

ReadPESHeaderFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected