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

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

Issue 2444193010: Delete FrameObject::size member. (Closed)
Patch Set: Created 4 years, 1 month 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
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
(...skipping 15 matching lines...) Expand all
26 uint16_t first_seq_num, 26 uint16_t first_seq_num,
27 uint16_t last_seq_num, 27 uint16_t last_seq_num,
28 size_t frame_size, 28 size_t frame_size,
29 int times_nacked, 29 int times_nacked,
30 int64_t received_time) 30 int64_t received_time)
31 : packet_buffer_(packet_buffer), 31 : packet_buffer_(packet_buffer),
32 first_seq_num_(first_seq_num), 32 first_seq_num_(first_seq_num),
33 last_seq_num_(last_seq_num), 33 last_seq_num_(last_seq_num),
34 received_time_(received_time), 34 received_time_(received_time),
35 times_nacked_(times_nacked) { 35 times_nacked_(times_nacked) {
36 size = frame_size;
37 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num); 36 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num);
38 if (packet) { 37 if (packet) {
39 // TODO(philipel): Remove when encoded image is replaced by FrameObject. 38 // TODO(philipel): Remove when encoded image is replaced by FrameObject.
40 // VCMEncodedFrame members 39 // VCMEncodedFrame members
41 CopyCodecSpecific(&packet->video_header); 40 CopyCodecSpecific(&packet->video_header);
42 _completeFrame = true; 41 _completeFrame = true;
43 _payloadType = packet->payloadType; 42 _payloadType = packet->payloadType;
44 _timeStamp = packet->timestamp; 43 _timeStamp = packet->timestamp;
45 ntp_time_ms_ = packet->ntp_time_ms_; 44 ntp_time_ms_ = packet->ntp_time_ms_;
46 _buffer = new uint8_t[frame_size](); 45 _buffer = new uint8_t[frame_size]();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 99
101 RTPVideoTypeHeader* RtpFrameObject::GetCodecHeader() const { 100 RTPVideoTypeHeader* RtpFrameObject::GetCodecHeader() const {
102 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_); 101 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_);
103 if (!packet) 102 if (!packet)
104 return nullptr; 103 return nullptr;
105 return &packet->video_header.codecHeader; 104 return &packet->video_header.codecHeader;
106 } 105 }
107 106
108 } // namespace video_coding 107 } // namespace video_coding
109 } // namespace webrtc 108 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698