| 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> |
| 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 10 #include "base/numerics/safe_conversions.h" | 12 #include "base/numerics/safe_conversions.h" |
| 11 | 13 |
| 12 namespace { | 14 namespace { |
| 13 | 15 |
| 14 const int kMaxLoopFilterLevel = 63; | 16 const int kMaxLoopFilterLevel = 63; |
| 15 | 17 |
| 16 // Helper function for Vp9Parser::ReadTiles. Defined as get_min_log2_tile_cols | 18 // Helper function for Vp9Parser::ReadTiles. Defined as get_min_log2_tile_cols |
| 17 // in spec. | 19 // in spec. |
| 18 int GetMinLog2TileCols(int sb64_cols) { | 20 int GetMinLog2TileCols(int sb64_cols) { |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 CLAMP_LF(level + loop_filter_.ref_deltas[type] * scale + | 682 CLAMP_LF(level + loop_filter_.ref_deltas[type] * scale + |
| 681 loop_filter_.mode_deltas[mode] * scale); | 683 loop_filter_.mode_deltas[mode] * scale); |
| 682 } | 684 } |
| 683 } | 685 } |
| 684 } | 686 } |
| 685 } | 687 } |
| 686 } | 688 } |
| 687 #undef CLAMP_LF | 689 #undef CLAMP_LF |
| 688 | 690 |
| 689 } // namespace media | 691 } // namespace media |
| OLD | NEW |