Document that preferred VideoFrame constructor takes no RTP timestamp.
And update most internal calls to use it. Bug: webrtc:5740, webrtc:9372 Change-Id: Ib57d4ebfa7b0729af6d22981a792f0fdadf8a13f Reviewed-on: https://webrtc-review.googlesource.com/81743 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23567}
This commit is contained in:
@ -25,11 +25,11 @@ VideoFrame::VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
|
||||
rotation_(rotation) {}
|
||||
|
||||
VideoFrame::VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
|
||||
uint32_t timestamp,
|
||||
uint32_t timestamp_rtp,
|
||||
int64_t render_time_ms,
|
||||
VideoRotation rotation)
|
||||
: video_frame_buffer_(buffer),
|
||||
timestamp_rtp_(timestamp),
|
||||
timestamp_rtp_(timestamp_rtp),
|
||||
ntp_time_ms_(0),
|
||||
timestamp_us_(render_time_ms * rtc::kNumMicrosecsPerMillisec),
|
||||
rotation_(rotation) {
|
||||
|
||||
@ -20,16 +20,14 @@ namespace webrtc {
|
||||
|
||||
class VideoFrame {
|
||||
public:
|
||||
// TODO(nisse): This constructor is consistent with the now deleted
|
||||
// cricket::WebRtcVideoFrame. We should consider whether or not we
|
||||
// want to stick to this style and deprecate the other constructor.
|
||||
// Preferred constructor.
|
||||
VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
|
||||
webrtc::VideoRotation rotation,
|
||||
int64_t timestamp_us);
|
||||
|
||||
// Preferred constructor.
|
||||
// For use by the parts of the pipeline that needs the RTP 90kHz timestamp.
|
||||
VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
|
||||
uint32_t timestamp,
|
||||
uint32_t timestamp_rtp,
|
||||
int64_t render_time_ms,
|
||||
VideoRotation rotation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user