Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 25 of 90) 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/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_crop_test.py34 crop = random_ops.random_crop(value, shape).eval()
35 self.assertAllEqual(crop, value)
45 crop = random_ops.random_crop(value, size=target)
47 y = crop.eval()
61 crop = random_ops.random_crop(value, single, seed=7)
64 y = crop.eval()
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_unittest.cc143 v4l2_crop crop; in TestSetCrop() local
144 memset(&crop, 0, sizeof(crop)); in TestSetCrop()
145 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in TestSetCrop()
146 crop.c = cropcap.defrect; in TestSetCrop()
147 v4l2_dev.SetCrop(&crop); in TestSetCrop()
160 v4l2_crop crop; in TestGetCrop() local
161 memset(&crop, 0, sizeof(crop)); in TestGetCrop()
162 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in TestGetCrop()
163 v4l2_dev.GetCrop(&crop); in TestGetCrop()
Dmedia_v4l2_device.cc98 v4l2_crop crop; in InitDevice() local
99 memset(&crop, 0, sizeof(crop)); in InitDevice()
101 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in InitDevice()
102 crop.c = cropcap.defrect; in InitDevice()
103 SetCrop(&crop); in InitDevice()
909 bool V4L2Device::GetCrop(v4l2_crop* crop) { in GetCrop() argument
910 if (-1 == DoIoctl(VIDIOC_G_CROP, crop)) { in GetCrop()
915 crop->c.left, crop->c.top, in GetCrop()
916 crop->c.width, crop->c.height); in GetCrop()
920 bool V4L2Device::SetCrop(v4l2_crop* crop) { in SetCrop() argument
[all …]
Dmedia_v4l2_device.h80 bool GetCrop(v4l2_crop* crop);
81 bool SetCrop(v4l2_crop* crop);
/external/libjpeg-turbo/
Dtjexampletest.in99 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -flip horizontal -trim -outfile $OUTDIR/${basename}_${sam…
100 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -flip vertical -trim -outfile $OUTDIR/${basename}_${samp}…
101 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -transpose -trim -outfile $OUTDIR/${basename}_${samp}_tra…
102 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -transverse -trim -outfile $OUTDIR/${basename}_${samp}_tr…
103 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 90 -trim -outfile $OUTDIR/${basename}_${samp}_rot…
104 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 180 -trim -outfile $OUTDIR/${basename}_${samp}_ro…
105 …runme $EXEDIR/jpegtran -crop 70x60+16+16 -rotate 270 -trim -outfile $OUTDIR/${basename}_${samp}_ro…
109 …DIR/${basename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.jpg -$xform -crop 16,16,70x60
112 …DIR/${basename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.bmp -$xform -crop 16,16,70x60
118 …ename}_${samp}_fast.jpg $OUTDIR/${basename}_${samp}_${xform}.bmp -$xform -crop 16,16,70x60 -fastup…
[all …]
Ddjpeg.c94 boolean skip, crop; variable
202 crop = FALSE; in parse_switches()
399 crop = TRUE; in parse_switches()
702 } else if (crop) { in main()
/external/drm_hwcomposer/
Dhwcutils.cpp171 void DrmHwcLayer::SetSourceCrop(hwc_frect_t const &crop) { in SetSourceCrop() argument
172 source_crop = DrmHwcRect<float>(crop.left, crop.top, crop.right, crop.bottom); in SetSourceCrop()
/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.cc609 std::vector<std::uint32_t> crop(2); in GetFullCropDimension() local
610 if (tiff_directory.Get(kExifTagDefaultCropSize, &crop)) { in GetFullCropDimension()
611 if (crop.size() == 2 && crop[0] > 0 && crop[1] > 0) { in GetFullCropDimension()
612 *width = crop[0]; in GetFullCropDimension()
613 *height = crop[1]; in GetFullCropDimension()
/external/ImageMagick/MagickCore/
Dtransform.c808 crop; in CropImageToTiles() local
843 crop.y=(ssize_t) MagickRound((double) (offset.y- in CropImageToTiles()
846 crop.height=(size_t) MagickRound((double) (offset.y+ in CropImageToTiles()
851 crop.y=(ssize_t) MagickRound((double) (offset.y- in CropImageToTiles()
854 crop.height=(size_t) MagickRound((double) in CropImageToTiles()
857 crop.height-=crop.y; in CropImageToTiles()
858 crop.y+=image->page.y; in CropImageToTiles()
863 crop.x=(ssize_t) MagickRound((double) (offset.x- in CropImageToTiles()
866 crop.width=(size_t) MagickRound((double) (offset.x+ in CropImageToTiles()
871 crop.x=(ssize_t) MagickRound((double) (offset.x- in CropImageToTiles()
[all …]
/external/skqp/tests/
DImageFilterTest.cpp1959 const SkImageFilter::CropRect* crop, const SkIRect& expected) { in test_arithmetic_bounds() argument
1961 SkArithmeticImageFilter::Make(k1, k2, k3, k4, false, background, foreground, crop)); in test_arithmetic_bounds()
2000 SkImageFilter::CropRect crop(SkRect::Make(crop_rect)); in test_arithmetic_combinations() local
2001 test_arithmetic_bounds(reporter, 0, 0, 0, 0, background, foreground, &crop, in test_arithmetic_combinations()
2003 test_arithmetic_bounds(reporter, 0, 0, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
2004 test_arithmetic_bounds(reporter, 0, 0, v, 0, background, foreground, &crop, background_rect); in test_arithmetic_combinations()
2005 test_arithmetic_bounds(reporter, 0, 0, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
2006 test_arithmetic_bounds(reporter, 0, v, 0, 0, background, foreground, &crop, foreground_rect); in test_arithmetic_combinations()
2007 test_arithmetic_bounds(reporter, 0, v, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
2008 test_arithmetic_bounds(reporter, 0, v, v, 0, background, foreground, &crop, union_rect); in test_arithmetic_combinations()
[all …]
/external/skia/tests/
DImageFilterTest.cpp1959 const SkImageFilter::CropRect* crop, const SkIRect& expected) { in test_arithmetic_bounds() argument
1961 SkArithmeticImageFilter::Make(k1, k2, k3, k4, false, background, foreground, crop)); in test_arithmetic_bounds()
2000 SkImageFilter::CropRect crop(SkRect::Make(crop_rect)); in test_arithmetic_combinations() local
2001 test_arithmetic_bounds(reporter, 0, 0, 0, 0, background, foreground, &crop, in test_arithmetic_combinations()
2003 test_arithmetic_bounds(reporter, 0, 0, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
2004 test_arithmetic_bounds(reporter, 0, 0, v, 0, background, foreground, &crop, background_rect); in test_arithmetic_combinations()
2005 test_arithmetic_bounds(reporter, 0, 0, v, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
2006 test_arithmetic_bounds(reporter, 0, v, 0, 0, background, foreground, &crop, foreground_rect); in test_arithmetic_combinations()
2007 test_arithmetic_bounds(reporter, 0, v, 0, v, background, foreground, &crop, crop_rect); in test_arithmetic_combinations()
2008 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.c671 if (bmp_draw->crop.x || bmp_draw->crop.y || in ipa_bmp_draw()
672 (bmp_draw->crop.w != bmp_draw->bmp.width) || in ipa_bmp_draw()
673 (bmp_draw->crop.h != bmp_draw->bmp.height)) in ipa_bmp_draw()
682 crop_info.x = bmp_draw->crop.x; in ipa_bmp_draw()
683 crop_info.y = bmp_draw->crop.y; in ipa_bmp_draw()
684 crop_info.width = bmp_draw->crop.w; in ipa_bmp_draw()
685 crop_info.height = bmp_draw->crop.h; in ipa_bmp_draw()
710 width = fabs(bmp_draw->pixel_width * (double) bmp_draw->crop.w); in ipa_bmp_draw()
711 height = fabs(bmp_draw->pixel_height * (double) bmp_draw->crop.h); in ipa_bmp_draw()
724 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()
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_mem.cc177 if (flags.crop) { in UncompressLow()
224 if (flags.crop) { in UncompressLow()
340 if (flags.crop && cinfo.output_scanline < cinfo.output_height) { in UncompressLow()
424 if (flags.crop) { in UncompressLow()

1234