Home
last modified time | relevance | path

Searched refs:target_width (Results 1 – 21 of 21) sorted by relevance

/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_decoder.cc33 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 …]
Dimage_decoder_unittests.cc326 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()
Dimage_decoder.h47 std::optional<uint32_t> target_width; member
Dcodec.cc216 descriptor.target_width = targetWidth; in InstantiateImageCodec()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/
Dsoft_dvpp_decode_resize_jpeg_op.h31 SoftDvppDecodeResizeJpegOp(int32_t target_height, int32_t target_width) in SoftDvppDecodeResizeJpegOp() argument
32 : target_height_(target_height), target_width_(target_width) {} in SoftDvppDecodeResizeJpegOp()
Dsoft_dvpp_decode_random_crop_resize_jpeg_op.cc28 …CropResizeJpegOp::SoftDvppDecodeRandomCropResizeJpegOp(int32_t target_height, int32_t target_width, in SoftDvppDecodeRandomCropResizeJpegOp() argument
33 target_width_(target_width), in SoftDvppDecodeRandomCropResizeJpegOp()
Dsoft_dvpp_decode_random_crop_resize_jpeg_op.h40 …SoftDvppDecodeRandomCropResizeJpegOp(int32_t target_height, int32_t target_width, float scale_lb =…
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Drandom_crop_and_resize_with_bbox_op.h28 …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
Drandom_crop_decode_resize_op.cc24 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()
Drandom_crop_and_resize_op.cc33 RandomCropAndResizeOp::RandomCropAndResizeOp(int32_t target_height, int32_t target_width, float sca… in RandomCropAndResizeOp() argument
37 target_width_(target_width), in RandomCropAndResizeOp()
Drandom_crop_decode_resize_op.h34 …RandomCropDecodeResizeOp(int32_t target_height, int32_t target_width, float scale_lb = kDefScaleLb,
Drandom_crop_and_resize_op.h41 RandomCropAndResizeOp(int32_t target_height, int32_t target_width, float scale_lb = kDefScaleLb,
Dbounding_box.h125 …c Status UpdateBBoxesForResize(const TensorPtr &bbox_list, size_t bbox_count, int32_t target_width,
Dbounding_box.cc195 …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()
Dimage_utils.cc661 … 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()
Dimage_utils.h189 … int crop_height, int crop_width, int target_height, int target_width, InterpolationMode mode);
/third_party/mindspore/tests/ut/cpp/dataset/
Drandom_crop_decode_resize_op_test.cc42 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/
Dgraphics_robust_access_pass.cpp438 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/
Dgraphics_robust_access_pass.cpp439 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/
Dgraphics_robust_access_pass.cpp439 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/
Dswapchain9.c726 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()