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

Side by Side Diff: webrtc/media/base/videoframe.h

Issue 2088953002: Add cricket::VideoFrame::frame_id() and set it to RTP timestamp. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 4 years, 4 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/media/base/videobroadcaster_unittest.cc ('k') | webrtc/media/base/videoframefactory.cc » ('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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 20 matching lines...) Expand all
31 // Basic accessors. 31 // Basic accessors.
32 // Note this is the width and height without rotation applied. 32 // Note this is the width and height without rotation applied.
33 virtual int width() const = 0; 33 virtual int width() const = 0;
34 virtual int height() const = 0; 34 virtual int height() const = 0;
35 35
36 // Returns the underlying video frame buffer. This function is ok to call 36 // Returns the underlying video frame buffer. This function is ok to call
37 // multiple times, but the returned object will refer to the same memory. 37 // multiple times, but the returned object will refer to the same memory.
38 virtual const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& 38 virtual const rtc::scoped_refptr<webrtc::VideoFrameBuffer>&
39 video_frame_buffer() const = 0; 39 video_frame_buffer() const = 0;
40 40
41 // Frame ID. Normally RTP timestamp when the frame was received using RTP.
42 virtual uint32_t transport_frame_id() const = 0;
43
41 // System monotonic clock, same timebase as rtc::TimeMicros(). 44 // System monotonic clock, same timebase as rtc::TimeMicros().
42 virtual int64_t timestamp_us() const = 0; 45 virtual int64_t timestamp_us() const = 0;
43 virtual void set_timestamp_us(int64_t time_us) = 0; 46 virtual void set_timestamp_us(int64_t time_us) = 0;
44 47
45 // Deprecated methods, for backwards compatibility. 48 // Deprecated methods, for backwards compatibility.
46 // TODO(nisse): Delete when usage in Chrome and other applications 49 // TODO(nisse): Delete when usage in Chrome and other applications
47 // have been replaced. 50 // have been replaced.
48 virtual int64_t GetTimeStamp() const { 51 virtual int64_t GetTimeStamp() const {
49 return rtc::kNumNanosecsPerMicrosec * timestamp_us(); 52 return rtc::kNumNanosecsPerMicrosec * timestamp_us();
50 } 53 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 static bool Validate(uint32_t fourcc, 98 static bool Validate(uint32_t fourcc,
96 int w, 99 int w,
97 int h, 100 int h,
98 const uint8_t* sample, 101 const uint8_t* sample,
99 size_t sample_size); 102 size_t sample_size);
100 }; 103 };
101 104
102 } // namespace cricket 105 } // namespace cricket
103 106
104 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_ 107 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videobroadcaster_unittest.cc ('k') | webrtc/media/base/videoframefactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698