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

Method Offset

codec/h264.go:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (b H264NALUType) Offset() int {
27 switch b {
28 case NALU_STAPA:
29 return 1
30 case NALU_STAPB:
31 return 3
32 case NALU_FUA:
33 return 2
34 case NALU_FUB:
35 return 4
36 }
37 return 0
38}
39
40func (b H264NALUType) Byte() byte {
41 return byte(b)

Callers 1

WriteRTPFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected