Searched refs:crop_rect (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/image/ |
D | sample_distorted_bounding_box_op.cc | 118 SimplePhilox* random, Rectangle* crop_rect) { in GenerateRandomCrop() argument 199 crop_rect->min_x_ = x; in GenerateRandomCrop() 200 crop_rect->min_y_ = y; in GenerateRandomCrop() 201 crop_rect->max_x_ = x + width; in GenerateRandomCrop() 202 crop_rect->max_y_ = y + height; in GenerateRandomCrop() 354 Rectangle crop_rect; in DoCompute() local 363 sample_aspect_ratio, &random, &crop_rect)) { in DoCompute() 364 if (SatisfiesOverlapConstraints(crop_rect, min_object_covered_val, in DoCompute() 373 crop_rect = image_rect; in DoCompute() 377 const int target_width = crop_rect.max_x_ - crop_rect.min_x_; in DoCompute() [all …]
|
/external/skqp/tests/ |
D | ImageFilterTest.cpp | 1970 SkIRect crop_rect = SkIRect::MakeXYWH(-111, -222, 333, 444); in test_arithmetic_combinations() local 1971 SkImageFilter::CropRect crop(SkRect::Make(crop_rect)); in test_arithmetic_combinations() 1974 test_arithmetic_bounds(reporter, 0, 0, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1976 test_arithmetic_bounds(reporter, 0, 0, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1978 test_arithmetic_bounds(reporter, 0, v, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1980 test_arithmetic_bounds(reporter, 0, v, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1982 test_arithmetic_bounds(reporter, v, 0, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1984 test_arithmetic_bounds(reporter, v, 0, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1986 test_arithmetic_bounds(reporter, v, v, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations() 1988 test_arithmetic_bounds(reporter, v, v, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
|
/external/skia/src/gpu/geometry/ |
D | GrQuadUtils.cpp | 149 static GrQuadAAFlags crop_rect(const SkRect& clipDevRect, float x[4], float y[4], in crop_rect() function 553 clippedEdges = crop_rect(cropRect, quad->fDevice.xs(), quad->fDevice.ys(), in CropToRect() 561 clippedEdges = crop_rect(cropRect, quad->fDevice.xs(), quad->fDevice.ys(), in CropToRect()
|