(data []byte)
| 216 | } |
| 217 | |
| 218 | func 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 | } |
no outgoing calls
no test coverage detected