/external/libaom/libaom/test/ |
D | cnn_test.cc | 43 static void RunCNNTest(int image_width, int image_height, const float *input, in RunCNNTest() argument 48 av1_find_cnn_output_size(image_width, image_height, cnn_config, &out_width, in RunCNNTest() 66 RunMultiOutCNNTest(&input, image_width, image_height, in_stride, cnn_config, in RunCNNTest() 72 static void RunMultiOutCNNTest(const float **input, int image_width, in RunMultiOutCNNTest() argument 85 av1_find_cnn_output_size(image_width, image_height, cnn_config, out_widths, in RunMultiOutCNNTest() 87 av1_cnn_predict(input, image_width, image_height, in_stride, cnn_config, in RunMultiOutCNNTest() 145 int image_width = 16; in TEST_F() local 323 RunCNNTest(image_width, image_height, input, expected_same, &cnn_config, in TEST_F() 324 image_width, &thread_data, MSE_INT_TOL); in TEST_F() 330 RunCNNTest(image_width, image_height, input, expected_replicate, &cnn_config, in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | crop_and_resize_op_gpu.cu.cc | 43 int num_boxes, int batch, int image_height, int image_width, 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 | crop_and_resize_op.cc | 146 const int image_width = image.dim_size(2); in ComputeAsync() local 149 context, image_height > 0 && image_width > 0, in ComputeAsync() 219 const int image_width = image.dimension(2); in operator ()() local 255 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) in operator ()() 277 ? x1 * (image_width - 1) + x * width_scale in operator ()() 278 : 0.5 * (x1 + x2) * (image_width - 1); in operator ()() 279 if (in_x < 0 || in_x > image_width - 1) { in operator ()() 307 ? x1 * (image_width - 1) + x * width_scale in operator ()() 308 : 0.5 * (x1 + x2) * (image_width - 1); in operator ()() 309 if (in_x < 0 || in_x > image_width - 1) { in operator ()() [all …]
|
/external/OpenCL-CTS/test_common/harness/ |
D | clImageHelper.h | 34 size_t image_width, size_t image_height, in create_image_2d() argument 48 image_desc_dest.image_width = image_width; in create_image_2d() 70 clCreateImage2D(context, flags, image_format, image_width, image_height, in create_image_2d() 88 const cl_image_format *image_format, size_t image_width, in create_image_2d_buffer() argument 96 image_desc_dest.image_width = image_width; in create_image_2d_buffer() 120 size_t image_width, size_t image_height, in create_image_3d() argument 135 image_desc.image_width = image_width; in create_image_3d() 156 mImage = clCreateImage3D(context, flags, image_format, image_width, in create_image_3d() 172 const cl_image_format *image_format, size_t image_width, in create_image_2d_array() argument 186 image_desc.image_width = image_width; in create_image_2d_array() [all …]
|
/external/tensorflow/tensorflow/core/kernels/mkl/ |
D | mkl_quantized_conv_ops_test.cc | 61 const int image_width = 2; in RunQuantizedDepthwiseConv2DOp() local 69 TensorShape({image_batch_count, image_height, image_width, depth}), in RunQuantizedDepthwiseConv2DOp() 112 image_width, depth})); in RunQuantizedDepthwiseConv2DOp() 132 const int image_width = 4; in TEST_F() local 145 {image_batch_count, image_height, image_width, depth}); in TEST_F() 200 const int expected_width = image_width; in TEST_F() 219 const int image_width = 3; in TEST_F() local 247 {image_batch_count, image_height, image_width, depth}); in TEST_F() 304 const int image_width = 4; in TEST_F() local 308 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() [all …]
|
D | mkl_quantized_conv_ops_perchannel_test.cc | 65 const int image_width = 4; in TEST_F() local 77 DT_FLOAT, {image_batch_count, image_height, image_width, image_channel}); in TEST_F() 152 const int expected_width = image_width; in TEST_F()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/task/ |
D | storage_type_util.cc | 67 const uint64_t image_width = buffer_size / flt4_size; in CanCreateTensorWithShape() local 68 if (image_width > gpu_info.GetMaxImageBufferWidth()) { in CanCreateTensorWithShape() 70 "Image buffer with width - ", image_width, in CanCreateTensorWithShape() 89 const int image_width = shape.w * shape.b; in CanCreateTensorWithShape() local 92 if (image_width > gpu_info.GetMaxImage3DWidth()) { in CanCreateTensorWithShape() 94 "Image3D with width - ", image_width, in CanCreateTensorWithShape() 119 const int image_width = shape.w * shape.b; in CanCreateTensorWithShape() local 122 if (image_width > gpu_info.GetMaxImage2DWidth()) { in CanCreateTensorWithShape() 124 "Image2DArray with width - ", image_width, in CanCreateTensorWithShape() 142 const int image_width = shape.w * shape.b * shape.d; in CanCreateTensorWithShape() local [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
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 | conv_ops_test.cc | 60 const int image_width = 4; in HandwrittenConv() local 67 Tensor image(dtype, {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 79 const int resized_width = image_width; in HandwrittenConv() 114 const int expected_width = image_width; in HandwrittenConv() 375 const int image_width = 4; in HandwrittenConv() local 383 {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 418 const int expected_width = image_width; in HandwrittenConv() 440 const int image_width = 6; in AnisotropicStrides() local 444 {image_batch_count, image_height, image_width, depth}); in AnisotropicStrides() 723 void VerifyBiasAddTensorsNear(int depth, int image_width, int image_height, in VerifyBiasAddTensorsNear() argument [all …]
|
/external/libyuv/files/util/ |
D | psnr_main.cc | 56 int image_width = 0, image_height = 0; variable 179 image_width = atoi(argv[++c]); // NOLINT in ParseOptions() 213 if (image_width == 0 || image_height == 0) { in ParseOptions() 223 image_width = org_width; in ParseOptions() 230 image_width = org_width; in ParseOptions() 234 image_width = rec_width; in ParseOptions() 281 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height); in UpdateMetrics() 283 CalcSSIM(u_org, u_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics() 285 CalcSSIM(v_org, v_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics() 361 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 95 image_width = atoi(argv[++c]); // NOLINT in ParseOptions() 136 if (image_width == 0 || image_height == 0) { in ParseOptions() 138 image_width = org_width; in ParseOptions() 141 image_width = rec_width; in ParseOptions() 153 dst_width = Abs(image_width); in ParseOptions() 225 int org_size = Abs(image_width) * Abs(image_height) * 4; // ARGB in main() 228 const int y_size = Abs(image_width) * Abs(image_height); in main() 230 ((Abs(image_width) + 1) / 2) * ((Abs(image_height) + 1) / 2); in main() 263 printf("Size: %dx%d to %dx%d\n", image_width, image_height, dst_width, in main() [all …]
|
D | ssim.cc | 300 const int image_width, in CalcSSIM() argument 304 const int KERNEL_X = (image_width < KERNEL) ? image_width : KERNEL; in CalcSSIM() 305 const int start_x = start_max(image_width - 8 + KERNEL_X, KERNEL_X); in CalcSSIM() 307 const int stride = image_width; in CalcSSIM() 310 for (int i = 0; i < image_width; ++i) { in CalcSSIM() 311 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 320 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 325 if (start_x < image_width) { in CalcSSIM() 339 (j - KERNEL + k) * stride + image_width - kScratchWidth; in CalcSSIM() 351 for (int i = 0; i < image_width; ++i) { in CalcSSIM() [all …]
|
/external/libjpeg-turbo/ |
D | jdmaster.c | 104 jdiv_round_up((long)cinfo->image_width, (long)DCTSIZE); in jpeg_core_output_dimensions() 112 jdiv_round_up((long)cinfo->image_width * 2L, (long)DCTSIZE); in jpeg_core_output_dimensions() 120 jdiv_round_up((long)cinfo->image_width * 3L, (long)DCTSIZE); in jpeg_core_output_dimensions() 128 jdiv_round_up((long)cinfo->image_width * 4L, (long)DCTSIZE); in jpeg_core_output_dimensions() 136 jdiv_round_up((long)cinfo->image_width * 5L, (long)DCTSIZE); in jpeg_core_output_dimensions() 144 jdiv_round_up((long)cinfo->image_width * 6L, (long)DCTSIZE); in jpeg_core_output_dimensions() 152 jdiv_round_up((long)cinfo->image_width * 7L, (long)DCTSIZE); in jpeg_core_output_dimensions() 160 jdiv_round_up((long)cinfo->image_width * 8L, (long)DCTSIZE); in jpeg_core_output_dimensions() 168 jdiv_round_up((long)cinfo->image_width * 9L, (long)DCTSIZE); in jpeg_core_output_dimensions() 176 jdiv_round_up((long)cinfo->image_width * 10L, (long)DCTSIZE); in jpeg_core_output_dimensions() [all …]
|
D | rdppm.c | 146 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_row() 154 for (col = cinfo->image_width; col > 0; col--) { \ 210 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_cmyk_row() 216 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_cmyk_row() 227 for (col = cinfo->image_width; col > 0; col--) { \ 284 for (col = cinfo->image_width; col > 0; col--) { in get_text_rgb_cmyk_row() 292 for (col = cinfo->image_width; col > 0; col--) { in get_text_rgb_cmyk_row() 318 for (col = cinfo->image_width; col > 0; col--) { in get_scaled_gray_row() 378 for (col = cinfo->image_width; col > 0; col--) { in get_gray_cmyk_row() 384 for (col = cinfo->image_width; col > 0; col--) { in get_gray_cmyk_row() [all …]
|
D | rdbmp.c | 171 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 178 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 194 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 205 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row() 250 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row() 263 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row() 271 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row() 314 for (col = cinfo->image_width; col > 0; col--) { in get_32bit_row() 328 for (col = cinfo->image_width; col > 0; col--) { in get_32bit_row() 336 for (col = cinfo->image_width; col > 0; col--) { in get_32bit_row() [all …]
|
D | jcsample.c | 165 expand_right_edge(input_data, cinfo->max_v_samp_factor, cinfo->image_width, in int_downsample() 199 cinfo->image_width); in fullsize_downsample() 201 expand_right_edge(output_data, cinfo->max_v_samp_factor, cinfo->image_width, in fullsize_downsample() 232 expand_right_edge(input_data, cinfo->max_v_samp_factor, cinfo->image_width, in h2v1_downsample() 268 expand_right_edge(input_data, cinfo->max_v_samp_factor, cinfo->image_width, in h2v2_downsample() 311 cinfo->image_width, output_cols * 2); in h2v2_smooth_downsample() 400 cinfo->image_width, output_cols); in fullsize_smooth_downsample()
|
/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/examples/multibox_detector/ |
D | main.cc | 240 void DrawBox(const int image_width, const int image_height, int left, int top, in DrawBox() argument 247 left = std::max(0, std::min(image_width - 1, left)); in DrawBox() 248 right = std::max(0, std::min(image_width - 1, right)); in DrawBox() 253 image_ref((top * image_width + x) * 3 + i) = val; in DrawBox() 254 image_ref((bottom * image_width + x) * 3 + i) = val; in DrawBox() 257 image_ref((y * image_width + left) * 3 + i) = val; in DrawBox() 258 image_ref((y * image_width + right) * 3 + i) = val; in DrawBox() 296 const int image_width = original_tensor->shape().dim_size(1); in PrintTopDetections() local 310 float left = decoded_location[0] * image_width; in PrintTopDetections() 312 float right = decoded_location[2] * image_width; in PrintTopDetections() [all …]
|
/external/OpenCL-CTS/test_conformance/api/ |
D | test_mem_object_info.cpp | 495 imageInfo.image_width = imageInfo.image_height = imageInfo.image_depth = 1; in test_get_image_info() 514 imageInfo.image_width = get_image_dim(&d, 1023); in test_get_image_info() 519 imageInfo.image_width = get_image_dim(&d, 1023); in test_get_image_info() 531 imageInfo.image_width = get_image_dim(&d, 127); in test_get_image_info() 538 imageInfo.image_width = get_image_dim(&d, 1023); in test_get_image_info() 544 imageInfo.image_width = get_image_dim(&d, 255); in test_get_image_info() 554 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info() 577 imageInfo.image_row_pitch = imageInfo.image_width * pixelSize; in test_get_image_info() 587 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info() 609 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info() [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | conv_test.cc | 510 const int image_width = 4; in TEST_P() local 521 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 585 const int image_width = 4; in TEST_P() local 601 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 655 const int image_width = 4; in TEST_P() local 666 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 709 const int image_width = 4; in TEST_P() local 720 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 765 const int image_width = 4; in TEST_P() local 776 {image_batch_count, image_height, image_width, depth}}, in TEST_P() [all …]
|
/external/libjpeg-turbo/simd/arm/ |
D | jcsample-neon.c | 76 void jsimd_h2v1_downsample_neon(JDIMENSION image_width, int max_v_samp_factor, in jsimd_h2v1_downsample_neon() argument 83 const int mask_offset = 16 * ((width_in_blocks * 2 * DCTSIZE) - image_width); in jsimd_h2v1_downsample_neon() 130 void jsimd_h2v2_downsample_neon(JDIMENSION image_width, int max_v_samp_factor, in jsimd_h2v2_downsample_neon() argument 137 const int mask_offset = 16 * ((width_in_blocks * 2 * DCTSIZE) - image_width); in jsimd_h2v2_downsample_neon()
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | bitmap_helpers_impl.h | 30 void resize(T* out, uint8_t* in, int image_height, int image_width, in resize() argument 33 int number_of_pixels = image_height * image_width * image_channels; in resize() 50 {1, image_height, image_width, image_channels}, quant); in resize()
|
/external/OpenCL-CTS/test_conformance/mem_host_flags/ |
D | checker_image_mem_host_read_only.hpp | 31 m_cl_Image_desc.image_width = 0; in cImage_check_mem_host_read_only() 118 return ((cl_int)(m_cl_Image_desc.image_width*m_cl_Image_desc.image_height * in get_image_content_size() 126 (m_cl_Image_desc.image_height * m_cl_Image_desc.image_width); in get_image_data_size() 133 return ((cl_int)(m_cl_Image_desc.image_width*m_cl_Image_desc.image_height * in get_image_elements() 140 int all = (int)(m_cl_Image_desc.image_width * m_cl_Image_desc.image_height * in SetupImage()
|
/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 …]
|