WebRtcVideoFrame constructor without transport_frame_id.
Needed as a substitute when eliminating the Copy method. BUG=webrtc:5682 Review-Url: https://codereview.webrtc.org/2262683002 Cr-Commit-Position: refs/heads/master@{#13843}
This commit is contained in:
parent
e5b4141746
commit
4381700fcc
@ -35,6 +35,12 @@ WebRtcVideoFrame::WebRtcVideoFrame(
|
||||
transport_frame_id_(transport_frame_id),
|
||||
rotation_(rotation) {}
|
||||
|
||||
WebRtcVideoFrame::WebRtcVideoFrame(
|
||||
const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer,
|
||||
webrtc::VideoRotation rotation,
|
||||
int64_t timestamp_us)
|
||||
: WebRtcVideoFrame(buffer, rotation, timestamp_us, 0) {};
|
||||
|
||||
WebRtcVideoFrame::WebRtcVideoFrame(
|
||||
const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer,
|
||||
int64_t time_stamp_ns,
|
||||
|
||||
@ -41,6 +41,12 @@ class WebRtcVideoFrame : public VideoFrame {
|
||||
int64_t timestamp_us,
|
||||
uint32_t transport_frame_id);
|
||||
|
||||
// Alternative constructor, when not knowing or caring about the
|
||||
// transport_frame_id. Which is set to zero.
|
||||
WebRtcVideoFrame(const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer,
|
||||
webrtc::VideoRotation rotation,
|
||||
int64_t timestamp_us);
|
||||
|
||||
// TODO(nisse): Deprecated, delete as soon as all callers have switched to the
|
||||
// above constructor with microsecond timestamp.
|
||||
WebRtcVideoFrame(const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user