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

Unified Diff: webrtc/base/bitbuffer.h

Issue 1314473008: H264 bitstream parser. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add basic unittests Created 5 years, 3 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/base/bitbuffer.cc » ('j') | webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/bitbuffer.h
diff --git a/webrtc/base/bitbuffer.h b/webrtc/base/bitbuffer.h
index 7202675a44c7348c79deb9b7ccebdc81000b19d4..8ea044e04129dd7bea287d56c81d886ccc2a42fd 100644
--- a/webrtc/base/bitbuffer.h
+++ b/webrtc/base/bitbuffer.h
@@ -60,6 +60,10 @@ class BitBuffer {
// Returns false if there isn't enough data left for the specified type, or if
// the value wouldn't fit in a uint32_t.
bool ReadExponentialGolomb(uint32_t* val);
+ // Reads signed exponential golomb values at the current offset. Signed
+ // exponential golomb values are just the unsigned values mapped to the
+ // sequence 0, 1, -1, 2, -2, etc. in order.
+ bool ReadSignedExponentialGolomb(int32_t* val);
// Moves current position |byte_count| bytes forward. Returns false if
// there aren't enough bytes left in the buffer.
« no previous file with comments | « no previous file | webrtc/base/bitbuffer.cc » ('j') | webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698