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

Unified Diff: media/base/bit_reader.h

Issue 14495010: Add UMA stats for audio/video containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | media/base/bit_reader.cc » ('j') | media/base/bit_reader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/bit_reader.h
diff --git a/media/base/bit_reader.h b/media/base/bit_reader.h
index 22493126d7fa400fa91d4d5491afc583ddca4656..8c15891c91576a6ce5e250088c71aae06e353a8d 100644
--- a/media/base/bit_reader.h
+++ b/media/base/bit_reader.h
@@ -37,6 +37,12 @@ class MEDIA_EXPORT BitReader {
return ret;
}
+ // Skip |num_bits| next bits from stream. Return false if the given number of
+ // bits cannot be skipped (not enough bits in the stream), true otherwise.
+ // When return false, the stream will enter a state where further ReadBits/
+ // SkipBits operations will always return false unless |num_bits| is 0.
+ bool SkipBits(int num_bits);
+
// Returns the number of bits available for reading.
int bits_available() const;
« no previous file with comments | « no previous file | media/base/bit_reader.cc » ('j') | media/base/bit_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698