Remove deprecated TransformableVideoFrame::GetAdditionalData
It was marked deprecated on Feb 9th, ~3 weeks ago. Bug: chromium:1414370 Change-Id: I251b91984ca9a958e221f6eaf01c63b05c5a7a48 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/295506 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Tony Herre <herre@google.com> Cr-Commit-Position: refs/heads/main@{#39422}
This commit is contained in:
parent
c65f5fd90f
commit
a6135bcd43
@ -58,14 +58,6 @@ class TransformableVideoFrameInterface : public TransformableFrameInterface {
|
||||
virtual ~TransformableVideoFrameInterface() = default;
|
||||
virtual bool IsKeyFrame() const = 0;
|
||||
|
||||
// Returns data needed in the frame transformation logic; for example,
|
||||
// when the transformation applied to the frame is encryption/decryption, the
|
||||
// additional data holds the serialized generic frame descriptor extension
|
||||
// calculated in webrtc::RtpDescriptorAuthentication.
|
||||
// This has been superseeded by GetMetadata() and will be removed shortly.
|
||||
[[deprecated("https://crbug.com/1414370")]] virtual std::vector<uint8_t>
|
||||
GetAdditionalData() const = 0;
|
||||
|
||||
// The returned const ref may become invalid due to later SetMetadata calls,
|
||||
// or other modifications. Use Metadata() instead.
|
||||
virtual const VideoFrameMetadata& GetMetadata() const = 0;
|
||||
|
||||
@ -26,7 +26,6 @@ class MockTransformableVideoFrame
|
||||
MOCK_METHOD(uint32_t, GetTimestamp, (), (const, override));
|
||||
MOCK_METHOD(uint32_t, GetSsrc, (), (const, override));
|
||||
MOCK_METHOD(bool, IsKeyFrame, (), (const, override));
|
||||
MOCK_METHOD(std::vector<uint8_t>, GetAdditionalData, (), (const, override));
|
||||
MOCK_METHOD(const webrtc::VideoFrameMetadata&,
|
||||
GetMetadata,
|
||||
(),
|
||||
|
||||
@ -66,10 +66,6 @@ class TransformableVideoSenderFrame : public TransformableVideoFrameInterface {
|
||||
return frame_type_ == VideoFrameType::kVideoFrameKey;
|
||||
}
|
||||
|
||||
std::vector<uint8_t> GetAdditionalData() const override {
|
||||
return RtpDescriptorAuthentication(header_);
|
||||
}
|
||||
|
||||
const VideoFrameMetadata& GetMetadata() const override { return metadata_; }
|
||||
|
||||
VideoFrameMetadata Metadata() const override {
|
||||
|
||||
@ -51,10 +51,6 @@ class TransformableVideoReceiverFrame
|
||||
return frame_->FrameType() == VideoFrameType::kVideoFrameKey;
|
||||
}
|
||||
|
||||
std::vector<uint8_t> GetAdditionalData() const override {
|
||||
return RtpDescriptorAuthentication(frame_->GetRtpVideoHeader());
|
||||
}
|
||||
|
||||
const VideoFrameMetadata& GetMetadata() const override { return metadata_; }
|
||||
|
||||
VideoFrameMetadata Metadata() const override { return metadata_; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user