/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | image_decoder.cc | 33 std::optional<uint32_t> target_width, in GetResizedDimensions() argument 39 if (target_width && target_height) { in GetResizedDimensions() 40 return SkISize::Make(target_width.value(), target_height.value()); in GetResizedDimensions() 46 if (target_width) { in GetResizedDimensions() 47 return SkISize::Make(target_width.value(), in GetResizedDimensions() 48 target_width.value() / aspect_ratio); in GetResizedDimensions() 60 std::optional<uint32_t> target_width, in ResizeRasterImage() argument 66 GetResizedDimensions(image->dimensions(), target_width, target_height); in ResizeRasterImage() 113 std::optional<uint32_t> target_width, in ImageFromDecompressedData() argument 125 return ResizeRasterImage(std::move(image), target_width, target_height, flow); in ImageFromDecompressedData() [all …]
|
D | image_decoder_unittests.cc | 326 auto decoded_size = [&](std::optional<uint32_t> target_width, in TEST_F() 331 image_descriptor.target_width = target_width; in TEST_F() 411 auto decoded_size = [&](std::optional<uint32_t> target_width, in TEST_F() 416 image_descriptor.target_width = target_width; in TEST_F()
|
D | image_decoder.h | 47 std::optional<uint32_t> target_width; member
|
D | codec.cc | 216 descriptor.target_width = targetWidth; in InstantiateImageCodec()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/ |
D | soft_dvpp_decode_resize_jpeg_op.h | 31 SoftDvppDecodeResizeJpegOp(int32_t target_height, int32_t target_width) in SoftDvppDecodeResizeJpegOp() argument 32 : target_height_(target_height), target_width_(target_width) {} in SoftDvppDecodeResizeJpegOp()
|
D | soft_dvpp_decode_random_crop_resize_jpeg_op.cc | 28 …CropResizeJpegOp::SoftDvppDecodeRandomCropResizeJpegOp(int32_t target_height, int32_t target_width, in SoftDvppDecodeRandomCropResizeJpegOp() argument 33 target_width_(target_width), in SoftDvppDecodeRandomCropResizeJpegOp()
|
D | soft_dvpp_decode_random_crop_resize_jpeg_op.h | 40 …SoftDvppDecodeRandomCropResizeJpegOp(int32_t target_height, int32_t target_width, float scale_lb =…
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | random_crop_and_resize_with_bbox_op.h | 28 …RandomCropAndResizeWithBBoxOp(int32_t target_height, int32_t target_width, float scale_lb = kDefSc… 32 …: RandomCropAndResizeOp(target_height, target_width, scale_lb, scale_ub, aspect_lb, aspect_ub, int… in RandomCropAndResizeOp() argument
|
D | random_crop_decode_resize_op.cc | 24 RandomCropDecodeResizeOp::RandomCropDecodeResizeOp(int32_t target_height, int32_t target_width, flo… in RandomCropDecodeResizeOp() argument 27 …: RandomCropAndResizeOp(target_height, target_width, scale_lb, scale_ub, aspect_lb, aspect_ub, int… in RandomCropDecodeResizeOp()
|
D | random_crop_and_resize_op.cc | 33 RandomCropAndResizeOp::RandomCropAndResizeOp(int32_t target_height, int32_t target_width, float sca… in RandomCropAndResizeOp() argument 37 target_width_(target_width), in RandomCropAndResizeOp()
|
D | random_crop_decode_resize_op.h | 34 …RandomCropDecodeResizeOp(int32_t target_height, int32_t target_width, float scale_lb = kDefScaleLb,
|
D | random_crop_and_resize_op.h | 41 RandomCropAndResizeOp(int32_t target_height, int32_t target_width, float scale_lb = kDefScaleLb,
|
D | bounding_box.h | 125 …c Status UpdateBBoxesForResize(const TensorPtr &bbox_list, size_t bbox_count, int32_t target_width,
|
D | bounding_box.cc | 195 …dingBox::UpdateBBoxesForResize(const TensorPtr &bbox_list, size_t bbox_count, int32_t target_width, in UpdateBBoxesForResize() argument 202 bbox_float W_aspRatio = (target_width * 1.0) / (orig_width * 1.0); in UpdateBBoxesForResize()
|
D | image_utils.cc | 661 … int crop_height, int crop_width, int target_height, int target_width, InterpolationMode mode) { in CropAndResize() argument 671 target_width == 0 || target_width > crop_width * kCropShapeLimits) { in CropAndResize() 676 ", target_width: " + std::to_string(target_width); in CropAndResize() 689 TensorShape new_shape = TensorShape({target_height, target_width, 3}); in CropAndResize() 692 …imOut.Init(target_width, target_height, input_cv->shape()[2], reinterpret_cast<void *>(buffer), LD… in CropAndResize() 695 if (ResizeCubic(imIn, imOut, target_width, target_height) == false) { in CropAndResize() 702 TensorShape shape{target_height, target_width}; in CropAndResize() 707 cv::resize(cv_in(roi), cvt_out->mat(), cv::Size(target_width, target_height), 0, 0, cv_mode); in CropAndResize()
|
D | image_utils.h | 189 … int crop_height, int crop_width, int target_height, int target_width, InterpolationMode mode);
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | random_crop_decode_resize_op_test.cc | 42 constexpr int target_width = 718; in TEST_F() local 50 …auto crop_and_decode = RandomCropDecodeResizeOp(target_height, target_width, scale_lb, scale_ub, a… in TEST_F() 71 for (int j = 0; j < target_width; j++) { in TEST_F()
|
/third_party/spirv-tools/source/opt/ |
D | graphics_robust_access_pass.cpp | 438 const auto target_width = std::max(index_width, count_width); in ClampIndicesForAccessChain() local 442 if (index_type->width() < target_width) { in ClampIndicesForAccessChain() 444 index_inst = WidenInteger(true, target_width, index_inst, &inst); in ClampIndicesForAccessChain() 445 } else if (count_type->width() < target_width) { in ClampIndicesForAccessChain() 447 count_inst = WidenInteger(false, target_width, count_inst, &inst); in ClampIndicesForAccessChain() 460 ((uint64_t(1) << (target_width - 1)) - 1); in ClampIndicesForAccessChain()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | graphics_robust_access_pass.cpp | 439 const auto target_width = std::max(index_width, count_width); in ClampIndicesForAccessChain() local 443 if (index_type->width() < target_width) { in ClampIndicesForAccessChain() 445 index_inst = WidenInteger(true, target_width, index_inst, &inst); in ClampIndicesForAccessChain() 446 } else if (count_type->width() < target_width) { in ClampIndicesForAccessChain() 448 count_inst = WidenInteger(false, target_width, count_inst, &inst); in ClampIndicesForAccessChain() 461 ((uint64_t(1) << (target_width - 1)) - 1); in ClampIndicesForAccessChain()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | graphics_robust_access_pass.cpp | 439 const auto target_width = std::max(index_width, count_width); in ClampIndicesForAccessChain() local 443 if (index_type->width() < target_width) { in ClampIndicesForAccessChain() 445 index_inst = WidenInteger(true, target_width, index_inst, &inst); in ClampIndicesForAccessChain() 446 } else if (count_type->width() < target_width) { in ClampIndicesForAccessChain() 448 count_inst = WidenInteger(false, target_width, count_inst, &inst); in ClampIndicesForAccessChain() 461 ((uint64_t(1) << (target_width - 1)) - 1); in ClampIndicesForAccessChain()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | swapchain9.c | 726 int target_width, target_height, target_depth, i; in present() local 771 …hr = ID3DPresent_GetWindowInfo(This->present, hDestWindowOverride, &target_width, &target_height, … in present() 778 if (FAILED(hr) || target_width == 0 || target_height == 0 || in present() 780 target_width = resource->width0; in present() 788 dest_rect.right = MIN2(target_width, dest_rect.right); in present() 790 target_width = dest_rect.right - dest_rect.left; in present() 800 (target_width != resource->width0 || target_height != resource->height0)) { in present() 807 … create_present_buffer(This, target_width, target_height, &new_resource[i], &new_handles[i]); in present() 844 if (target_width != This->present_buffers[0]->width0 || in present() 849 create_present_buffer(This, target_width, target_height, &new_resource, &new_handle); in present()
|