Index: media/mpeg2/mpeg2ts_crc.h |
diff --git a/media/mpeg2/mpeg2ts_crc.h b/media/mpeg2/mpeg2ts_crc.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ff278ad8162a87a023e2cff0b122541e78c0dc88 |
--- /dev/null |
+++ b/media/mpeg2/mpeg2ts_crc.h |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2013 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. |
+ |
+#include "base/basictypes.h" |
+ |
+namespace media { |
+namespace mpeg2ts { |
+ |
+class Mpeg2TsCrc { |
+ public: |
+ Mpeg2TsCrc(); |
+ |
+ // Update the CRC with 8 bits of |data|. |
+ void Update(uint8 data); |
+ |
+ bool IsValid(); |
+ |
+ private: |
+ uint32 crc_; |
+}; |
+ |
+} // namespace mpeg2ts |
+} // namespace media |
+ |