Searched refs:target_size (Results 1 - 25 of 70) sorted by relevance

123

/external/chromium_org/chrome/browser/thumbnails/
H A Dcontent_analysis.h30 // If non-empty |target_size| is given, the routine will use it to process the
32 // than 1 pixel after rescaling to |target_size|.
37 const gfx::Size& target_size,
47 // target size for retargeting in ConstrainedProfileSegmentation. |target_size|
52 gfx::Size AdjustClippingSizeToAspectRatio(const gfx::Size& target_size,
59 // to the desired aspect ratio (given by |target_size|) as reasonable.
62 const gfx::Size& target_size,
74 // |source_bitmap|. The |target_size| is used to estimate some computation
80 const gfx::Size& target_size,
H A Dcontent_analysis_unittest.cc285 gfx::Size target_size(212, 100);
290 target_size, image_size, computed_size);
294 EXPECT_GE(adjusted_size.width(), target_size.width());
295 EXPECT_GE(adjusted_size.height(), target_size.height());
296 EXPECT_LE(AspectDifference(target_size, adjusted_size),
297 AspectDifference(target_size, computed_size));
304 target_size, image_size, computed_size);
308 EXPECT_GE(adjusted_size.width(), target_size.width());
309 EXPECT_GE(adjusted_size.height(), target_size.height());
310 EXPECT_LE(AspectDifference(target_size, adjusted_siz
[all...]
H A Dcontent_based_thumbnailing_algorithm.h18 explicit ContentBasedThumbnailingAlgorithm(const gfx::Size& target_size);
23 gfx::Size* target_size) const OVERRIDE;
51 gfx::Size* target_size,
H A Dcontent_based_thumbnailing_algorithm.cc38 const gfx::Size& target_size)
39 : target_size_(target_size) {
40 DCHECK(!target_size.IsEmpty());
47 gfx::Size* target_size) const {
54 source_size, target_thumbnail_size, target_size, &clipping_method);
212 gfx::Size* target_size,
219 DCHECK(target_size);
225 *target_size = thumbnail_size;
230 *target_size = source_size;
234 target_size
37 ContentBasedThumbnailingAlgorithm( const gfx::Size& target_size) argument
209 GetClippingRect( const gfx::Size& source_size, const gfx::Size& thumbnail_size, gfx::Size* target_size, ClipResult* clip_result) argument
[all...]
H A Dcontent_based_thumbnailing_algorithm_unittest.cc67 gfx::Size target_size; local
71 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
75 EXPECT_EQ(source_size, target_size);
79 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
83 EXPECT_LT(target_size.width(), source_size.width());
84 EXPECT_LT(target_size.height(), source_size.height());
85 EXPECT_NEAR(static_cast<float>(target_size.width()) / target_size.height(),
90 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
H A Dthumbnailing_algorithm.h30 // |target_size| (the size of the target bitmap).
35 gfx::Size* target_size) const = 0;
H A Dsimple_thumbnail_crop.h19 explicit SimpleThumbnailCrop(const gfx::Size& target_size);
24 gfx::Size* target_size) const OVERRIDE;
H A Dcontent_analysis.cc141 int target_size,
148 if (size_for_threshold != target_size) {
154 if (std::abs(candidate_size - target_size) <
155 std::abs(candidate_size - *it - target_size)) {
161 if (std::abs(candidate_size - target_size) <
178 while (size_for_threshold > target_size) {
184 lead_it < result->end() && size_for_threshold > target_size;
201 while (size_for_threshold < target_size) {
206 lead_it < result->end() && size_for_threshold < target_size;
378 const gfx::Size& target_size,
135 ConstrainedProfileThresholding(const std::vector<float>& profile, const std::vector<int>& histogram, int current_clip_index, float current_threshold, const std::pair<float, float>& range, int size_for_threshold, int target_size, std::vector<bool>* result) argument
376 ExtractImageProfileInformation(const SkBitmap& input_bitmap, const gfx::Rect& area, const gfx::Size& target_size, bool apply_log, std::vector<float>* rows, std::vector<float>* columns) argument
475 AdjustClippingSizeToAspectRatio(const gfx::Size& target_size, const gfx::Size& image_size, const gfx::Size& computed_size) argument
577 ConstrainedProfileSegmentation(const std::vector<float>& row_profile, const std::vector<float>& column_profile, const gfx::Size& target_size, std::vector<bool>* included_rows, std::vector<bool>* included_columns) argument
720 CreateRetargetedThumbnailImage( const SkBitmap& source_bitmap, const gfx::Size& target_size, float kernel_sigma) argument
[all...]
H A Dsimple_thumbnail_crop.cc23 SimpleThumbnailCrop::SimpleThumbnailCrop(const gfx::Size& target_size) argument
24 : target_size_(target_size) {
25 DCHECK(!target_size.IsEmpty());
32 gfx::Size* target_size) const {
36 *target_size = GetCopySizeForThumbnail(scale_factor, target_size_);
/external/chromium_org/sdch/open-vcdiff/src/
H A Dvcdiffengine.cc136 size_t target_size,
139 if (target_size != static_cast<size_t>(coder->target_length())) {
141 "original target size (" << target_size
150 size_t target_size,
158 if (target_size == 0) {
162 if (target_size < static_cast<size_t>(BlockHash::kBlockSize)) {
163 AddUnmatchedRemainder(target_data, target_size, coder);
164 FinishEncoding(target_size, diff, coder);
173 target_size,
180 const char* const target_end = target_data + target_size;
135 FinishEncoding( size_t target_size, OutputStringInterface* diff, CodeTableWriterInterface* coder) const argument
149 EncodeInternal(const char* target_data, size_t target_size, OutputStringInterface* diff, CodeTableWriterInterface* coder) const argument
234 Encode(const char* target_data, size_t target_size, bool look_for_target_matches, OutputStringInterface* diff, CodeTableWriterInterface* coder) const argument
[all...]
H A Dvcdiffengine.h72 size_t target_size,
88 size_t target_size,
107 void FinishEncoding(size_t target_size,
H A Dblockhash.h171 size_t target_size,
297 size_t target_size,
/external/chromium_org/ui/snapshot/
H A Dsnapshot_async.cc29 const gfx::Size& target_size) {
32 target_size.width(),
33 target_size.height(),
64 const gfx::Size& target_size,
79 base::Bind(ScaleBitmap, *result->TakeBitmap(), target_size),
28 ScaleBitmap(const SkBitmap& input_bitmap, const gfx::Size& target_size) argument
62 ScaleCopyOutputResult( const GrabWindowSnapshotAsyncCallback& callback, const gfx::Size& target_size, scoped_refptr<base::TaskRunner> background_task_runner, scoped_ptr<cc::CopyOutputResult> result) argument
H A Dsnapshot_async.h27 const gfx::Size& target_size,
H A Dsnapshot_aura.cc46 const gfx::Size& target_size,
53 target_size,
43 GrabWindowSnapshotAndScaleAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, const gfx::Size& target_size, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncCallback& callback) argument
H A Dsnapshot_android.cc62 const gfx::Size& target_size,
69 target_size,
59 GrabWindowSnapshotAndScaleAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, const gfx::Size& target_size, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncCallback& callback) argument
/external/chromium_org/ash/desktop_background/
H A Dwallpaper_resizer_unittest.cc67 const gfx::Size& target_size,
70 resizer.reset(new WallpaperResizer(image, target_size, layout));
126 gfx::Size target_size = gfx::Size(kTargetWidth, kTargetHeight); local
127 gfx::ImageSkia center = Resize(image, target_size, WALLPAPER_LAYOUT_CENTER);
129 gfx::ImageSkia center_cropped = Resize(image, target_size,
132 gfx::ImageSkia stretch = Resize(image, target_size, WALLPAPER_LAYOUT_STRETCH);
134 gfx::ImageSkia tile = Resize(image, target_size, WALLPAPER_LAYOUT_TILE);
66 Resize(const gfx::ImageSkia& image, const gfx::Size& target_size, WallpaperLayout layout) argument
H A Dwallpaper_resizer.cc27 // Resizes |orig_bitmap| to |target_size| using |layout| and stores the
30 const gfx::Size& target_size,
38 const int new_width = target_size.width();
39 const int new_height = target_size.height();
102 const gfx::Size& target_size,
106 target_size_(target_size),
29 Resize(SkBitmap orig_bitmap, const gfx::Size& target_size, WallpaperLayout layout, SkBitmap* resized_bitmap_out) argument
101 WallpaperResizer(const gfx::ImageSkia& image, const gfx::Size& target_size, WallpaperLayout layout) argument
H A Dwallpaper_resizer.h21 // Stores the current wallpaper data and resize it to |target_size| if needed.
30 const gfx::Size& target_size,
/external/chromium_org/chrome/browser/chromeos/login/users/avatar/
H A Duser_image_loader.cc98 const int target_size = it->second.pixels_per_side; local
104 if (target_size > 0) {
112 if (pixels_per_side > target_size) {
117 target_size,
118 target_size);
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
H A Dpreamble_patcher.h541 // @param target_size Size of the target buffer.
548 unsigned int target_size);
576 // @param target_size Size of the target buffer.
583 unsigned int target_size);
599 // @param target_size Size of the target buffer.
606 unsigned int target_size);
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
H A Dpreamble_patcher.h541 // @param target_size Size of the target buffer.
548 unsigned int target_size);
576 // @param target_size Size of the target buffer.
583 unsigned int target_size);
599 // @param target_size Size of the target buffer.
606 unsigned int target_size);
/external/iproute2/include/linux/netfilter/
H A Dx_tables.h36 __u16 target_size; member in struct:xt_entry_target::__anon22305::__anon22306
43 __u16 target_size; member in struct:xt_entry_target::__anon22305::__anon22307
50 __u16 target_size; member in union:xt_entry_target::__anon22305
59 .target_size = XT_ALIGN(__size), \
/external/iptables/include/linux/netfilter/
H A Dx_tables.h36 __u16 target_size; member in struct:xt_entry_target::__anon22576::__anon22577
43 __u16 target_size; member in struct:xt_entry_target::__anon22576::__anon22578
50 __u16 target_size; member in union:xt_entry_target::__anon22576
59 .target_size = XT_ALIGN(__size), \
/external/kernel-headers/original/uapi/linux/netfilter/
H A Dx_tables.h36 __u16 target_size; member in struct:xt_entry_target::__anon23203::__anon23204
43 __u16 target_size; member in struct:xt_entry_target::__anon23203::__anon23205
50 __u16 target_size; member in union:xt_entry_target::__anon23203
59 .target_size = XT_ALIGN(__size), \

Completed in 692 milliseconds

123