Home
last modified time | relevance | path

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

/external/libvpx/libvpx/examples/
Dresize_util.c54 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/libaom/libaom/examples/
Dresize_util.c55 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()
112 width, outbuf, target_width, outbuf_u, outbuf_v, 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/
Drandom_crop_op.cc49 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()
71 OP_REQUIRES(context, width >= target_width, in Compute()
74 ", target_width = ", target_width)); in Compute()
86 if (width > target_width) { in Compute()
87 offset_width = random.Rand32() % (width - target_width + 1); in Compute()
99 for (int x = 0; x < target_width; ++x) { in Compute()
Dresize_area_op_test.cc147 int target_width, int channels) { in RunRandomTest() argument
150 AddInputFromArray<int32>(TensorShape({2}), {target_height, target_width}); in RunRandomTest()
156 TensorShape({1, target_height, target_width, channels}))); in RunRandomTest()
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()
Dresize_bicubic_op_test.cc161 const int target_width, int channels) { 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()
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()
Dsample_distorted_bounding_box_op.cc362 const int target_width = crop_rect.max_x_ - crop_rect.min_x_; in Compute() local
369 OP_REQUIRES(context, width >= target_width + offset_width, in Compute()
372 "vs ", target_width, " + ", offset_width)); in Compute()
398 size_data(1) = T(target_width); in Compute()
Dresize_bilinear_op_test.cc143 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests()
144 TestResize(batch_size, in_w, in_h, channels, target_width, in RunManyRandomTests()
/external/libvpx/libvpx/test/
Dresize_util.sh52 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/webrtc/webrtc/test/
Dframe_generator.cc137 size_t target_width, in ScrollingImageFrameGenerator() argument
152 RTC_DCHECK_GE(source_width, target_width); in ScrollingImageFrameGenerator()
156 current_frame_.CreateEmptyFrame(static_cast<int>(target_width), in ScrollingImageFrameGenerator()
158 static_cast<int>(target_width), in ScrollingImageFrameGenerator()
159 static_cast<int>((target_width + 1) / 2), in ScrollingImageFrameGenerator()
160 static_cast<int>((target_width + 1) / 2)); in ScrollingImageFrameGenerator()
262 size_t target_width, in CreateScrollingInputFromYuvFiles() argument
275 clock, files, source_width, source_height, target_width, target_height, in CreateScrollingInputFromYuvFiles()
Dframe_generator.h56 size_t target_width,
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py1500 target_width, use_tensor_inputs): argument
1505 target_width = ops.convert_to_tensor(target_width)
1513 target_height, target_width)
1529 target_height, target_width, _ = y_shape
1535 target_height, target_width,
1545 target_width, argument
1554 target_width, use_tensor_inputs)
1616 target_height, target_width = [2, 2]
1620 target_width,
1633 for x_shape, target_height, target_width in test_config:
[all …]
Dimage_ops_impl.py664 target_width): argument
711 after_padding_width = target_width - offset_width - width
735 for i in [batch, target_height, target_width, depth]
747 target_width): argument
799 assert_ops += _assert(target_width > 0, ValueError,
803 assert_ops += _assert(width >= (target_width + offset_width), 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
869 assert_ops += _assert(target_width > 0, ValueError,
[all …]
/external/webrtc/webrtc/modules/video_processing/test/
Dvideo_processing_unittest.cc31 int target_width,
49 int target_width,
310 int target_width, argument
314 ASSERT_EQ(VPM_OK, vpm->SetTargetResolution(target_width, target_height, 30));
319 if (target_width == source.width() && target_height == source.height()) {
328 EXPECT_EQ(target_width, (out_frame)->width());
350 int target_width, argument
357 PreprocessFrameAndVerify(source_frame, target_width, target_height, vpm,
376 psnr, source_frame.width(), source_frame.height(), target_width,
/external/webrtc/webrtc/modules/video_capture/
Dvideo_capture_impl.cc263 int target_width = width; in IncomingFrame() local
273 target_width = abs(height); in IncomingFrame()
283 int ret = _captureFrame.CreateEmptyFrame(target_width, in IncomingFrame()
/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
Dresnet_preprocessing.py71 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/
Dtensorflow.image.pbtxt49 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non…
137 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non…
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/
Dtensorflow.image.pbtxt49 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non…
137 …[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\'], varargs=Non…
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/
Ddecode_jpeg_op_test.py101 target_width=crop_window[3])
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_SampleDistortedBoundingBoxV2.pbtxt35 1-D, containing `[target_height, target_width, -1]`. Provide as input to
Dapi_def_SampleDistortedBoundingBox.pbtxt26 1-D, containing `[target_height, target_width, -1]`. Provide as input to