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

Unified Diff: webrtc/api/video/video_frame.cc

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Fix Mac CE Created 3 years, 9 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/api/video/video_frame.cc
diff --git a/webrtc/api/video/video_frame.cc b/webrtc/api/video/video_frame.cc
index b2647461c73b67d1fba827390da9633146aca18a..2ed8faa5c6bd03e790a44d1b3bda9131bf77406b 100644
--- a/webrtc/api/video/video_frame.cc
+++ b/webrtc/api/video/video_frame.cc
@@ -17,22 +17,26 @@ namespace webrtc {
VideoFrame::VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
webrtc::VideoRotation rotation,
+ webrtc::VideoContentType content_type,
int64_t timestamp_us)
: video_frame_buffer_(buffer),
timestamp_rtp_(0),
ntp_time_ms_(0),
timestamp_us_(timestamp_us),
- rotation_(rotation) {}
+ rotation_(rotation),
+ content_type_(content_type) {}
VideoFrame::VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
uint32_t timestamp,
int64_t render_time_ms,
- VideoRotation rotation)
+ VideoRotation rotation,
+ VideoContentType content_type)
: video_frame_buffer_(buffer),
timestamp_rtp_(timestamp),
ntp_time_ms_(0),
timestamp_us_(render_time_ms * rtc::kNumMicrosecsPerMillisec),
- rotation_(rotation) {
+ rotation_(rotation),
+ content_type_(content_type) {
RTC_DCHECK(buffer);
}

Powered by Google App Engine
This is Rietveld 408576698