Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 25 of 95) sorted by relevance

1234

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_CROP.c31 struct v4l2_crop crop; in do_get_crop() local
33 memset(&crop, 0xff, sizeof(crop)); in do_get_crop()
34 crop.type = type; in do_get_crop()
35 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in do_get_crop()
61 struct v4l2_crop crop; in do_get_crop_invalid() local
63 memset(&crop, 0xff, sizeof(crop)); in do_get_crop_invalid()
64 crop.type = type; in do_get_crop_invalid()
65 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in do_get_crop_invalid()
95 struct v4l2_crop crop; in test_VIDIOC_G_CROP_NULL() local
97 memset(&crop, 0, sizeof(crop)); in test_VIDIOC_G_CROP_NULL()
[all …]
/external/libxcam/modules/ocl/
Dcl_image_360_stitch.cpp173 stitch_info.crop[0].left = 96; in get_default_stitch_info()
174 stitch_info.crop[0].right = 96; in get_default_stitch_info()
175 stitch_info.crop[0].top = 0; in get_default_stitch_info()
176 stitch_info.crop[0].bottom = 0; in get_default_stitch_info()
177 stitch_info.crop[1].left = 96; in get_default_stitch_info()
178 stitch_info.crop[1].right = 96; in get_default_stitch_info()
179 stitch_info.crop[1].top = 0; in get_default_stitch_info()
180 stitch_info.crop[1].bottom = 0; in get_default_stitch_info()
200 stitch_info.crop[0].left = 0; in get_default_stitch_info()
201 stitch_info.crop[0].right = 0; in get_default_stitch_info()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DMotionBlurComponent.java35 public int[] crop = new int[4]; field in MotionBlurComponent.BlurRecord
77 mHistory[mCurrentStep].crop[0] = drawableCrop[0]; in update()
78 mHistory[mCurrentStep].crop[1] = drawableCrop[1]; in update()
79 mHistory[mCurrentStep].crop[2] = drawableCrop[2]; in update()
80 mHistory[mCurrentStep].crop[3] = drawableCrop[3]; in update()
100 stepImage.setCrop(record.crop[0], record.crop[1], record.crop[2], -record.crop[3]); in update()
DOpenGLSystem.java61 public static final void setTextureCrop(int[] crop) { in setTextureCrop() argument
63 cropSignature = (crop[0] + crop[1]) << 16; in setTextureCrop()
64 cropSignature |= crop[2] + crop[3]; in setTextureCrop()
68 crop, 0); in setTextureCrop()
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_unittest.cc141 v4l2_crop crop; in TestSetCrop() local
142 memset(&crop, 0, sizeof(crop)); in TestSetCrop()
143 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in TestSetCrop()
144 crop.c = cropcap.defrect; in TestSetCrop()
145 v4l2_dev.SetCrop(&crop); in TestSetCrop()
158 v4l2_crop crop; in TestGetCrop() local
159 memset(&crop, 0, sizeof(crop)); in TestGetCrop()
160 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in TestGetCrop()
161 v4l2_dev.GetCrop(&crop); in TestGetCrop()
Dmedia_v4l2_device.cc908 bool V4L2Device::GetCrop(v4l2_crop* crop) { in GetCrop() argument
909 if (-1 == DoIoctl(VIDIOC_G_CROP, crop)) { in GetCrop()
914 crop->c.left, crop->c.top, in GetCrop()
915 crop->c.width, crop->c.height); in GetCrop()
919 bool V4L2Device::SetCrop(v4l2_crop* crop) { in SetCrop() argument
920 if (-1 == DoIoctl(VIDIOC_S_CROP, crop)) { in SetCrop()
Dmedia_v4l2_device.h80 bool GetCrop(v4l2_crop* crop);
81 bool SetCrop(v4l2_crop* crop);
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_crop_test.py36 crop = random_ops.random_crop(value, shape).eval()
37 self.assertAllEqual(crop, value)
47 crop = random_ops.random_crop(value, size=target)
49 y = self.evaluate(crop)
64 crop = random_ops.random_crop(value, single, seed=7)
67 y = self.evaluate(crop)
/external/libjpeg-turbo/
Dtjexampletest.in98 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -flip horizontal -trim -outfile $OUTDIR/${basename}_${sam…
99 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -flip vertical -trim -outfile $OUTDIR/${basename}_${samp}…
100 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -transpose -trim -outfile $OUTDIR/${basename}_${samp}_tra…
101 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -transverse -trim -outfile $OUTDIR/${basename}_${samp}_tr…
102 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 90 -trim -outfile $OUTDIR/${basename}_${samp}_rot…
103 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 180 -trim -outfile $OUTDIR/${basename}_${samp}_ro…
104 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 270 -trim -outfile $OUTDIR/${basename}_${samp}_ro…
108 …DIR/${basename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.jpg -$xform -crop 70x60+16+16
111 …DIR/${basename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.bmp -$xform -crop 70x60+16+16
117 …ename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.bmp -$xform -crop 70x60+16+16 -fastup…
[all …]
Dtjexampletest.java.in100 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -flip horizontal -trim -outfile $OUTDIR/${basename}_${sam…
101 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -flip vertical -trim -outfile $OUTDIR/${basename}_${samp}…
102 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -transpose -trim -outfile $OUTDIR/${basename}_${samp}_tra…
103 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -transverse -trim -outfile $OUTDIR/${basename}_${samp}_tr…
104 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 90 -trim -outfile $OUTDIR/${basename}_${samp}_rot…
105 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 180 -trim -outfile $OUTDIR/${basename}_${samp}_ro…
106 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 270 -trim -outfile $OUTDIR/${basename}_${samp}_ro…
110 …DIR/${basename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.jpg -$xform -crop 70x60+16+16
113 …DIR/${basename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.bmp -$xform -crop 70x60+16+16
119 …ename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.bmp -$xform -crop 70x60+16+16 -fastup…
[all …]
Ddjpeg.c99 boolean skip, crop; variable
209 crop = FALSE; in parse_switches()
414 crop = TRUE; in parse_switches()
717 } else if (crop) { in main()
/external/webrtc/talk/media/base/
Dvideoframe.h179 bool crop) const;
186 bool crop) const;
193 bool crop) const;
/external/autotest/client/cros/image_comparison/
Drgb_image_comparer.py61 golden_image = golden_image.crop(box)
62 test_image = test_image.crop(box)
Dpdiff_image_comparer.py46 Image.open(golden_img_path).crop(box).save(tmp_golden_img_path)
47 Image.open(test_img_path).crop(box).save(tmp_test_img_path)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_RandomCrop.pbtxt35 summary: "Randomly crop `image`."
37 `size` is a 1-D int64 tensor with 2 elements representing the crop height and
Dapi_def_DecodeAndCropJpeg.pbtxt12 1-D. The crop window: [crop_y, crop_x, crop_height, crop_width].
83 It is equivalent to a combination of decode and crop, but much faster by only
/external/piex/src/
Dtiff_parser.cc612 std::vector<std::uint32_t> crop(2); in GetFullCropDimension() local
613 if (tiff_directory.Get(kExifTagDefaultCropSize, &crop)) { in GetFullCropDimension()
614 if (crop.size() == 2 && crop[0] > 0 && crop[1] > 0) { in GetFullCropDimension()
615 *width = crop[0]; in GetFullCropDimension()
616 *height = crop[1]; in GetFullCropDimension()
/external/drm_hwcomposer/
Dhwcutils.cpp144 void DrmHwcLayer::SetSourceCrop(hwc_frect_t const &crop) { in SetSourceCrop() argument
145 source_crop = crop; in SetSourceCrop()
/external/ImageMagick/MagickCore/
Dtransform.c805 crop; in CropImageToTiles() local
840 crop.y=(ssize_t) MagickRound((double) (offset.y- in CropImageToTiles()
843 crop.height=(size_t) MagickRound((double) (offset.y+ in CropImageToTiles()
848 crop.y=(ssize_t) MagickRound((double) (offset.y- in CropImageToTiles()
851 crop.height=(size_t) MagickRound((double) in CropImageToTiles()
854 crop.height-=crop.y; in CropImageToTiles()
855 crop.y+=image->page.y; in CropImageToTiles()
860 crop.x=(ssize_t) MagickRound((double) (offset.x- in CropImageToTiles()
863 crop.width=(size_t) MagickRound((double) (offset.x+ in CropImageToTiles()
868 crop.x=(ssize_t) MagickRound((double) (offset.x- in CropImageToTiles()
[all …]
/external/skqp/tests/
DImageFilterTest.cpp1930 const SkImageFilter::CropRect* crop, const SkIRect& expected) { in test_arithmetic_bounds() argument
1932 SkArithmeticImageFilter::Make(k1, k2, k3, k4, false, background, foreground, crop)); in test_arithmetic_bounds()
1971 SkImageFilter::CropRect crop(SkRect::Make(crop_rect)); in test_arithmetic_combinations() local
1972 test_arithmetic_bounds(reporter, 0, 0, 0, 0, background, foreground, &crop, in test_arithmetic_combinations()
1974 test_arithmetic_bounds(reporter, 0, 0, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
1975 test_arithmetic_bounds(reporter, 0, 0, v, 0, background, foreground, &crop, background_rect); in test_arithmetic_combinations()
1976 test_arithmetic_bounds(reporter, 0, 0, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
1977 test_arithmetic_bounds(reporter, 0, v, 0, 0, background, foreground, &crop, foreground_rect); in test_arithmetic_combinations()
1978 test_arithmetic_bounds(reporter, 0, v, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
1979 test_arithmetic_bounds(reporter, 0, v, v, 0, background, foreground, &crop, union_rect); in test_arithmetic_combinations()
[all …]
/external/skia/tests/
DImageFilterTest.cpp1928 const SkImageFilter::CropRect* crop, const SkIRect& expected) { in test_arithmetic_bounds() argument
1930 SkArithmeticImageFilter::Make(k1, k2, k3, k4, false, background, foreground, crop)); in test_arithmetic_bounds()
1969 SkImageFilter::CropRect crop(SkRect::Make(crop_rect)); in test_arithmetic_combinations() local
1970 test_arithmetic_bounds(reporter, 0, 0, 0, 0, background, foreground, &crop, in test_arithmetic_combinations()
1972 test_arithmetic_bounds(reporter, 0, 0, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
1973 test_arithmetic_bounds(reporter, 0, 0, v, 0, background, foreground, &crop, background_rect); in test_arithmetic_combinations()
1974 test_arithmetic_bounds(reporter, 0, 0, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
1975 test_arithmetic_bounds(reporter, 0, v, 0, 0, background, foreground, &crop, foreground_rect); in test_arithmetic_combinations()
1976 test_arithmetic_bounds(reporter, 0, v, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
1977 test_arithmetic_bounds(reporter, 0, v, v, 0, background, foreground, &crop, union_rect); in test_arithmetic_combinations()
[all …]
/external/skqp/bench/
DBlurImageFilterBench.cpp106 const SkImageFilter::CropRect* crop = in onDraw() local
109 paint.setImageFilter(SkBlurImageFilter::Make(fSigmaX, fSigmaY, std::move(input), crop)); in onDraw()
/external/skia/bench/
DBlurImageFilterBench.cpp106 const SkImageFilter::CropRect* crop = in onDraw() local
109 paint.setImageFilter(SkBlurImageFilter::Make(fSigmaX, fSigmaY, std::move(input), crop)); in onDraw()
/external/ImageMagick/coders/
Dwmf.c673 if (bmp_draw->crop.x || bmp_draw->crop.y || in ipa_bmp_draw()
674 (bmp_draw->crop.w != bmp_draw->bmp.width) || in ipa_bmp_draw()
675 (bmp_draw->crop.h != bmp_draw->bmp.height)) in ipa_bmp_draw()
684 crop_info.x = bmp_draw->crop.x; in ipa_bmp_draw()
685 crop_info.y = bmp_draw->crop.y; in ipa_bmp_draw()
686 crop_info.width = bmp_draw->crop.w; in ipa_bmp_draw()
687 crop_info.height = bmp_draw->crop.h; in ipa_bmp_draw()
712 width = fabs(bmp_draw->pixel_width * (double) bmp_draw->crop.w); in ipa_bmp_draw()
713 height = fabs(bmp_draw->pixel_height * (double) bmp_draw->crop.h); in ipa_bmp_draw()
726 printf("bmp_draw->crop WxH = %ix%i\n", bmp_draw->crop.w, bmp_draw->crop.h); in ipa_bmp_draw()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dsample_distorted_bounding_box_op.cc71 bool SatisfiesOverlapConstraints(const Rectangle& crop, in SatisfiesOverlapConstraints() argument
76 if (crop.Area() < kMinArea) { in SatisfiesOverlapConstraints()
89 const float object_covered = crop.Intersect(bbox).Area() / object_area; in SatisfiesOverlapConstraints()

1234