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

Unified Diff: webrtc/modules/video_coding/frame_object.cc

Issue 2110543005: FrameObject inherit from VCMEncodedFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/frame_object.cc
diff --git a/webrtc/modules/video_coding/frame_object.cc b/webrtc/modules/video_coding/frame_object.cc
index b46f8169660bd2f53f09095b0592f19e704eac7c..cb63d5a63e232c407062dce937219d2961e0c346 100644
--- a/webrtc/modules/video_coding/frame_object.cc
+++ b/webrtc/modules/video_coding/frame_object.cc
@@ -34,8 +34,21 @@ RtpFrameObject::RtpFrameObject(PacketBuffer* packet_buffer,
size = frame_size;
VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num);
if (packet) {
+ // TODO(philipel): Remove when encoded image is replaced by FrameObject.
+ CopyCodecSpecific(&packet->video_header);
+ _completeFrame = true;
+ _payloadType = packet->payloadType;
+ _timeStamp = packet->timestamp;
+ ntp_time_ms_ = packet->ntp_time_ms_;
+ _buffer = new uint8_t[frame_size]();
+ _size = frame_size;
+ _length = frame_size;
+ _frameType = packet->frameType;
+ GetBitstream(_buffer);
+
frame_type_ = packet->frameType;
codec_type_ = packet->codec;
+ timestamp = packet->timestamp;
stefan-webrtc 2016/06/29 16:43:23 Could you add a comment before each block of assig
philipel 2016/06/30 09:34:15 Done.
}
}
« webrtc/modules/video_coding/frame_object.h ('K') | « webrtc/modules/video_coding/frame_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698