/external/tensorflow/tensorflow/core/kernels/ |
D | crop_and_resize_op_gpu.cu.cc | 44 int image_width, int crop_height, int crop_width, int depth, int method_id, in CropAndResizeKernel() argument 70 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) : 0; in CropAndResizeKernel() 81 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeKernel() 82 : 0.5 * (x1 + x2) * (image_width - 1); in CropAndResizeKernel() 83 if (in_x < 0 || in_x > image_width - 1) { in CropAndResizeKernel() 98 image_ptr[((b_in * image_height + top_y_index) * image_width + in CropAndResizeKernel() 103 image_ptr[((b_in * image_height + top_y_index) * image_width + in CropAndResizeKernel() 108 image_ptr[((b_in * image_height + bottom_y_index) * image_width + in CropAndResizeKernel() 113 image_ptr[((b_in * image_height + bottom_y_index) * image_width + in CropAndResizeKernel() 124 image_ptr[((b_in * image_height + closest_y_index) * image_width + in CropAndResizeKernel() [all …]
|
D | quantized_conv_ops_test.cc | 58 const int image_width = 4; in TEST_F() local 70 {image_batch_count, image_height, image_width, depth}); in TEST_F() 119 const int expected_width = image_width; in TEST_F() 150 const int image_width = 4; in TEST_F() local 154 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 167 const int expected_width = image_width; in TEST_F() 193 const int image_width = 4; in TEST_F() local 197 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 210 const int expected_width = image_width / stride; in TEST_F() 234 const int image_width = 4; in TEST_F() local [all …]
|
D | crop_and_resize_op.cc | 139 const int image_width = image.dim_size(2); in ComputeAsync() local 142 context, image_height > 0 && image_width > 0, in ComputeAsync() 211 const int image_width = image.dimension(2); in operator ()() local 236 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) in operator ()() 258 ? x1 * (image_width - 1) + x * width_scale in operator ()() 259 : 0.5 * (x1 + x2) * (image_width - 1); in operator ()() 260 if (in_x < 0 || in_x > image_width - 1) { in operator ()() 288 ? x1 * (image_width - 1) + x * width_scale in operator ()() 289 : 0.5 * (x1 + x2) * (image_width - 1); in operator ()() 290 if (in_x < 0 || in_x > image_width - 1) { in operator ()() [all …]
|
D | mkl_quantized_conv_ops_test.cc | 107 const int image_width = 4; in TEST_F() local 120 {image_batch_count, image_height, image_width, depth}); in TEST_F() 182 const int expected_width = image_width; in TEST_F() 214 const int image_width = 4; in TEST_F() local 218 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 245 const int expected_width = image_width; in TEST_F() 296 const int image_width = 4; in TEST_F() local 300 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 327 const int expected_width = image_width; in TEST_F() 352 const int image_width = 4; in TEST_F() local [all …]
|
D | mkl_fused_ops_test.cc | 92 static void VerifyBiasAddTensorsClose(int depth, int image_width, in VerifyBiasAddTensorsClose() argument 99 Tensor image(dtype, {image_batch_count, image_height, image_width, depth}); in VerifyBiasAddTensorsClose() 218 int depth = kDepth, int image_width = kImageWidth, in VerifyConv2DWithBias() argument 235 depth, image_width, image_height, image_batch_count, filter_size, in VerifyConv2DWithBias() 243 int image_width = kImageWidth, in VerifyConv2DWithBiasAndRelu() argument 260 depth, image_width, image_height, image_batch_count, filter_size, in VerifyConv2DWithBiasAndRelu() 351 const int image_width = 4; in TEST_F() local 354 Tensor image(DT_FLOAT, {image_batch_count, image_height, image_width, depth}); in TEST_F() 379 const int image_width = 4; in TEST_F() local 382 Tensor image(DT_FLOAT, {image_batch_count, depth, image_height, image_width}); in TEST_F() [all …]
|
D | conv_ops_test.cc | 114 const int image_width = 4; in HandwrittenConv() local 121 Tensor image(dtype, {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 133 const int resized_width = image_width; in HandwrittenConv() 168 const int expected_width = image_width; in HandwrittenConv() 429 const int image_width = 4; in HandwrittenConv() local 437 {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 472 const int expected_width = image_width; in HandwrittenConv() 494 const int image_width = 6; in AnisotropicStrides() local 498 {image_batch_count, image_height, image_width, depth}); in AnisotropicStrides() 744 void VerifyBiasAddTensorsNear(int depth, int image_width, int image_height, in VerifyBiasAddTensorsNear() argument [all …]
|
/external/tensorflow/tensorflow/contrib/image/python/ops/ |
D | sparse_image_warp.py | 31 def _get_grid_locations(image_height, image_width): argument 35 x_range = np.linspace(0, image_width - 1, image_width) 46 def _get_boundary_locations(image_height, image_width, num_points_per_edge): argument 49 x_range = np.linspace(0, image_width - 1, num_points_per_edge + 2) 52 np.logical_or(xs == 0, xs == image_width - 1), 59 image_width, boundary_points_per_edge): argument 82 boundary_point_locations = _get_boundary_locations(image_height, image_width, 175 batch_size, image_height, image_width, _ = image.get_shape().as_list() 179 grid_locations = _get_grid_locations(image_height, image_width) 182 [image_height * image_width, 2]) [all …]
|
/external/tensorflow/tensorflow/contrib/image/python/kernel_tests/ |
D | sparse_image_warp_test.py | 46 image_width = 11 48 locs = sparse_image_warp._get_boundary_locations(image_height, image_width, 54 for j in (0, image_width - 1): 58 for j in (0, image_width - 1): 67 image_width = 3 68 grid = sparse_image_warp._get_grid_locations(image_height, image_width) 70 for j in range(image_width): 85 image_width = 4 89 size=[batch_size, image_height, image_width, channels]) 127 image_width = 7 [all …]
|
/external/libyuv/files/util/ |
D | psnr_main.cc | 56 int image_width = 0, image_height = 0; variable 176 image_width = atoi(argv[++c]); // NOLINT in ParseOptions() 210 if (image_width == 0 || image_height == 0) { in ParseOptions() 220 image_width = org_width; in ParseOptions() 227 image_width = org_width; in ParseOptions() 231 image_width = rec_width; in ParseOptions() 278 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height); in UpdateMetrics() 280 CalcSSIM(u_org, u_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics() 282 CalcSSIM(v_org, v_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics() 355 const int y_size = image_width * image_height; in main() [all …]
|
D | yuvconvert.cc | 31 int image_width = 0, image_height = 0; // original width and height variable 94 image_width = atoi(argv[++c]); // NOLINT in ParseOptions() 135 if (image_width == 0 || image_height == 0) { in ParseOptions() 137 image_width = org_width; in ParseOptions() 140 image_width = rec_width; in ParseOptions() 152 dst_width = Abs(image_width); in ParseOptions() 224 int org_size = Abs(image_width) * Abs(image_height) * 4; // ARGB in main() 227 const int y_size = Abs(image_width) * Abs(image_height); in main() 229 ((Abs(image_width) + 1) / 2) * ((Abs(image_height) + 1) / 2); in main() 262 printf("Size: %dx%d to %dx%d\n", image_width, image_height, dst_width, in main() [all …]
|
D | ssim.cc | 297 const int image_width, in CalcSSIM() argument 301 const int KERNEL_X = (image_width < KERNEL) ? image_width : KERNEL; in CalcSSIM() 302 const int start_x = start_max(image_width - 8 + KERNEL_X, KERNEL_X); in CalcSSIM() 304 const int stride = image_width; in CalcSSIM() 307 for (int i = 0; i < image_width; ++i) { in CalcSSIM() 308 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 317 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 322 if (start_x < image_width) { in CalcSSIM() 336 (j - KERNEL + k) * stride + image_width - kScratchWidth; in CalcSSIM() 348 for (int i = 0; i < image_width; ++i) { in CalcSSIM() [all …]
|
/external/libjpeg-turbo/ |
D | jdmaster.c | 116 jdiv_round_up((long)cinfo->image_width, (long)DCTSIZE); in jpeg_core_output_dimensions() 124 jdiv_round_up((long)cinfo->image_width * 2L, (long)DCTSIZE); in jpeg_core_output_dimensions() 132 jdiv_round_up((long)cinfo->image_width * 3L, (long)DCTSIZE); in jpeg_core_output_dimensions() 140 jdiv_round_up((long)cinfo->image_width * 4L, (long)DCTSIZE); in jpeg_core_output_dimensions() 148 jdiv_round_up((long)cinfo->image_width * 5L, (long)DCTSIZE); in jpeg_core_output_dimensions() 156 jdiv_round_up((long)cinfo->image_width * 6L, (long)DCTSIZE); in jpeg_core_output_dimensions() 164 jdiv_round_up((long)cinfo->image_width * 7L, (long)DCTSIZE); in jpeg_core_output_dimensions() 172 jdiv_round_up((long)cinfo->image_width * 8L, (long)DCTSIZE); in jpeg_core_output_dimensions() 180 jdiv_round_up((long)cinfo->image_width * 9L, (long)DCTSIZE); in jpeg_core_output_dimensions() 188 jdiv_round_up((long)cinfo->image_width * 10L, (long)DCTSIZE); in jpeg_core_output_dimensions() [all …]
|
D | rdppm.c | 157 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_row() 165 for (col = cinfo->image_width; col > 0; col--) { \ 221 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_cmyk_row() 227 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_cmyk_row() 238 for (col = cinfo->image_width; col > 0; col--) { \ 295 for (col = cinfo->image_width; col > 0; col--) { in get_text_rgb_cmyk_row() 303 for (col = cinfo->image_width; col > 0; col--) { in get_text_rgb_cmyk_row() 329 for (col = cinfo->image_width; col > 0; col--) { in get_scaled_gray_row() 389 for (col = cinfo->image_width; col > 0; col--) { in get_gray_cmyk_row() 395 for (col = cinfo->image_width; col > 0; col--) { in get_gray_cmyk_row() [all …]
|
D | rdbmp.c | 181 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 188 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 204 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 215 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 260 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row() 274 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row() 282 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row() 325 for (col = cinfo->image_width; col > 0; col--) { in get_32bit_row() 340 for (col = cinfo->image_width; col > 0; col--) { in get_32bit_row() 348 for (col = cinfo->image_width; col > 0; col--) { in get_32bit_row() [all …]
|
/external/libpng/contrib/gregbook/ |
D | rpng-win.c | 152 static ulg image_width, image_height, image_rowbytes; variable 343 if ((rc = readpng_init(infile, &image_width, &image_height)) != 0) { in WinMain() 498 wimage_rowbytes = ((3*image_width + 3L) >> 2) << 2; in rpng_win_create_window() 522 bmih->biWidth = image_width; in rpng_win_create_window() 535 for (i = image_width; i > 0; --i) { in rpng_win_create_window() 572 CW_USEDEFAULT, CW_USEDEFAULT, image_width+extra_width, in rpng_win_create_window() 597 image_width, image_rowbytes, wimage_rowbytes)) in rpng_win_display_image() 610 for (i = image_width; i > 0; --i) { in rpng_win_display_image() 619 for (i = image_width; i > 0; --i) { in rpng_win_display_image() 647 rect.right = (LONG)image_width; /* possibly off by one? */ in rpng_win_display_image() [all …]
|
D | rpng-x.c | 136 static ulg image_width, image_height, image_rowbytes; variable 304 if ((rc = readpng_init(infile, &image_width, &image_height)) != 0) { in main() 558 window = XCreateWindow(display, root, 0, 0, image_width, image_height, 0, in rpng_x_create_window() 580 size_hints->min_width = size_hints->max_width = (int)image_width; in rpng_x_create_window() 635 XFillRectangle(display, window, gc, 0, 0, image_width, image_height); in rpng_x_create_window() 652 xdata = (uch *)malloc(4*image_width*image_height); in rpng_x_create_window() 655 xdata = (uch *)malloc(2*image_width*image_height); in rpng_x_create_window() 658 xdata = (uch *)malloc(image_width*image_height); in rpng_x_create_window() 668 (char *)xdata, image_width, image_height, pad, 0); in rpng_x_create_window() 707 image_width, image_rowbytes, ximage_rowbytes)) in rpng_x_display_image() [all …]
|
/external/tensorflow/tensorflow/lite/tools/accuracy/ilsvrc/ |
D | inception_preprocessing.h | 65 InceptionPreprocessingStage(int image_width, int image_height, in InceptionPreprocessingStage() argument 68 image_width_(image_width), in InceptionPreprocessingStage() 76 InceptionPreprocessingStage(int image_width, int image_height, in InceptionPreprocessingStage() argument 79 image_width_(image_width), in InceptionPreprocessingStage()
|
/external/tensorflow/tensorflow/examples/multibox_detector/ |
D | main.cc | 236 void DrawBox(const int image_width, const int image_height, int left, int top, in DrawBox() argument 243 left = std::max(0, std::min(image_width - 1, left)); in DrawBox() 244 right = std::max(0, std::min(image_width - 1, right)); in DrawBox() 249 image_ref((top * image_width + x) * 3 + i) = val; in DrawBox() 250 image_ref((bottom * image_width + x) * 3 + i) = val; in DrawBox() 253 image_ref((y * image_width + left) * 3 + i) = val; in DrawBox() 254 image_ref((y * image_width + right) * 3 + i) = val; in DrawBox() 292 const int image_width = original_tensor->shape().dim_size(1); in PrintTopDetections() local 306 float left = decoded_location[0] * image_width; in PrintTopDetections() 308 float right = decoded_location[2] * image_width; in PrintTopDetections() [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | depthwise_conv_test.cc | 175 const int image_width = 9; in TEST_P() local 184 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 228 const int image_width = 3; in TEST_P() local 237 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 368 const int image_width = 9; in TEST_P() local 377 {image_batch_count, image_height, image_width, depth}, in TEST_P() 427 const int image_width = 3; in TEST_P() local 436 {image_batch_count, image_height, image_width, depth}, in TEST_P()
|
D | conv_test.cc | 317 const int image_width = 4; in TEST_P() local 328 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 383 const int image_width = 4; in TEST_P() local 394 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 437 const int image_width = 4; in TEST_P() local 448 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 493 const int image_width = 4; in TEST_P() local 504 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 535 const int image_width = 9; in TEST_P() local 548 {image_batch_count, image_height, image_width, depth}}, in TEST_P() [all …]
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | report_html.py | 22 def __init__(self, image_width, image_height, score_colors): argument 49 ''' % (image_width, image_height)) 137 self.image_width = self.screen_size[0] * 0.5 139 self.image_height = self.image_width / touch_width * touch_height 140 self.doc = TemplateHtml(self.image_width, self.image_height,
|
/external/libxcam/tests/ |
D | test-pipe-manager.cpp | 66 void set_image_width (uint32_t image_width) { in set_image_width() argument 67 _image_width = image_width; in set_image_width() 206 uint32_t image_width = 1920; in main() local 253 image_width = atoi (optarg); in main() 380 pipe_manager->set_image_width (image_width); in main() 413 cl_post_processor->set_scaler_factor (640.0 / image_width); in main() 418 buf_info.init (pixel_format, image_width, image_height); in main()
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | bitmap_helpers_impl.h | 31 void resize(T* out, uint8_t* in, int image_height, int image_width, in resize() argument 34 int number_of_pixels = image_height * image_width * image_channels; in resize() 51 {1, image_height, image_width, image_channels}, quant); in resize()
|
/external/libjpeg-turbo/simd/i386/ |
D | jsimd.c | 214 avx2fct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_ycc_convert() 216 sse2fct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_ycc_convert() 218 mmxfct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_ycc_convert() 273 avx2fct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_gray_convert() 275 sse2fct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_gray_convert() 277 mmxfct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_gray_convert() 393 jsimd_h2v2_downsample_avx2(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v2_downsample() 398 jsimd_h2v2_downsample_sse2(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v2_downsample() 403 jsimd_h2v2_downsample_mmx(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v2_downsample() 413 jsimd_h2v1_downsample_avx2(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v1_downsample() [all …]
|
/external/libjpeg-turbo/simd/powerpc/ |
D | jcsample-altivec.c | 29 void jsimd_h2v1_downsample_altivec(JDIMENSION image_width, in jsimd_h2v1_downsample_altivec() argument 50 expand_right_edge(input_data, max_v_samp_factor, image_width, in jsimd_h2v1_downsample_altivec() 87 jsimd_h2v2_downsample_altivec(JDIMENSION image_width, int max_v_samp_factor, in jsimd_h2v2_downsample_altivec() argument 107 expand_right_edge(input_data, max_v_samp_factor, image_width, in jsimd_h2v2_downsample_altivec()
|