| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ | 5 #ifndef CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ |
| 6 #define CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ | 6 #define CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 SkBitmap ComputeDecimatedImage(const SkBitmap& bitmap, | 50 SkBitmap ComputeDecimatedImage(const SkBitmap& bitmap, |
| 51 const std::vector<bool>& rows, | 51 const std::vector<bool>& rows, |
| 52 const std::vector<bool>& columns); | 52 const std::vector<bool>& columns); |
| 53 | 53 |
| 54 // Creates a new bitmap which contains only 'interesting' areas of | 54 // Creates a new bitmap which contains only 'interesting' areas of |
| 55 // |source_bitmap|. The |target_size| is used to estimate some computation | 55 // |source_bitmap|. The |target_size| is used to estimate some computation |
| 56 // parameters, but the resulting bitmap will not necessarily be of that size. | 56 // parameters, but the resulting bitmap will not necessarily be of that size. |
| 57 // |kernel_sigma| defines the degree of image smoothing in gradient computation. | 57 // |kernel_sigma| defines the degree of image smoothing in gradient computation. |
| 58 // For a natural-sized (not shrunk) screenshot at 96 DPI and regular font size | 58 // For a natural-sized (not shrunk) screenshot at 96 DPI and regular font size |
| 59 // 5.0 was determined to be a good value. | 59 // 5.0 was determined to be a good value. |
| 60 SkBitmap CreateRetargettedThumbnailImage(const SkBitmap& source_bitmap, | 60 SkBitmap CreateRetargetedThumbnailImage(const SkBitmap& source_bitmap, |
| 61 const gfx::Size& target_size, | 61 const gfx::Size& target_size, |
| 62 float kernel_sigma); | 62 float kernel_sigma); |
| 63 | 63 |
| 64 } // namespace thumbnailing_utils | 64 } // namespace thumbnailing_utils |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ | 66 #endif // CHROME_BROWSER_THUMBNAILS_CONTENT_ANALYSIS_H_ |
| OLD | NEW |