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); |