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

Unified Diff: media/filters/vp9_raw_bits_reader.h

Issue 2133993002: Parse VP9 compressed header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reset curr_frame_info_ when Reset Created 4 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 | « media/filters/vp9_parser_unittest.cc ('k') | media/filters/vp9_raw_bits_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/vp9_raw_bits_reader.h
diff --git a/media/filters/vp9_raw_bits_reader.h b/media/filters/vp9_raw_bits_reader.h
index 3dd263b05295bcb87c592409c54ad0f4f49ae83f..e5dbf46dcbb8e178d93354cb4dfd7e1b7f2d27bf 100644
--- a/media/filters/vp9_raw_bits_reader.h
+++ b/media/filters/vp9_raw_bits_reader.h
@@ -48,6 +48,10 @@ class MEDIA_EXPORT Vp9RawBitsReader {
// If the read goes beyond the end of buffer, the return value is undefined.
int ReadSignedLiteral(int bits);
+ // Consumes trailing bits up to next byte boundary. Returns true if no
+ // trailing bits or they are all zero.
+ bool ConsumeTrailingBits();
+
private:
std::unique_ptr<BitReader> reader_;
« no previous file with comments | « media/filters/vp9_parser_unittest.cc ('k') | media/filters/vp9_raw_bits_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698