OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/base/bit_reader_core.h" | 5 #include "media/base/bit_reader_core.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/port.h" | |
10 #include "base/sys_byteorder.h" | 9 #include "base/sys_byteorder.h" |
11 | 10 |
12 namespace { | 11 namespace { |
13 const int kRegWidthInBits = sizeof(uint64) * 8; | 12 const int kRegWidthInBits = sizeof(uint64) * 8; |
14 } | 13 } |
15 | 14 |
16 namespace media { | 15 namespace media { |
17 | 16 |
18 BitReaderCore::ByteStreamProvider::ByteStreamProvider() { | 17 BitReaderCore::ByteStreamProvider::ByteStreamProvider() { |
19 } | 18 } |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 nbits_next_ = 0; | 181 nbits_next_ = 0; |
183 return; | 182 return; |
184 } | 183 } |
185 | 184 |
186 nbits_ += free_nbits; | 185 nbits_ += free_nbits; |
187 reg_next_ <<= free_nbits; | 186 reg_next_ <<= free_nbits; |
188 nbits_next_ -= free_nbits; | 187 nbits_next_ -= free_nbits; |
189 } | 188 } |
190 | 189 |
191 } // namespace media | 190 } // namespace media |
OLD | NEW |