Home
last modified time | relevance | path

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

12345

/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/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)
86 crop = random_ops.stateless_random_crop(value, shape, seed=(1, 2))
87 self.evaluate(crop)
88 self.assertAllEqual(crop, value)
107 crop = random_ops.stateless_random_crop(value, size=target, seed=seed)
[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/crosvm/devices/src/virtio/video/
Dparams.rs28 pub crop: Crop, field
43 crop,
70 crop: crop.into(),
85 crop, in to_virtio_video_params()
105 crop: virtio_video_crop::from(*crop), in to_virtio_video_params()
/external/skia/gm/
Dbackdrop_imagefilter_croprect.cpp14 typedef sk_sp<SkImageFilter> (*FilterFactory)(const SkIRect* crop);
71 static sk_sp<SkImageFilter> make_invert_filter(const SkIRect* crop) { in make_invert_filter() argument
76 return SkImageFilters::ColorFilter(SkColorFilters::Matrix(matrix), nullptr, crop); in make_invert_filter()
79 static sk_sp<SkImageFilter> make_blur_filter(const SkIRect* crop) { in make_blur_filter() argument
81 return SkImageFilters::Blur(16.f, 4.f, nullptr, crop); in make_blur_filter()
Dimagefilters.cpp235 SkRect crop = SkRect::Make(image->bounds()); variable
237 canvas->clipRect(crop);
243 canvas->clipRect(crop);
274 canvas->clipRect(crop);
280 canvas->clipRect(crop);
/external/igt-gpu-tools/tests/
Dkms_plane.c51 uint32_t crop; member
445 if (data->crop == 0 || format == DRM_FORMAT_XRGB8888) { in test_format_plane_color()
458 width + data->crop * 2, in test_format_plane_color()
459 height + data->crop * 2, in test_format_plane_color()
470 width + data->crop * 2, in test_format_plane_color()
471 height + data->crop * 2, in test_format_plane_color()
476 igt_paint_color(cr, data->crop, data->crop, in test_format_plane_color()
488 if (data->crop != 0 && format != DRM_FORMAT_XRGB8888) { in test_format_plane_color()
489 igt_fb_set_position(fb, plane, data->crop, data->crop); in test_format_plane_color()
631 if (data->crop != 0 && plane->type == DRM_PLANE_TYPE_CURSOR) in test_format_plane()
[all …]
/external/webrtc/test/
Dframe_generator_capturer.cc113 if (config.crop.width || config.crop.height) { in Create()
115 config.change_interval - config.crop.scroll_duration; in Create()
117 int crop_width = config.crop.width.value_or(config.width); in Create()
118 int crop_height = config.crop.height.value_or(config.height); in Create()
123 config.crop.scroll_duration.ms(), pause_duration.ms()); in Create()
/external/libjpeg-turbo/
Dcroptest.in74 echo $PROGARG $NSARG $COLORSARG -crop $CROPSPEC
79 … convert -crop $CROPSPEC $OUTDIR/${basename}_${samp}_full.ppm $OUTDIR/${basename}_${samp}_ref.ppm
80 …runme $EXEDIR/djpeg $NSARG $COLORSARG -crop $CROPSPEC -rgb -outfile $OUTDIR/${basename}_${samp}.pp…
Djpegtran.c163 transformoption.crop = FALSE; in parse_switches()
209 if (transformoption.crop /* reject multiple crop/drop/wipe requests */ || in parse_switches()
223 if (transformoption.crop /* reject multiple crop/drop/wipe requests */ || in parse_switches()
403 if (transformoption.crop /* reject multiple crop/drop/wipe requests */ || in parse_switches()
/external/v4l2_codec2/components/
DV4L2Encoder.cpp522 struct v4l2_crop crop; in configureInputFormat() local
523 memset(&crop, 0, sizeof(v4l2_crop)); in configureInputFormat()
524 crop.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in configureInputFormat()
525 crop.c = rect; in configureInputFormat()
526 if (mDevice->ioctl(VIDIOC_S_CROP, &crop) != 0 || in configureInputFormat()
527 mDevice->ioctl(VIDIOC_G_CROP, &crop) != 0) { in configureInputFormat()
531 visibleRectangle = Rect(crop.c.left, crop.c.top, crop.c.left + crop.c.width, in configureInputFormat()
532 crop.c.top + crop.c.height); in configureInputFormat()
/external/angle/src/tests/gl_tests/gles1/
DTextureParameterTest.cpp120 constexpr std::array<GLint, kParameterLength> crop = { in TEST_P() local
123 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop.data()); in TEST_P()
126 ASSERT_EQ(crop, cropStored); in TEST_P()
DBootAnimationTest.cpp43 GLint crop[4] = {0, height, width, -height}; in initTextureWithData() local
62 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTextureWithData()
/external/angle/samples/gles1/
DDrawTexture.cpp44 GLint crop[4] = {0, 0, 2, 2}; in initialize() local
45 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initialize()
/external/minigbm/cros_gralloc/gralloc4/
DCrosGralloc4Mapper.cc560 aidl::android::hardware::graphics::common::Rect crop; in get() local
561 crop.left = 0; in get()
562 crop.top = 0; in get()
563 crop.right = crosHandle->width; in get()
564 crop.bottom = crosHandle->height; in get()
565 crops.push_back(crop); in get()
718 aidl::android::hardware::graphics::common::Rect crop; in getFromBufferDescriptorInfo() local
719 crop.left = 0; in getFromBufferDescriptorInfo()
720 crop.top = 0; in getFromBufferDescriptorInfo()
721 crop.right = descriptor.width; in getFromBufferDescriptorInfo()
[all …]
/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/autotest/client/cros/image_comparison/
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/skia/include/effects/
DSkImageFilters.h44 CropRect(const SkIRect& crop) : fCropRect(SkRect::Make(crop)) {} in CropRect()
45 CropRect(const SkRect& crop) : fCropRect(crop) {} in CropRect()
/external/drm_hwcomposer/utils/
Dhwcutils.cpp138 void DrmHwcLayer::SetSourceCrop(hwc_frect_t const &crop) { in SetSourceCrop() argument
139 source_crop = crop; in SetSourceCrop()
/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/skia/bench/
DBlurImageFilterBench.cpp103 const SkIRect* crop = in onDraw() local
106 paint.setImageFilter(SkImageFilters::Blur(fSigmaX, fSigmaY, std::move(input), crop)); in onDraw()
/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/ImageMagick/MagickCore/
Dtransform.c807 crop; in CropImageToTiles() local
842 crop.y=PixelRoundOffset((double) (offset.y- in CropImageToTiles()
845 crop.height=(size_t) PixelRoundOffset((double) (offset.y+ in CropImageToTiles()
850 crop.y=PixelRoundOffset((double) (offset.y- in CropImageToTiles()
853 crop.height=(size_t) PixelRoundOffset((double) in CropImageToTiles()
856 crop.height-=crop.y; in CropImageToTiles()
857 crop.y+=image->page.y; in CropImageToTiles()
862 crop.x=PixelRoundOffset((double) (offset.x- in CropImageToTiles()
865 crop.width=(size_t) PixelRoundOffset((double) (offset.x+ in CropImageToTiles()
870 crop.x=PixelRoundOffset((double) (offset.x- in CropImageToTiles()
[all …]

12345