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

Unified Diff: webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h

Issue 2911013002: Add fuzzer for vp9 qp parser. (Closed)
Patch Set: rebase Created 3 years, 6 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 | « no previous file | webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h
diff --git a/webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h b/webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h
index ef6f268e51c487db28511cee277349ecb9b5d9e5..f529a66ec26ac11351a968568f4af33aadc27074 100644
--- a/webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h
+++ b/webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h
@@ -14,42 +14,10 @@
#include <stddef.h>
#include <stdint.h>
-#include "webrtc/base/bitbuffer.h"
-#include "webrtc/base/logging.h"
-
namespace webrtc {
namespace vp9 {
-class VP9BitReader : public ::rtc::BitBuffer {
- public:
- VP9BitReader(const uint8_t* buffer, size_t length_)
- : BitBuffer(buffer, length_) {}
-
- uint32_t GetBit() {
- uint32_t bit = 0;
- if (ReadBits(&bit, 1))
- return bit;
-
- LOG(LS_WARNING) << "Failed to get bit. Reached EOF.";
- return 0;
- }
-
- uint32_t GetValue(int bits) {
- uint32_t value = 0;
- if (ReadBits(&value, bits))
- return value;
-
- LOG(LS_WARNING) << "Failed to get bit. Reached EOF.";
- return 0;
- }
-
- int32_t GetSignedValue(int bits) {
- const int32_t value = static_cast<int>(GetValue(bits));
- return GetBit() ? -value : value;
- }
-};
-
// Gets the QP, QP range: [0, 255].
// Returns true on success, false otherwise.
bool GetQp(const uint8_t* buf, size_t length, int* qp);
« no previous file with comments | « no previous file | webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698