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

Unified Diff: media/mpeg2/mpeg2ts_crc.h

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
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..d1c9b74422d9dcac9d3f6387474f436ecb1997b7
--- /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 using the LSB of |data|.
acolwell GONE FROM CHROMIUM 2013/09/05 18:29:10 nit: s/LSB/LSb/ since you are referring to the lea
damienv1 2013/09/09 23:29:45 I am referring to bits. Since the signature of thi
+ void Update(uint32 data, int nbits);
+
+ bool IsValid();
+
+ private:
+ uint32 crc_;
+};
+
+} // namespace mpeg2ts
+} // namespace media
+

Powered by Google App Engine
This is Rietveld 408576698