Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: webrtc/modules/video_coding/frame_object.cc

Issue 1991513004: Revert of FrameBuffer for the new jitter buffer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_coding/frame_object.h ('k') | webrtc/modules/video_coding/timing.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "webrtc/modules/video_coding/frame_object.h" 11 #include "webrtc/modules/video_coding/frame_object.h"
12 #include "webrtc/base/criticalsection.h" 12 #include "webrtc/base/criticalsection.h"
13 #include "webrtc/modules/video_coding/packet_buffer.h" 13 #include "webrtc/modules/video_coding/packet_buffer.h"
14 14
15 namespace webrtc { 15 namespace webrtc {
16 namespace video_coding { 16 namespace video_coding {
17 17
18 FrameObject::FrameObject() 18 FrameObject::FrameObject()
19 : picture_id(0), 19 : picture_id(0),
20 spatial_layer(0), 20 spatial_layer(0),
21 timestamp(0),
22 num_references(0), 21 num_references(0),
23 inter_layer_predicted(false) {} 22 inter_layer_predicted(false) {}
24 23
25 RtpFrameObject::RtpFrameObject(PacketBuffer* packet_buffer, 24 RtpFrameObject::RtpFrameObject(PacketBuffer* packet_buffer,
26 uint16_t first_seq_num, 25 uint16_t first_seq_num,
27 uint16_t last_seq_num) 26 uint16_t last_seq_num)
28 : packet_buffer_(packet_buffer), 27 : packet_buffer_(packet_buffer),
29 first_seq_num_(first_seq_num), 28 first_seq_num_(first_seq_num),
30 last_seq_num_(last_seq_num) { 29 last_seq_num_(last_seq_num) {
31 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num); 30 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num);
(...skipping 29 matching lines...) Expand all
61 60
62 RTPVideoTypeHeader* RtpFrameObject::GetCodecHeader() const { 61 RTPVideoTypeHeader* RtpFrameObject::GetCodecHeader() const {
63 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_); 62 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_);
64 if (!packet) 63 if (!packet)
65 return nullptr; 64 return nullptr;
66 return &packet->codecSpecificHeader.codecHeader; 65 return &packet->codecSpecificHeader.codecHeader;
67 } 66 }
68 67
69 } // namespace video_coding 68 } // namespace video_coding
70 } // namespace webrtc 69 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/frame_object.h ('k') | webrtc/modules/video_coding/timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698