Home
last modified time | relevance | path

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

/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()
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()
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/
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()
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/
Drandom_crop_op.cc48 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()
71 OP_REQUIRES(context, height >= target_height, in Compute()
74 ", target_height = ", target_height)); in Compute()
85 if (height > target_height) { in Compute()
86 offset_height = random.Rand32() % (height - target_height + 1); in Compute()
94 for (int y = 0; y < target_height; ++y) { in Compute()
Dresize_area_op_test.cc149 void RunRandomTest(int in_height, int in_width, int target_height, in RunRandomTest() argument
153 AddInputFromArray<int32>(TensorShape({2}), {target_height, target_width}); in RunRandomTest()
159 TensorShape({1, target_height, target_width, channels}))); in RunRandomTest()
167 for (int target_height : {1, 2, 3, 50, 113}) { in RunManyRandomTests()
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()
Dresize_bicubic_op_test.cc162 const int64 in_width, const int target_height, 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()
192 for (int target_height : {1, 2, 3, 50, 113}) { in RunManyRandomTests()
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()
Dsample_distorted_bounding_box_op.cc378 const int target_height = crop_rect.max_y_ - crop_rect.min_y_; in DoCompute() local
388 OP_REQUIRES(context, height >= target_height + offset_height, in DoCompute()
391 target_height, " + ", offset_height)); in DoCompute()
410 size_data(0) = T(target_height); in DoCompute()
Dresize_bilinear_op_test.cc154 for (int target_height : {1, 2, 3, 50, 113}) { in RunManyRandomTests()
155 for (int target_width : {target_height, target_height / 2 + 1}) { in RunManyRandomTests()
157 target_height); in RunManyRandomTests()
/external/libvpx/libvpx/test/
Dresize_util.sh53 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/
Dimage_ops_test.py1698 def _CropToBoundingBox(self, x, offset_height, offset_width, target_height, argument
1703 target_height = ops.convert_to_tensor(target_height)
1710 target_height, target_width)
1724 target_height, target_width, _ = y_shape
1730 target_height, target_width,
1739 target_height, argument
1749 self._CropToBoundingBox(x, offset_height, offset_width, target_height,
1805 target_height, target_width = [2, 2]
1808 self._assertRaises(x, x_shape, offset_height, offset_width, target_height,
1821 for x_shape, target_height, target_width in test_config:
[all …]
Dimage_ops_impl.py994 def pad_to_bounding_box(image, offset_height, offset_width, target_height, argument
1072 after_padding_height = target_height - offset_height - height
1094 for i in [batch, target_height, target_width, depth]
1106 def crop_to_bounding_box(image, offset_height, offset_width, target_height, argument
1163 assert_ops += _assert(target_height > 0, ValueError,
1167 assert_ops += _assert(height >= (target_height + offset_height), 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
1238 assert_ops += _assert(target_height > 0, ValueError,
[all …]
/external/webrtc/modules/video_capture/
Dvideo_capture_impl.cc139 int target_height = abs(height); in IncomingFrame() local
149 target_height = width; 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/
Dcreate_frame_generator.cc62 size_t target_height, in CreateScrollingInputFromYuvFilesFrameGenerator() argument
74 clock, files, source_width, source_height, target_width, target_height, in CreateScrollingInputFromYuvFilesFrameGenerator()
Dcreate_frame_generator.h63 size_t target_height,
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dimage_preprocessing.py93 self.target_height = height
104 size=[self.target_height, self.target_width],
111 [input_shape[0], self.target_height, self.target_width, input_shape[3]])
115 'height': self.target_height,
145 self.target_height = height
155 img_hd_diff = img_hd - self.target_height
162 'height.'.format(self.target_height)))
173 [-1, self.target_height, self.target_width, -1])
180 [input_shape[0], self.target_height, self.target_width, input_shape[3]])
184 'height': self.target_height,
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.image.pbtxt49 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
149 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
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/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()
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.image.pbtxt49 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
145 …argspec: "args=[\'image\', \'offset_height\', \'offset_width\', \'target_height\', \'target_width\…
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/common_video/libyuv/
Dwebrtc_libyuv.cc185 int target_height) { 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/webrtc/test/
Dframe_generator.cc277 size_t target_height, in ScrollingImageFrameGenerator() argument
286 target_height_(static_cast<int>(target_height)), in ScrollingImageFrameGenerator()
294 RTC_DCHECK_GE(source_height, target_height); in ScrollingImageFrameGenerator()
Dframe_generator.h130 size_t target_height,
/external/tensorflow/tensorflow/python/keras/preprocessing/
Dimage.py122 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/
Ddecode_jpeg_op_test.py107 target_height=crop_window[2],
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_SampleDistortedBoundingBox.pbtxt26 1-D, containing `[target_height, target_width, -1]`. Provide as input to
Dapi_def_SampleDistortedBoundingBoxV2.pbtxt35 1-D, containing `[target_height, target_width, -1]`. Provide as input to
Dapi_def_StatelessSampleDistortedBoundingBox.pbtxt42 1-D, containing `[target_height, target_width, -1]`. Provide as input to