| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 size_t data_size = 0, // size of data | 91 size_t data_size = 0, // size of data |
| 92 uint8_t* data = nullptr) { // data pointer | 92 uint8_t* data = nullptr) { // data pointer |
| 93 VCMPacket packet; | 93 VCMPacket packet; |
| 94 packet.codec = kVideoCodecVP8; | 94 packet.codec = kVideoCodecVP8; |
| 95 packet.seqNum = seq_num; | 95 packet.seqNum = seq_num; |
| 96 packet.frameType = keyframe ? kVideoFrameKey : kVideoFrameDelta; | 96 packet.frameType = keyframe ? kVideoFrameKey : kVideoFrameDelta; |
| 97 packet.isFirstPacket = first; | 97 packet.isFirstPacket = first; |
| 98 packet.markerBit = last; | 98 packet.markerBit = last; |
| 99 packet.sizeBytes = data_size; | 99 packet.sizeBytes = data_size; |
| 100 packet.dataPtr = data; | 100 packet.dataPtr = data; |
| 101 packet.codecSpecificHeader.codecHeader.VP8.pictureId = pid % (1 << 15); | 101 packet.video_header.codecHeader.VP8.pictureId = pid % (1 << 15); |
| 102 packet.codecSpecificHeader.codecHeader.VP8.temporalIdx = tid; | 102 packet.video_header.codecHeader.VP8.temporalIdx = tid; |
| 103 packet.codecSpecificHeader.codecHeader.VP8.tl0PicIdx = tl0; | 103 packet.video_header.codecHeader.VP8.tl0PicIdx = tl0; |
| 104 packet.codecSpecificHeader.codecHeader.VP8.layerSync = sync; | 104 packet.video_header.codecHeader.VP8.layerSync = sync; |
| 105 | 105 |
| 106 EXPECT_TRUE(packet_buffer_->InsertPacket(packet)); | 106 EXPECT_TRUE(packet_buffer_->InsertPacket(packet)); |
| 107 } | 107 } |
| 108 | 108 |
| 109 // Insert a Vp9 packet into the packet buffer. | 109 // Insert a Vp9 packet into the packet buffer. |
| 110 void InsertVp9Gof(uint16_t seq_num, // packet sequence number | 110 void InsertVp9Gof(uint16_t seq_num, // packet sequence number |
| 111 bool keyframe, // is keyframe | 111 bool keyframe, // is keyframe |
| 112 bool first, // is first packet of frame | 112 bool first, // is first packet of frame |
| 113 bool last, // is last packet of frame | 113 bool last, // is last packet of frame |
| 114 bool up = false, // frame is up-switch point | 114 bool up = false, // frame is up-switch point |
| (...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 CheckReferencesVp9(pid + 5, 1, pid + 4); | 1398 CheckReferencesVp9(pid + 5, 1, pid + 4); |
| 1399 CheckReferencesVp9(pid + 6, 0, pid + 4); | 1399 CheckReferencesVp9(pid + 6, 0, pid + 4); |
| 1400 CheckReferencesVp9(pid + 6, 1, pid + 5); | 1400 CheckReferencesVp9(pid + 6, 1, pid + 5); |
| 1401 CheckReferencesVp9(pid + 7, 1, pid + 6); | 1401 CheckReferencesVp9(pid + 7, 1, pid + 6); |
| 1402 CheckReferencesVp9(pid + 8, 0, pid + 6); | 1402 CheckReferencesVp9(pid + 8, 0, pid + 6); |
| 1403 CheckReferencesVp9(pid + 8, 1, pid + 7); | 1403 CheckReferencesVp9(pid + 8, 1, pid + 7); |
| 1404 } | 1404 } |
| 1405 | 1405 |
| 1406 } // namespace video_coding | 1406 } // namespace video_coding |
| 1407 } // namespace webrtc | 1407 } // namespace webrtc |
| OLD | NEW |