/external/libaom/libaom/examples/ |
D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 97 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 104 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 107 outbuf_u = outbuf + target_width * target_height; in main() 108 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 113 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 114 target_width / 2, target_height, target_width); in main() 115 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/external/libvpx/libvpx/examples/ |
D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | random_crop_op.cc | 49 const int32 target_width = shape_vec(1); in Compute() local 59 TensorShape({target_height, target_width, channels}); in Compute() 63 if ((target_height == height) && (target_width == width)) { in Compute() 67 OP_REQUIRES(context, width >= target_width, in Compute() 70 ", target_width = ", target_width)); in Compute() 82 if (width > target_width) { in Compute() 83 offset_width = random.Rand32() % (width - target_width + 1); in Compute() 95 for (int x = 0; x < target_width; ++x) { in Compute()
|
D | resize_area_op_test.cc | 150 int target_width, int channels) { in RunRandomTest() argument 153 AddInputFromArray<int32>(TensorShape({2}), {target_height, target_width}); in RunRandomTest() 159 TensorShape({1, target_height, target_width, channels}))); in RunRandomTest() 168 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests() 169 RunRandomTest(in_h, in_w, target_height, target_width, channels); in RunManyRandomTests()
|
D | resize_bicubic_op_test.cc | 163 const int target_width, int channels) { in RunRandomTest() argument 165 << channels << " to " << target_height << "x" << target_width in RunRandomTest() 169 AddInputFromArray<int32>(TensorShape({2}), {target_height, target_width}); in RunRandomTest() 176 TensorShape({batch_size, target_height, target_width, channels}))); in RunRandomTest() 193 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests() 194 RunRandomTest(batch_size, in_h, in_w, target_height, target_width, in RunManyRandomTests()
|
D | sample_distorted_bounding_box_op.cc | 377 const int target_width = crop_rect.max_x_ - crop_rect.min_x_; in DoCompute() local 384 OP_REQUIRES(context, width >= target_width + offset_width, in DoCompute() 387 "vs ", target_width, " + ", offset_width)); in DoCompute() 413 size_data(1) = T(target_width); in DoCompute()
|
/external/libvpx/libvpx/test/ |
D | resize_util.sh | 52 local target_width=$((${YUV_RAW_INPUT_WIDTH} / 2)) 55 resize_util "${target_width}x${target_height}" 60 local target_width=$((${YUV_RAW_INPUT_WIDTH} * 2)) 63 resize_util "${target_width}x${target_height}"
|
/external/rust/crates/textwrap/src/core/ |
D | optimal_fit.rs | 173 let target_width = std::cmp::max(1, line_widths(line_number)); in wrap_optimal_fit() localVariable 189 if line_width > target_width { in wrap_optimal_fit() 191 let overflow = (line_width - target_width) as i32; in wrap_optimal_fit() 196 let gap = (target_width - line_width) as i32; in wrap_optimal_fit() 198 } else if i + 1 == j && line_width < target_width / SHORT_LINE_FRACTION { in wrap_optimal_fit()
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_ops_test.py | 1699 target_width, use_tensor_inputs): argument 1704 target_width = ops.convert_to_tensor(target_width) 1710 target_height, target_width) 1724 target_height, target_width, _ = y_shape 1730 target_height, target_width, 1740 target_width, argument 1750 target_width, use_tensor_inputs) 1805 target_height, target_width = [2, 2] 1809 target_width, 1821 for x_shape, target_height, target_width in test_config: [all …]
|
D | image_ops_impl.py | 995 target_width): argument 1070 after_padding_width = target_width - offset_width - width 1094 for i in [batch, target_height, target_width, depth] 1107 target_width): argument 1161 assert_ops += _assert(target_width > 0, ValueError, 1165 assert_ops += _assert(width >= (target_width + offset_width), ValueError, 1173 array_ops.stack([-1, target_height, target_width, -1])) 1177 for i in [batch, target_height, target_width, depth] 1191 def resize_image_with_crop_or_pad(image, target_height, target_width): argument 1236 assert_ops += _assert(target_width > 0, ValueError, [all …]
|
/external/webrtc/modules/video_capture/ |
D | video_capture_impl.cc | 138 int target_width = width; in IncomingFrame() local 148 target_width = abs(height); in IncomingFrame() 159 target_width, target_height, stride_y, stride_uv, stride_uv); in IncomingFrame() 184 width, height, target_width, target_height, rotation_mode, in IncomingFrame()
|
/external/webrtc/api/test/ |
D | create_frame_generator.cc | 61 size_t target_width, in CreateScrollingInputFromYuvFilesFrameGenerator() argument 74 clock, files, source_width, source_height, target_width, target_height, in CreateScrollingInputFromYuvFilesFrameGenerator()
|
D | create_frame_generator.h | 62 size_t target_width,
|
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/ |
D | image_preprocessing.py | 94 self.target_width = width 104 size=[self.target_height, self.target_width], 111 [input_shape[0], self.target_height, self.target_width, input_shape[3]]) 116 'width': self.target_width, 146 self.target_width = width 156 img_wd_diff = img_wd - self.target_width 167 'width.'.format(self.target_width))) 173 [-1, self.target_height, self.target_width, -1]) 180 [input_shape[0], self.target_height, self.target_width, input_shape[3]]) 185 'width': self.target_width,
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.image.pbtxt | 49 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non… 149 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non… 209 …argspec: "args=[\'image\', \'target_height\', \'target_width\'], varargs=None, keywords=None, defa… 213 …argspec: "args=[\'image\', \'target_height\', \'target_width\', \'method\', \'align_corners\'], va… 225 …argspec: "args=[\'image\', \'target_height\', \'target_width\'], varargs=None, keywords=None, defa…
|
/external/swiftshader/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()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/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()
|
/external/deqp-deps/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()
|
/external/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()
|
/external/webrtc/common_video/libyuv/ |
D | webrtc_libyuv.cc | 184 int target_width, in ScaleI420ABuffer() argument 187 I420Buffer::Create(target_width, target_height); in ScaleI420ABuffer() 190 I420Buffer::Create(target_width, target_height); in ScaleI420ABuffer() 193 axx_buffer->StrideY(), target_width, target_height, in ScaleI420ABuffer()
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.image.pbtxt | 49 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non… 145 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non… 193 …argspec: "args=[\'image\', \'target_height\', \'target_width\'], varargs=None, keywords=None, defa… 197 …argspec: "args=[\'image\', \'target_height\', \'target_width\', \'method\', \'antialias\'], vararg…
|
/external/webrtc/test/ |
D | frame_generator.cc | 276 size_t target_width, in ScrollingImageFrameGenerator() argument 285 target_width_(static_cast<int>(target_width)), in ScrollingImageFrameGenerator() 295 RTC_DCHECK_GE(source_width, target_width); in ScrollingImageFrameGenerator()
|
D | frame_generator.h | 129 size_t target_width,
|
/external/tensorflow/tensorflow/python/keras/preprocessing/ |
D | image.py | 122 target_height, target_width = size 125 math_ops.cast(width * target_height, 'float32') / target_width, 'int32') 127 math_ops.cast(height * target_width, 'float32') / target_height, 'int32')
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_jpeg_op_test.py | 108 target_width=crop_window[3])
|