Index: webrtc/modules/video_coding/codecs/vp8/vp8_impl.h |
diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.h b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.h |
index 376dde1280819bb8fee321754bfd3fbf2a6a59ba..7b5e000d235870984efeffe3d0a4dae1c269d3d9 100644 |
--- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.h |
+++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.h |
@@ -135,7 +135,14 @@ class VP8DecoderImpl : public VP8Decoder { |
const char* ImplementationName() const override; |
+ struct DeblockParams { |
+ int max_level = 6; // Deblocking strength: [0, 16]. |
+ int degrade_qp = 1; // If QP value is below, start lowering |max_level|. |
+ int min_qp = 0; // If QP value is below, turn off deblocking. |
+ }; |
+ |
private: |
+ class QpSmoother; |
int ReturnFrame(const vpx_image_t* img, |
uint32_t timeStamp, |
int64_t ntp_time_ms, |
@@ -151,6 +158,8 @@ class VP8DecoderImpl : public VP8Decoder { |
int last_frame_width_; |
int last_frame_height_; |
bool key_frame_required_; |
+ DeblockParams deblock_; |
+ const std::unique_ptr<QpSmoother> qp_smoother_; |
}; |
} // namespace webrtc |