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

Method ReadSE

util/bits/golomb_reader.go:55–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (self *GolombBitReader) ReadSE() (res uint, err error) {
56 if res, err = self.ReadExponentialGolombCode(); err != nil {
57 return
58 }
59 if res&0x01 != 0 {
60 res = (res + 1) / 2
61 } else {
62 res = -res / 2
63 }
64 return
65}

Callers 1

ParseSPSFunction · 0.95

Calls 1

Tested by

no test coverage detected