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

Unified Diff: media/filters/h264_bit_reader.h

Issue 119153002: Move H264Parser and H264BitReader to media/filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « content/content_tests.gypi ('k') | media/filters/h264_bit_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/h264_bit_reader.h
diff --git a/content/common/gpu/media/h264_bit_reader.h b/media/filters/h264_bit_reader.h
similarity index 87%
rename from content/common/gpu/media/h264_bit_reader.h
rename to media/filters/h264_bit_reader.h
index a2d32b5c9cc8f994f46f20f4f4aed93d9d4ffbbb..1042ed744cc78570d89478aa887fc1e4bc61f2ed 100644
--- a/content/common/gpu/media/h264_bit_reader.h
+++ b/media/filters/h264_bit_reader.h
@@ -4,21 +4,21 @@
//
// This file contains an implementation of an H264 Annex-B video stream parser.
-#ifndef CONTENT_COMMON_GPU_MEDIA_H264_BIT_READER_H_
-#define CONTENT_COMMON_GPU_MEDIA_H264_BIT_READER_H_
+#ifndef MEDIA_FILTERS_H264_BIT_READER_H_
+#define MEDIA_FILTERS_H264_BIT_READER_H_
#include <sys/types.h>
#include "base/basictypes.h"
-#include "content/common/content_export.h"
+#include "media/base/media_export.h"
-namespace content {
+namespace media {
// A class to provide bit-granularity reading of H.264 streams.
// This is not a generic bit reader class, as it takes into account
// H.264 stream-specific constraints, such as skipping emulation-prevention
// bytes and stop bits. See spec for more details.
-class CONTENT_EXPORT H264BitReader {
+class MEDIA_EXPORT H264BitReader {
public:
H264BitReader();
~H264BitReader();
@@ -35,7 +35,7 @@ class CONTENT_EXPORT H264BitReader {
// |num_bits| may be 1-32, inclusive.
// Return false if the given number of bits cannot be read (not enough
// bits in the stream), true otherwise.
- bool ReadBits(int num_bits, int *out);
+ bool ReadBits(int num_bits, int* out);
// Return the number of bits left in the stream.
off_t NumBitsLeft();
@@ -74,6 +74,6 @@ class CONTENT_EXPORT H264BitReader {
DISALLOW_COPY_AND_ASSIGN(H264BitReader);
};
-} // namespace content
+} // namespace media
-#endif // CONTENT_COMMON_GPU_MEDIA_H264_BIT_READER_H_
+#endif // MEDIA_FILTERS_H264_BIT_READER_H_
« no previous file with comments | « content/content_tests.gypi ('k') | media/filters/h264_bit_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698