Add is_steady_state_refresh_frame_ to EncodedImage
The field is_steady_state_refresh_frame_ can be used to determine if the encoded video frame is a repeated frame that should be considered for QP convergence detection. Bug: chromium:328598314 Change-Id: Iffba0f9f70af8b41b9bde25cf40b08b77dad8021 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/355702 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42550}
This commit is contained in:
parent
769ef20309
commit
7235dd0e2b
@ -200,6 +200,16 @@ class RTC_EXPORT EncodedImage {
|
|||||||
at_target_quality_ = at_target_quality;
|
at_target_quality_ = at_target_quality;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Returns whether the frame that was encoded is a steady-state refresh frame
|
||||||
|
// intended to improve the visual quality.
|
||||||
|
bool IsSteadyStateRefreshFrame() const {
|
||||||
|
return is_steady_state_refresh_frame_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetIsSteadyStateRefreshFrame(bool refresh_frame) {
|
||||||
|
is_steady_state_refresh_frame_ = refresh_frame;
|
||||||
|
}
|
||||||
|
|
||||||
webrtc::VideoFrameType FrameType() const { return _frameType; }
|
webrtc::VideoFrameType FrameType() const { return _frameType; }
|
||||||
|
|
||||||
void SetFrameType(webrtc::VideoFrameType frame_type) {
|
void SetFrameType(webrtc::VideoFrameType frame_type) {
|
||||||
@ -260,6 +270,9 @@ class RTC_EXPORT EncodedImage {
|
|||||||
bool retransmission_allowed_ = true;
|
bool retransmission_allowed_ = true;
|
||||||
// True if the encoded image can be considered to be of target quality.
|
// True if the encoded image can be considered to be of target quality.
|
||||||
bool at_target_quality_ = false;
|
bool at_target_quality_ = false;
|
||||||
|
// True if the frame that was encoded is a steady-state refresh frame intended
|
||||||
|
// to improve the visual quality.
|
||||||
|
bool is_steady_state_refresh_frame_ = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user