--------------------------------------
(params *TestExtPacketParams, vp8 *codec.VP8)
| 81 | // -------------------------------------- |
| 82 | |
| 83 | func GetTestExtPacketVP8(params *TestExtPacketParams, vp8 *codec.VP8) (*buffer.ExtPacket, error) { |
| 84 | ep, err := GetTestExtPacket(params) |
| 85 | if err != nil { |
| 86 | return nil, err |
| 87 | } |
| 88 | |
| 89 | ep.IsKeyFrame = vp8.IsKeyFrame |
| 90 | ep.Payload = *vp8 |
| 91 | if ep.DependencyDescriptor == nil { |
| 92 | ep.Temporal = int32(vp8.TID) |
| 93 | } |
| 94 | return ep, nil |
| 95 | } |
| 96 | |
| 97 | // -------------------------------------- |
| 98 |
searching dependent graphs…