Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 27c46e2

Browse files
ilnikCommit bot
authored andcommitted
Revert of Add content type information to encoded images and corresponding rtp extension header (patchset #4 id:400001 of https://codereview.webrtc.org/2812913002/ )
Reason for revert: Breaks android buildbots. Original issue's description: > Reland of Add content type information to encoded images and corresponding rtp extension header (patchset #1 id:1 of https://codereview.webrtc.org/2816463002/ ) > > Reason for revert: > Reland with appropriate changes to API to not break depending projects. > > Original issue's description: > > Revert of Add content type information to encoded images and corresponding rtp extension header (patchset #31 id:600001 of https://codereview.webrtc.org/2772033002/ ) > > > > Reason for revert: > > Breaks dependent projects. > > > > Original issue's description: > > > Add content type information to Encoded Images and add corresponding RTP extension header. > > > Use it to separate UMA e2e delay metric between screenshare from video. > > > Content type extension is set based on encoder settings and processed and decoders. > > > > > > Also, > > > Fix full-stack-tests to calculate RTT correctly, so new metric could be tested. > > > > > > BUG=webrtc:7420 > > > > > > Review-Url: https://codereview.webrtc.org/2772033002 > > > Cr-Commit-Position: refs/heads/master@{#17640} > > > Committed: https://chromium.googlesource.com/external/webrtc/+/64e739aeae5629cbbebf2a19e1d3e6b452bb6d0b > > > > [email protected],[email protected],[email protected],[email protected],[email protected] > > # Skipping CQ checks because original CL landed less than 1 days ago. > > NOPRESUBMIT=true > > NOTREECHECKS=true > > NOTRY=true > > BUG=webrtc:7420 > > > > Review-Url: https://codereview.webrtc.org/2816463002 > > Cr-Commit-Position: refs/heads/master@{#17644} > > Committed: https://chromium.googlesource.com/external/webrtc/+/57218668083fce36a55efb8c8f1d31785253b8c0 > > [email protected],[email protected],[email protected],[email protected],[email protected] > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=webrtc:7420 > > Review-Url: https://codereview.webrtc.org/2812913002 > Cr-Commit-Position: refs/heads/master@{#17651} > Committed: https://chromium.googlesource.com/external/webrtc/+/774f6b4b968b46d6bd95c42eec0ce3202b47f0b2 [email protected],[email protected],[email protected],[email protected],[email protected] # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:7420 Review-Url: https://codereview.webrtc.org/2809653004 Cr-Commit-Position: refs/heads/master@{#17653}
1 parent 4d02757 commit 27c46e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+91
-473
lines changed

webrtc/api/video/video_content_type.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

webrtc/common_types.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ RTPHeaderExtension::RTPHeaderExtension()
3131
voiceActivity(false),
3232
audioLevel(0),
3333
hasVideoRotation(false),
34-
videoRotation(kVideoRotation_0),
35-
hasVideoContentType(false),
36-
videoContentType(VideoContentType::UNSPECIFIED) {}
34+
videoRotation(kVideoRotation_0) {}
3735

3836
RTPHeader::RTPHeader()
3937
: markerBit(false),

webrtc/common_types.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <string>
1919
#include <vector>
2020

21-
#include "webrtc/api/video/video_content_type.h"
2221
#include "webrtc/api/video/video_rotation.h"
2322
#include "webrtc/base/checks.h"
2423
#include "webrtc/base/optional.h"
@@ -717,11 +716,6 @@ struct RTPHeaderExtension {
717716
bool hasVideoRotation;
718717
VideoRotation videoRotation;
719718

720-
// TODO(ilnik): Refactor this and one above to be rtc::Optional() and remove
721-
// a corresponding bool flag.
722-
bool hasVideoContentType;
723-
VideoContentType videoContentType;
724-
725719
PlayoutDelay playout_delay = {-1, -1};
726720
};
727721

webrtc/config.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ const char* RtpExtension::kTransportSequenceNumberUri =
6464
"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01";
6565
const int RtpExtension::kTransportSequenceNumberDefaultId = 5;
6666

67-
const char* RtpExtension::kVideoContentTypeUri =
68-
"http://www.webrtc.org/experiments/rtp-hdrext/video-content-type";
69-
const int RtpExtension::kVideoContentTypeDefaultId = 6;
70-
7167
// This extension allows applications to adaptively limit the playout delay
7268
// on frames as per the current needs. For example, a gaming application
7369
// has very different needs on end-to-end delay compared to a video-conference
@@ -89,8 +85,7 @@ bool RtpExtension::IsSupportedForVideo(const std::string& uri) {
8985
uri == webrtc::RtpExtension::kAbsSendTimeUri ||
9086
uri == webrtc::RtpExtension::kVideoRotationUri ||
9187
uri == webrtc::RtpExtension::kTransportSequenceNumberUri ||
92-
uri == webrtc::RtpExtension::kPlayoutDelayUri ||
93-
uri == webrtc::RtpExtension::kVideoContentTypeUri;
88+
uri == webrtc::RtpExtension::kPlayoutDelayUri;
9489
}
9590

9691
VideoStream::VideoStream()

webrtc/config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ struct RtpExtension {
8888
static const char* kVideoRotationUri;
8989
static const int kVideoRotationDefaultId;
9090

91-
// Header extension for video content type. E.g. default or screenshare.
92-
static const char* kVideoContentTypeUri;
93-
static const int kVideoContentTypeDefaultId;
94-
9591
// Header extension for transport sequence number, see url for details:
9692
// http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions
9793
static const char* kTransportSequenceNumberUri;

webrtc/media/engine/webrtcvideoengine2_unittest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3852,7 +3852,7 @@ TEST_F(WebRtcVideoChannel2Test, ReceiveDifferentUnsignaledSsrc) {
38523852
EXPECT_EQ(rtpHeader.ssrc, recv_stream->GetConfig().rtp.remote_ssrc);
38533853
// Verify that the receive stream sinks to a renderer.
38543854
webrtc::VideoFrame video_frame2(CreateBlackFrameBuffer(4, 4), 200, 0,
3855-
webrtc::kVideoRotation_0);
3855+
webrtc::kVideoRotation_0);
38563856
recv_stream->InjectFrame(video_frame2);
38573857
EXPECT_EQ(2, renderer.num_rendered_frames());
38583858

@@ -3869,7 +3869,7 @@ TEST_F(WebRtcVideoChannel2Test, ReceiveDifferentUnsignaledSsrc) {
38693869
EXPECT_EQ(rtpHeader.ssrc, recv_stream->GetConfig().rtp.remote_ssrc);
38703870
// Verify that the receive stream sinks to a renderer.
38713871
webrtc::VideoFrame video_frame3(CreateBlackFrameBuffer(4, 4), 300, 0,
3872-
webrtc::kVideoRotation_0);
3872+
webrtc::kVideoRotation_0);
38733873
recv_stream->InjectFrame(video_frame3);
38743874
EXPECT_EQ(3, renderer.num_rendered_frames());
38753875
#endif

webrtc/modules/include/module_common_types.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ struct RTPVideoHeader {
5858

5959
PlayoutDelay playout_delay;
6060

61-
VideoContentType content_type;
62-
6361
union {
6462
bool is_first_packet_in_frame;
6563
RTC_DEPRECATED bool isFirstPacket; // first packet in frame
@@ -89,7 +87,7 @@ class RTPFragmentationHeader {
8987
fragmentationOffset(NULL),
9088
fragmentationLength(NULL),
9189
fragmentationTimeDiff(NULL),
92-
fragmentationPlType(NULL) {}
90+
fragmentationPlType(NULL) {};
9391

9492
~RTPFragmentationHeader() {
9593
delete[] fragmentationOffset;

webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ enum RTPExtensionType {
7676
kRtpExtensionVideoRotation,
7777
kRtpExtensionTransportSequenceNumber,
7878
kRtpExtensionPlayoutDelay,
79-
kRtpExtensionVideoContentType,
80-
kRtpExtensionNumberOfExtensions // Must be the last entity in the enum.
79+
kRtpExtensionNumberOfExtensions,
8180
};
8281

8382
enum RTCPAppSubTypes { kAppSubtypeBwe = 0x00 };

webrtc/modules/rtp_rtcp/source/rtp_header_extension.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ constexpr ExtensionInfo kExtensions[] = {
3939
CreateExtensionInfo<VideoOrientation>(),
4040
CreateExtensionInfo<TransportSequenceNumber>(),
4141
CreateExtensionInfo<PlayoutDelayLimits>(),
42-
CreateExtensionInfo<VideoContentTypeExtension>(),
4342
};
4443

4544
// Because of kRtpExtensionNone, NumberOfExtension is 1 bigger than the actual

webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -215,33 +215,4 @@ bool PlayoutDelayLimits::Write(uint8_t* data,
215215
return true;
216216
}
217217

218-
// Video Content Type.
219-
//
220-
// E.g. default video or screenshare.
221-
//
222-
// 0 1
223-
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
224-
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
225-
// | ID | len=0 | Content type |
226-
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
227-
constexpr RTPExtensionType VideoContentTypeExtension::kId;
228-
constexpr uint8_t VideoContentTypeExtension::kValueSizeBytes;
229-
constexpr const char* VideoContentTypeExtension::kUri;
230-
231-
bool VideoContentTypeExtension::Parse(rtc::ArrayView<const uint8_t> data,
232-
VideoContentType* content_type) {
233-
if (data.size() == 1 &&
234-
data[0] < static_cast<uint8_t>(VideoContentType::TOTAL_CONTENT_TYPES)) {
235-
*content_type = static_cast<VideoContentType>(data[0]);
236-
return true;
237-
}
238-
return false;
239-
}
240-
241-
bool VideoContentTypeExtension::Write(uint8_t* data,
242-
VideoContentType content_type) {
243-
data[0] = static_cast<uint8_t>(content_type);
244-
return true;
245-
}
246-
247218
} // namespace webrtc

0 commit comments

Comments
 (0)