
This change adds the plumbing of RtpPacketInfo from RtpVideoStreamReceiver::OnRtpPacket() to VideoReceiveStream::OnFrame() for video. It is a step towards replacing the non-spec compliant ContributingSources that updates itself at packet-receive time, with the spec-compliant SourceTracker that will update itself at frame-delivery-to-track time. Bug: webrtc:10668 Change-Id: Ib97d430530c5a8487d3b129936c7c51e118889bd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/139891 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Chen Xing <chxg@google.com> Cr-Commit-Position: refs/heads/master@{#28332}
27 lines
820 B
C++
27 lines
820 B
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef COMMON_VIDEO_TEST_UTILITIES_H_
|
|
#define COMMON_VIDEO_TEST_UTILITIES_H_
|
|
|
|
#include <initializer_list>
|
|
|
|
#include "api/rtp_packet_infos.h"
|
|
#include "api/video/color_space.h"
|
|
|
|
namespace webrtc {
|
|
|
|
HdrMetadata CreateTestHdrMetadata();
|
|
ColorSpace CreateTestColorSpace(bool with_hdr_metadata);
|
|
RtpPacketInfos CreatePacketInfos(size_t count);
|
|
|
|
} // namespace webrtc
|
|
#endif // COMMON_VIDEO_TEST_UTILITIES_H_
|