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

Unified Diff: content/common/gpu/media/h264_bit_reader.h

Issue 10710002: Add HE AAC support to ISO BMFF. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove unused entry from media.gyp Created 8 years, 5 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 | content/common/gpu/media/h264_bit_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/h264_bit_reader.h
diff --git a/content/common/gpu/media/h264_bit_reader.h b/content/common/gpu/media/h264_bit_reader.h
new file mode 100644
index 0000000000000000000000000000000000000000..652c869a5dd341be17406bb2a66a193b7dcd7a37
--- /dev/null
+++ b/content/common/gpu/media/h264_bit_reader.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_GPU_MEDIA_H264_BIT_READER_H_
+#define CONTENT_COMMON_GPU_MEDIA_H264_BIT_READER_H_
+
+#include "base/compiler_specific.h"
+#include "media/base/bit_reader.h"
+
+namespace content {
+
+// A class to provide bit-granularity reading of H.264 streams.
+// This class takes into account H.264 stream-specific constraints, such as
+// skipping emulation-prevention bytes and stop bits. See spec for more
+// details.
+class H264BitReader : public media::BitReader {
+ public:
+ H264BitReader();
+ virtual ~H264BitReader();
+
+ private:
+ // This function handles the H.264 escape sequence and stop bit.
+ virtual void UpdateCurrByte() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(H264BitReader);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_GPU_MEDIA_H264_BIT_READER_H_
« no previous file with comments | « no previous file | content/common/gpu/media/h264_bit_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698