Mark EncodedImage::{Set, Is}AtTargetQuality() as deprecated

The "at target quality" attribute is no longer set to the encoded
image in VideoStreamEncoder, see
https://webrtc-review.googlesource.com/c/src/+/359640

Mark the attribute as deprecated to avoid new dependencies and prepare
for deletion.

Bug: chromium:359410061
Change-Id: Id5a98ec9d2068099cb75a70b849bbf1c77feabb3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/359660
Commit-Queue: Johannes Kron <kron@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42848}
This commit is contained in:
Johannes Kron 2024-08-15 11:32:32 +02:00 committed by WebRTC LUCI CQ
parent 5308652c73
commit 0b91688817

View File

@ -199,11 +199,11 @@ class RTC_EXPORT EncodedImage {
// Returns whether the encoded image can be considered to be of target
// quality.
bool IsAtTargetQuality() const { return at_target_quality_; }
[[deprecated]] bool IsAtTargetQuality() const { return at_target_quality_; }
// Sets that the encoded image can be considered to be of target quality to
// true or false.
void SetAtTargetQuality(bool at_target_quality) {
[[deprecated]] void SetAtTargetQuality(bool at_target_quality) {
at_target_quality_ = at_target_quality;
}