| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file contains an implementation of a VP9 bitstream parser. | 5 // This file contains an implementation of a VP9 bitstream parser. |
| 6 | 6 |
| 7 #include "media/filters/vp9_parser.h" | 7 #include "media/filters/vp9_parser.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/numerics/safe_conversions.h" | 13 #include "base/numerics/safe_conversions.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 const int kMaxLoopFilterLevel = 63; | 17 const int kMaxLoopFilterLevel = 63; |
| 17 | 18 |
| 18 // Helper function for Vp9Parser::ReadTiles. Defined as get_min_log2_tile_cols | 19 // Helper function for Vp9Parser::ReadTiles. Defined as get_min_log2_tile_cols |
| 19 // in spec. | 20 // in spec. |
| 20 int GetMinLog2TileCols(int sb64_cols) { | 21 int GetMinLog2TileCols(int sb64_cols) { |
| 21 const int kMaxTileWidthB64 = 64; | 22 const int kMaxTileWidthB64 = 64; |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 CLAMP_LF(level + loop_filter_.ref_deltas[type] * scale + | 683 CLAMP_LF(level + loop_filter_.ref_deltas[type] * scale + |
| 683 loop_filter_.mode_deltas[mode] * scale); | 684 loop_filter_.mode_deltas[mode] * scale); |
| 684 } | 685 } |
| 685 } | 686 } |
| 686 } | 687 } |
| 687 } | 688 } |
| 688 } | 689 } |
| 689 #undef CLAMP_LF | 690 #undef CLAMP_LF |
| 690 | 691 |
| 691 } // namespace media | 692 } // namespace media |
| OLD | NEW |