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

Side by Side Diff: media/filters/vp9_parser.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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 unified diff | Download patch
« no previous file with comments | « media/filters/vp8_parser_unittest.cc ('k') | media/filters/vp9_parser_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/filters/vp8_parser_unittest.cc ('k') | media/filters/vp9_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698