Home
last modified time | relevance | path

Searched refs:target_height (Results 1 – 18 of 18) sorted by relevance

/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_decoder.cc34 std::optional<uint32_t> target_height) { in GetResizedDimensions() argument
39 if (target_width && target_height) { in GetResizedDimensions()
40 return SkISize::Make(target_width.value(), target_height.value()); in GetResizedDimensions()
51 if (target_height) { in GetResizedDimensions()
52 return SkISize::Make(target_height.value() * aspect_ratio, in GetResizedDimensions()
53 target_height.value()); in GetResizedDimensions()
61 std::optional<uint32_t> target_height, in ResizeRasterImage() argument
66 GetResizedDimensions(image->dimensions(), target_width, target_height); in ResizeRasterImage()
114 std::optional<uint32_t> target_height, in ImageFromDecompressedData() argument
125 return ResizeRasterImage(std::move(image), target_width, target_height, flow); in ImageFromDecompressedData()
[all …]
Dimage_decoder_unittests.cc327 std::optional<uint32_t> target_height) -> SkISize { in TEST_F() argument
332 image_descriptor.target_height = target_height; in TEST_F()
412 std::optional<uint32_t> target_height) -> SkISize { in TEST_F() argument
417 image_descriptor.target_height = target_height; in TEST_F()
Dimage_decoder.h48 std::optional<uint32_t> target_height; member
Dcodec.cc219 descriptor.target_height = targetHeight; 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 SoftDvppDecodeRandomCropResizeJpegOp::SoftDvppDecodeRandomCropResizeJpegOp(int32_t target_height, i… in SoftDvppDecodeRandomCropResizeJpegOp() argument
32 : target_height_(target_height), 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
36 : target_height_(target_height), 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.h126 … int32_t target_height, int32_t orig_width, int32_t orig_height);
Dbounding_box.cc196 … int32_t target_height, int32_t orig_width, int32_t orig_height) { in UpdateBBoxesForResize() argument
203 bbox_float H_aspRatio = (target_height * 1.0) / (orig_height * 1.0); in UpdateBBoxesForResize()
Dimage_utils.cc661 … int crop_height, int crop_width, int target_height, int target_width, InterpolationMode mode) { in CropAndResize() argument
670 …if (crop_height == 0 || crop_width == 0 || target_height == 0 || target_height > crop_height * kCr… in CropAndResize()
675 … crop_width: " + std::to_string(crop_width) + ", target_height: " + std::to_string(target_height) + 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.cc41 constexpr int target_height = 884; in TEST_F() local
50 …auto crop_and_decode = RandomCropDecodeResizeOp(target_height, target_width, scale_lb, scale_ub, a… in TEST_F()
70 for (int i = 0; i < target_height; i++) { in TEST_F()
/third_party/mesa3d/src/gallium/frontends/nine/
Dswapchain9.c726 int target_width, target_height, target_depth, i; in present() local
771 …ent_GetWindowInfo(This->present, hDestWindowOverride, &target_width, &target_height, &target_depth… in present()
778 if (FAILED(hr) || target_width == 0 || target_height == 0 || in present()
781 target_height = resource->height0; in present()
787 dest_rect.bottom = MIN2(target_height, dest_rect.bottom); in present()
789 target_height = dest_rect.bottom - dest_rect.top; 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()
845 target_height != This->present_buffers[0]->height0) { in present()
849 create_present_buffer(This, target_width, target_height, &new_resource, &new_handle); in present()