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

Function ParseHevcSPS

codec/sps.go:218–228  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

216}
217
218func ParseHevcSPS(data []byte) (self SPSInfo, err error) {
219 var rawsps h265parser.SPSInfo
220 if rawsps, err = h265parser.ParseSPS(data); err == nil {
221 self.CropLeft, self.CropRight, self.CropTop, self.CropBottom = uint(rawsps.CropLeft), uint(rawsps.CropRight), uint(rawsps.CropTop), uint(rawsps.CropBottom)
222 self.ProfileIdc, self.LevelIdc = rawsps.ProfileIdc, rawsps.LevelIdc
223 self.MbWidth, self.MbHeight = rawsps.MbWidth, rawsps.MbHeight
224 self.Width = uint(rawsps.Width)
225 self.Height = uint(rawsps.Height)
226 }
227 return
228}

Callers 2

WriteSliceBytesMethod · 0.92
WriteSequenceHeadMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected