/external/tensorflow/tensorflow/core/kernels/ |
D | crop_and_resize_op_gpu.cu.cc | 38 const int32* box_ind_ptr, int num_boxes, int batch, int image_height, in CropAndResizeKernel() argument 62 (crop_height > 1) ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in CropAndResizeKernel() 68 ? y1 * (image_height - 1) + y * height_scale in CropAndResizeKernel() 69 : 0.5 * (y1 + y2) * (image_height - 1); in CropAndResizeKernel() 70 if (in_y < 0 || in_y > image_height - 1) { in CropAndResizeKernel() 92 image_ptr[((b_in * image_height + top_y_index) * image_width + in CropAndResizeKernel() 97 image_ptr[((b_in * image_height + top_y_index) * image_width + in CropAndResizeKernel() 102 image_ptr[((b_in * image_height + bottom_y_index) * image_width + in CropAndResizeKernel() 107 image_ptr[((b_in * image_height + bottom_y_index) * image_width + in CropAndResizeKernel() 120 const int32* box_ind_ptr, int num_boxes, int batch, int image_height, in CropAndResizeBackpropImageKernel() argument [all …]
|
D | quantized_conv_ops_test.cc | 59 const int image_height = 3; in TEST_F() local 70 {image_batch_count, image_height, image_width, depth}); in TEST_F() 120 const int expected_height = image_height * filter_count; in TEST_F() 151 const int image_height = 3; in TEST_F() local 154 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 168 const int expected_height = image_height * filter_count; in TEST_F() 194 const int image_height = 4; in TEST_F() local 197 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 211 const int expected_height = (image_height * filter_count) / stride; in TEST_F() 235 const int image_height = 4; in TEST_F() local [all …]
|
D | crop_and_resize_op.cc | 139 const int image_height = image.dim_size(1); in ComputeAsync() local 143 context, image_height > 0 && image_width > 0, in ComputeAsync() 210 const int image_height = image.dimension(1); in operator ()() local 233 ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in operator ()() 241 ? y1 * (image_height - 1) + y * height_scale in operator ()() 242 : 0.5 * (y1 + y2) * (image_height - 1); in operator ()() 243 if (in_y < 0 || in_y > image_height - 1) { in operator ()() 357 const int image_height = internal::SubtleMustCopy(image_size_vec(1)); in ComputeAsync() local 361 context, image_height > 0 && image_width > 0, in ComputeAsync() 372 0, TensorShape({batch_size, image_height, image_width, depth}), in ComputeAsync() [all …]
|
D | conv_ops_test.cc | 97 const int image_height = 3; in HandwrittenConv() local 104 {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 117 const int resized_height = image_height; in HandwrittenConv() 152 const int expected_height = image_height * filter_count; in HandwrittenConv() 367 const int image_height = 3; in HandwrittenConv() local 374 {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 410 const int expected_height = image_height * filter_count; in HandwrittenConv() 432 const int image_height = 3; in AnisotropicStrides() local 435 {image_batch_count, image_height, image_width, depth}); in AnisotropicStrides()
|
/external/libxcam/cl_kernel/ |
D | kernel_tonemapping.cl | 14 …only image2d_t input, __write_only image2d_t output, float y_max, float y_target, int image_height) 35 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height)); 36 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2)); 37 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3)); 57 …ta_R = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height)); 58 … = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height * 2)); 59 … = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height * 3)); 103 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R); 104 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 2), src_data_B); 105 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 3), src_data_Gb);
|
D | kernel_newtonemapping.cl | 15 int image_width, int image_height) 30 int row_per_block = image_height / BLOCK_FACTOR; 38 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height)); 39 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2)); 40 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3)); 98 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R); 99 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 2), src_data_B); 100 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 3), src_data_Gb);
|
/external/libyuv/files/util/ |
D | yuvconvert.cc | 31 int image_width = 0, image_height = 0; // original width and height variable 95 image_height = atoi(argv[++c]); // NOLINT in ParseOptions() 135 if (image_width == 0 || image_height == 0) { in ParseOptions() 138 image_height = org_height; in ParseOptions() 141 image_height = rec_height; in ParseOptions() 153 dst_height = Abs(image_height); 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 | psnr_main.cc | 56 int image_width = 0, image_height = 0; variable 177 image_height = atoi(argv[++c]); // NOLINT in ParseOptions() 210 if (image_width == 0 || image_height == 0) { in ParseOptions() 221 image_height = org_height; in ParseOptions() 228 image_height = org_height; in ParseOptions() 232 image_height = rec_height; 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 | ssim.cc | 298 const int image_height) { in CalcSSIM() argument 300 const int KERNEL_Y = (image_height < KERNEL) ? image_height : KERNEL; in CalcSSIM() 303 const int start_y = start_max(image_height - KERNEL_Y, KERNEL_Y); in CalcSSIM() 308 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 315 for (int j = KERNEL_Y; j < image_height - KERNEL_Y; ++j) { in CalcSSIM() 317 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 347 for (int j = start_y; j < image_height; ++j) { in CalcSSIM() 349 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM()
|
/external/libjpeg-turbo/ |
D | jdmaster.c | 118 jdiv_round_up((long) cinfo->image_height, (long) DCTSIZE); in jpeg_core_output_dimensions() 126 jdiv_round_up((long) cinfo->image_height * 2L, (long) DCTSIZE); in jpeg_core_output_dimensions() 134 jdiv_round_up((long) cinfo->image_height * 3L, (long) DCTSIZE); in jpeg_core_output_dimensions() 142 jdiv_round_up((long) cinfo->image_height * 4L, (long) DCTSIZE); in jpeg_core_output_dimensions() 150 jdiv_round_up((long) cinfo->image_height * 5L, (long) DCTSIZE); in jpeg_core_output_dimensions() 158 jdiv_round_up((long) cinfo->image_height * 6L, (long) DCTSIZE); in jpeg_core_output_dimensions() 166 jdiv_round_up((long) cinfo->image_height * 7L, (long) DCTSIZE); in jpeg_core_output_dimensions() 174 jdiv_round_up((long) cinfo->image_height * 8L, (long) DCTSIZE); in jpeg_core_output_dimensions() 182 jdiv_round_up((long) cinfo->image_height * 9L, (long) DCTSIZE); in jpeg_core_output_dimensions() 190 jdiv_round_up((long) cinfo->image_height * 10L, (long) DCTSIZE); in jpeg_core_output_dimensions() [all …]
|
D | jcapistd.c | 85 if (cinfo->next_scanline >= cinfo->image_height) in jpeg_write_scanlines() 91 cinfo->progress->pass_limit = (long) cinfo->image_height; in jpeg_write_scanlines() 104 rows_left = cinfo->image_height - cinfo->next_scanline; in jpeg_write_scanlines() 128 if (cinfo->next_scanline >= cinfo->image_height) { in jpeg_write_raw_data() 136 cinfo->progress->pass_limit = (long) cinfo->image_height; in jpeg_write_raw_data()
|
D | example.c | 62 extern int image_height; /* Number of rows in image */ 126 cinfo.image_height = image_height; in write_JPEG_file() 156 while (cinfo.next_scanline < cinfo.image_height) { in write_JPEG_file()
|
D | rdrle.c | 124 cinfo->image_height = height; in start_input_rle() 266 progress->pub.pass_limit = cinfo->image_height; in load_image() 276 for (row = 0; row < cinfo->image_height; row++) { in load_image() 291 for (row = 0; row < cinfo->image_height; row++) { in load_image() 314 for (row = 0; row < cinfo->image_height; row++) { in load_image() 350 source->row = cinfo->image_height; in load_image()
|
/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() 501 if (image_height > ((size_t)(-1))/wimage_rowbytes) { in rpng_win_create_window() 507 wimage_rowbytes*image_height))) in rpng_win_create_window() 523 bmih->biHeight = -((long)image_height); in rpng_win_create_window() 533 for (j = 0; j < image_height; ++j) { in rpng_win_create_window() 573 image_height+extra_height, NULL, NULL, hInst, NULL); in rpng_win_create_window() 606 for (lastrow = row = 0; row < image_height; ++row) { in rpng_win_display_image() 656 if (lastrow < image_height) { in rpng_win_display_image() 660 rect.bottom = (LONG)image_height; /* 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() 581 size_hints->min_height = size_hints->max_height = (int)image_height; 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() 715 for (lastrow = row = 0; row < image_height; ++row) { in rpng_x_display_image() [all …]
|
/external/mesa3d/src/mesa/drivers/common/ |
D | meta_tex_subimage.c | 151 int image_height = packing->ImageHeight == 0 ? height : packing->ImageHeight; in create_texture_for_pbo() local 152 int full_height = image_height * (depth - 1) + height; in create_texture_for_pbo() 185 int image_height; in _mesa_meta_pbo_TexSubImage() local 215 image_height = packing->ImageHeight == 0 ? height : packing->ImageHeight; in _mesa_meta_pbo_TexSubImage() 245 image_height = 1; in _mesa_meta_pbo_TexSubImage() 286 0, z * image_height, in _mesa_meta_pbo_TexSubImage() 287 width, z * image_height + height, in _mesa_meta_pbo_TexSubImage() 318 int image_height; in _mesa_meta_pbo_GetTexSubImage() local 367 image_height = packing->ImageHeight == 0 ? height : packing->ImageHeight; in _mesa_meta_pbo_GetTexSubImage() 399 image_height = 1; in _mesa_meta_pbo_GetTexSubImage() [all …]
|
/external/tensorflow/tensorflow/contrib/lite/kernels/ |
D | conv_test.cc | 174 const int image_height = 3; in TEST_P() local 184 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 228 const int image_height = 3; in TEST_P() local 238 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 282 const int image_height = 3; in TEST_P() local 292 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 338 const int image_height = 3; in TEST_P() local 348 {image_batch_count, image_height, image_width, depth}}, in TEST_P()
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_CropAndResizeGradImage.pbtxt | 15 `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the 17 `[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in 34 A 1-D tensor with value `[batch, image_height, image_width, depth]` 35 containing the original image size. Both `image_height` and `image_width` need 42 A 4-D tensor of shape `[batch, image_height, image_width, depth]`.
|
D | api_def_CropAndResizeGradBoxes.pbtxt | 12 A 4-D tensor of shape `[batch, image_height, image_width, depth]`. 13 Both `image_height` and `image_width` need to be positive. 22 `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the 24 `[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in
|
/external/libxcam/modules/ocl/ |
D | cl_tnr_handler.cpp | 112 uint32_t image_height = stats->info.height; in calculate_image_histogram() local 115 uint32_t ver_hist_bin = image_height; in calculate_image_histogram() 120 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram() 135 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram() 159 uint32_t image_height = input->get_video_info ().height; in calculate_image_histogram() local 164 uint32_t ver_hist_bin = image_height; in calculate_image_histogram() 181 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram() 206 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram()
|
/external/tensorflow/tensorflow/contrib/lite/examples/label_image/ |
D | bitmap_helpers_impl.h | 37 void resize(T* out, uint8_t* in, int image_height, int image_width, in resize() argument 40 int number_of_pixels = image_height * image_width * image_channels; in resize() 57 {1, image_height, image_width, image_channels}, quant); in resize()
|
/external/tensorflow/tensorflow/contrib/image/python/ops/ |
D | image_ops.py | 77 image_height = math_ops.cast(array_ops.shape(images)[1], 83 angles_to_projective_transforms(angles, image_height, image_width), 124 image_height, argument 151 (image_height - 1))) / 2.0 152 y_offset = ((image_height - 1) - (math_ops.sin(angles) * 154 (image_height - 1))) / 2.0
|
/external/libxcam/tests/ |
D | test-pipe-manager.cpp | 70 void set_image_height (uint32_t image_height) { in set_image_height() argument 71 _image_height = image_height; in set_image_height() 207 uint32_t image_height = 1080; in main() local 258 image_height = atoi (optarg); in main() 381 pipe_manager->set_image_height (image_height); in main() 418 buf_info.init (pixel_format, image_width, image_height); in main()
|
/external/tensorflow/tensorflow/examples/multibox_detector/ |
D | main.cc | 232 void DrawBox(const int image_width, const int image_height, int left, int top, in DrawBox() argument 236 top = std::max(0, std::min(image_height - 1, top)); in DrawBox() 237 bottom = std::max(0, std::min(image_height - 1, bottom)); in DrawBox() 289 const int image_height = original_tensor->shape().dim_size(0); in PrintTopDetections() local 303 float top = decoded_location[1] * image_height; in PrintTopDetections() 305 float bottom = decoded_location[3] * image_height; in PrintTopDetections() 314 DrawBox(image_width, image_height, left, top, right, bottom, &image_flat); in PrintTopDetections()
|
/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)) 139 self.image_height = self.image_width / touch_width * touch_height 140 self.doc = TemplateHtml(self.image_width, self.image_height,
|