/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() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/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() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | random_crop_op.cc | 48 const int32 target_height = shape_vec(0); in Compute() local 59 TensorShape({target_height, target_width, channels}); in Compute() 63 if ((target_height == height) && (target_width == width)) { in Compute() 75 OP_REQUIRES(context, height >= target_height, in Compute() 78 ", target_height = ", target_height)); in Compute() 89 if (height > target_height) { in Compute() 90 offset_height = random.Rand32() % (height - target_height + 1); in Compute() 98 for (int y = 0; y < target_height; ++y) { in Compute()
|
D | resize_area_op_test.cc | 146 void RunRandomTest(int in_height, int in_width, int target_height, in RunRandomTest() argument 150 AddInputFromArray<int32>(TensorShape({2}), {target_height, target_width}); in RunRandomTest() 156 TensorShape({1, target_height, target_width, channels}))); in RunRandomTest() 164 for (int target_height : {1, 2, 3, 50, 113}) { in RunManyRandomTests() 165 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests() 166 RunRandomTest(in_h, in_w, target_height, target_width, channels); in RunManyRandomTests()
|
D | resize_bicubic_op_test.cc | 160 const int64 in_width, const int target_height, in RunRandomTest() argument 163 << channels << " to " << target_height << "x" << target_width in RunRandomTest() 167 AddInputFromArray<int32>(TensorShape({2}), {target_height, target_width}); in RunRandomTest() 174 TensorShape({batch_size, target_height, target_width, channels}))); in RunRandomTest() 190 for (int target_height : {1, 2, 3, 50, 113}) { in RunManyRandomTests() 191 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests() 192 RunRandomTest(batch_size, in_h, in_w, target_height, target_width, in RunManyRandomTests()
|
D | sample_distorted_bounding_box_op.cc | 363 const int target_height = crop_rect.max_y_ - crop_rect.min_y_; in Compute() local 373 OP_REQUIRES(context, height >= target_height + offset_height, in Compute() 376 target_height, " + ", offset_height)); in Compute() 395 size_data(0) = T(target_height); in Compute()
|
D | resize_bilinear_op_test.cc | 142 for (int target_height : {1, 2, 3, 50, 113}) { in RunManyRandomTests() 143 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests() 145 target_height); in RunManyRandomTests()
|
/external/libvpx/libvpx/test/ |
D | resize_util.sh | 53 local target_height=$((${YUV_RAW_INPUT_HEIGHT} / 2)) 55 resize_util "${target_width}x${target_height}" 61 local target_height=$((${YUV_RAW_INPUT_HEIGHT} * 2)) 63 resize_util "${target_width}x${target_height}"
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_ops_test.py | 1499 def _CropToBoundingBox(self, x, offset_height, offset_width, target_height, argument 1504 target_height = ops.convert_to_tensor(target_height) 1513 target_height, target_width) 1529 target_height, target_width, _ = y_shape 1535 target_height, target_width, 1544 target_height, argument 1553 self._CropToBoundingBox(x, offset_height, offset_width, target_height, 1616 target_height, target_width = [2, 2] 1619 self._assertRaises(x, x_shape, offset_height, offset_width, target_height, 1633 for x_shape, target_height, target_width in test_config: [all …]
|
D | image_ops_impl.py | 663 def pad_to_bounding_box(image, offset_height, offset_width, target_height, argument 713 after_padding_height = target_height - offset_height - height 735 for i in [batch, target_height, target_width, depth] 746 def crop_to_bounding_box(image, offset_height, offset_width, target_height, argument 801 assert_ops += _assert(target_height > 0, ValueError, 805 assert_ops += _assert(height >= (target_height + offset_height), ValueError, 811 array_ops.stack([-1, target_height, target_width, -1])) 815 for i in [batch, target_height, target_width, depth] 826 def resize_image_with_crop_or_pad(image, target_height, target_width): argument 871 assert_ops += _assert(target_height > 0, ValueError, [all …]
|
/external/webrtc/webrtc/modules/video_processing/test/ |
D | video_processing_unittest.cc | 32 int target_height, 50 int target_height, 311 int target_height, argument 314 ASSERT_EQ(VPM_OK, vpm->SetTargetResolution(target_width, target_height, 30)); 319 if (target_width == source.width() && target_height == source.height()) { 329 EXPECT_EQ(target_height, (out_frame)->height()); 351 int target_height, argument 357 PreprocessFrameAndVerify(source_frame, target_width, target_height, vpm, 377 target_height);
|
/external/webrtc/webrtc/test/ |
D | frame_generator.cc | 138 size_t target_height, in ScrollingImageFrameGenerator() argument 151 RTC_DCHECK_GE(source_height, target_height); in ScrollingImageFrameGenerator() 157 static_cast<int>(target_height), in ScrollingImageFrameGenerator() 263 size_t target_height, in CreateScrollingInputFromYuvFiles() argument 275 clock, files, source_width, source_height, target_width, target_height, in CreateScrollingInputFromYuvFiles()
|
D | frame_generator.h | 57 size_t target_height,
|
/external/webrtc/webrtc/modules/video_capture/ |
D | video_capture_impl.cc | 264 int target_height = height; in IncomingFrame() local 274 target_height = width; in IncomingFrame() 284 abs(target_height), in IncomingFrame()
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/ |
D | resnet_preprocessing.py | 71 target_height, target_width, _ = tf.unstack(bbox_size) 72 crop_window = tf.stack([offset_y, offset_x, target_height, target_width])
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.image.pbtxt | 49 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\… 137 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\… 185 …argspec: "args=[\'image\', \'target_height\', \'target_width\'], varargs=None, keywords=None, defa… 189 …argspec: "args=[\'image\', \'target_height\', \'target_width\', \'method\', \'antialias\'], vararg…
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.image.pbtxt | 49 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\… 137 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\… 197 …argspec: "args=[\'image\', \'target_height\', \'target_width\'], varargs=None, keywords=None, defa… 201 …argspec: "args=[\'image\', \'target_height\', \'target_width\', \'method\', \'align_corners\'], va…
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_jpeg_op_test.py | 100 target_height=crop_window[2],
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_SampleDistortedBoundingBoxV2.pbtxt | 35 1-D, containing `[target_height, target_width, -1]`. Provide as input to
|
D | api_def_SampleDistortedBoundingBox.pbtxt | 26 1-D, containing `[target_height, target_width, -1]`. Provide as input to
|