()
| 24 | } |
| 25 | |
| 26 | func (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 | |
| 40 | func (b H264NALUType) Byte() byte { |
| 41 | return byte(b) |