Chromium Code Reviews| 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 |
| + |