Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: webrtc/modules/video_coding/codecs/vp8/vp8_impl.h

Issue 2970923002: vp8_impl.cc: Make it possible to base postproc deblocking level for arm on qp. (Closed)
Patch Set: address comments Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698