Home
last modified time | relevance | path

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

1234

/external/libyuv/files/util/
Dpsnr_main.cc56 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 …]
Dconvert.cc31 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 …]
Dssim.cc297 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/
Djdmaster.c116 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 …]
Dexample.c63 extern int image_width; /* Number of columns in image */
125 cinfo.image_width = image_width; /* image width and height, in pixels */ in write_JPEG_file()
154 row_stride = image_width * 3; /* JSAMPLEs per row in image_buffer */ in write_JPEG_file()
Drdppm.c151 for (col = cinfo->image_width; col > 0; col--) { in get_text_gray_row()
170 for (col = cinfo->image_width; col > 0; col--) { in get_text_rgb_row()
193 for (col = cinfo->image_width; col > 0; col--) { in get_scaled_gray_row()
214 for (col = cinfo->image_width; col > 0; col--) { in get_scaled_rgb_row()
253 for (col = cinfo->image_width; col > 0; col--) { in get_word_gray_row()
280 for (col = cinfo->image_width; col > 0; col--) { in get_word_rgb_row()
340 cinfo->image_width = (JDIMENSION) w; in start_input_ppm()
Djcsample.c166 cinfo->image_width, output_cols * h_expand); in int_downsample()
199 cinfo->max_v_samp_factor, cinfo->image_width); in fullsize_downsample()
202 cinfo->image_width, compptr->width_in_blocks * DCTSIZE); in fullsize_downsample()
233 cinfo->image_width, output_cols * 2); in h2v1_downsample()
270 cinfo->image_width, output_cols * 2); in h2v2_downsample()
313 cinfo->image_width, output_cols * 2); in h2v2_smooth_downsample()
414 cinfo->image_width, output_cols); in fullsize_smooth_downsample()
Djccolext.c42 JDIMENSION num_cols = cinfo->image_width; in LOCAL()
99 JDIMENSION num_cols = cinfo->image_width; in LOCAL()
133 JDIMENSION num_cols = cinfo->image_width; in LOCAL()
Drdtarga.c184 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_gray_row()
202 for (col = cinfo->image_width; col > 0; col--) { in get_8bit_row()
222 for (col = cinfo->image_width; col > 0; col--) { in get_16bit_row()
249 for (col = cinfo->image_width; col > 0; col--) { in get_24bit_row()
466 cinfo->image_width = width; in start_input_tga()
Djdinput.c52 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup()
104 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
120 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
187 jdiv_round_up((long) cinfo->image_width, in per_scan_setup()
Drdjpgcom.c280 unsigned int image_height, image_width; in process_SOFn() local
289 image_width = read_2_bytes(); in process_SOFn()
310 image_width, image_height, num_components, data_precision); in process_SOFn()
Drdrle.c123 cinfo->image_width = width; in start_input_rle()
222 for (col = cinfo->image_width; col > 0; col--) { in get_pseudocolor_row()
297 for (col = 0; col < cinfo->image_width; col++) { in load_image()
323 for (col = cinfo->image_width; col > 0; col--) { in load_image()
/external/libpng/contrib/gregbook/
Drpng-win.c151 static ulg image_width, image_height, image_rowbytes; variable
342 if ((rc = readpng_init(infile, &image_width, &image_height)) != 0) { in WinMain()
497 wimage_rowbytes = ((3*image_width + 3L) >> 2) << 2; in rpng_win_create_window()
515 bmih->biWidth = image_width; in rpng_win_create_window()
528 for (i = image_width; i > 0; --i) { in rpng_win_create_window()
565 CW_USEDEFAULT, CW_USEDEFAULT, image_width+extra_width, in rpng_win_create_window()
590 image_width, image_rowbytes, wimage_rowbytes)) in rpng_win_display_image()
603 for (i = image_width; i > 0; --i) { in rpng_win_display_image()
612 for (i = image_width; i > 0; --i) { in rpng_win_display_image()
640 rect.right = (LONG)image_width; /* possibly off by one? */ in rpng_win_display_image()
[all …]
Drpng-x.c135 static ulg image_width, image_height, image_rowbytes; variable
303 if ((rc = readpng_init(infile, &image_width, &image_height)) != 0) { in main()
557 window = XCreateWindow(display, root, 0, 0, image_width, image_height, 0, in rpng_x_create_window()
579 size_hints->min_width = size_hints->max_width = (int)image_width; in rpng_x_create_window()
634 XFillRectangle(display, window, gc, 0, 0, image_width, image_height); in rpng_x_create_window()
651 xdata = (uch *)malloc(4*image_width*image_height); in rpng_x_create_window()
654 xdata = (uch *)malloc(2*image_width*image_height); in rpng_x_create_window()
657 xdata = (uch *)malloc(image_width*image_height); in rpng_x_create_window()
667 (char *)xdata, image_width, image_height, pad, 0); in rpng_x_create_window()
706 image_width, image_rowbytes, ximage_rowbytes)) in rpng_x_display_image()
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dreport_html.py22 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/libjpeg-turbo/simd/
Djcsample-altivec.c30 jsimd_h2v1_downsample_altivec (JDIMENSION image_width, int max_v_samp_factor, in jsimd_h2v1_downsample_altivec() argument
49 expand_right_edge(input_data, max_v_samp_factor, image_width, in jsimd_h2v1_downsample_altivec()
86 jsimd_h2v2_downsample_altivec (JDIMENSION image_width, int max_v_samp_factor, in jsimd_h2v2_downsample_altivec() argument
106 expand_right_edge(input_data, max_v_samp_factor, image_width, in jsimd_h2v2_downsample_altivec()
Djsimd_i386.c189 sse2fct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_ycc_convert()
191 mmxfct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_ycc_convert()
239 sse2fct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_gray_convert()
241 mmxfct(cinfo->image_width, input_buf, output_buf, output_row, num_rows); in jsimd_rgb_gray_convert()
344 jsimd_h2v2_downsample_sse2(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v2_downsample()
349 jsimd_h2v2_downsample_mmx(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v2_downsample()
359 jsimd_h2v1_downsample_sse2(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v1_downsample()
364 jsimd_h2v1_downsample_mmx(cinfo->image_width, cinfo->max_v_samp_factor, in jsimd_h2v1_downsample()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jcsample.c159 cinfo->image_width, output_cols * h_expand); in int_downsample()
192 cinfo->max_v_samp_factor, cinfo->image_width); in fullsize_downsample()
195 cinfo->image_width, compptr->width_in_blocks * DCTSIZE); in fullsize_downsample()
226 cinfo->image_width, output_cols * 2); in h2v1_downsample()
263 cinfo->image_width, output_cols * 2); in h2v2_downsample()
306 cinfo->image_width, output_cols * 2); in h2v2_smooth_downsample()
407 cinfo->image_width, output_cols); in fullsize_smooth_downsample()
Dfpdfapi_jdmaster.c102 jdiv_round_up((long) cinfo->image_width, 8L); in jpeg_calc_output_dimensions()
109 jdiv_round_up((long) cinfo->image_width, 4L); in jpeg_calc_output_dimensions()
116 jdiv_round_up((long) cinfo->image_width, 2L); in jpeg_calc_output_dimensions()
122 cinfo->output_width = cinfo->image_width; in jpeg_calc_output_dimensions()
151 jdiv_round_up((long) cinfo->image_width * in jpeg_calc_output_dimensions()
163 cinfo->output_width = cinfo->image_width; in jpeg_calc_output_dimensions()
Dfpdfapi_jccolor.c140 JDIMENSION num_cols = cinfo->image_width; in rgb_ycc_convert()
196 JDIMENSION num_cols = cinfo->image_width; in rgb_gray_convert()
235 JDIMENSION num_cols = cinfo->image_width; in cmyk_ycck_convert()
287 JDIMENSION num_cols = cinfo->image_width; in grayscale_convert()
318 JDIMENSION num_cols = cinfo->image_width; in null_convert()
Dfpdfapi_jcmaster.c55 if (cinfo->image_height <= 0 || cinfo->image_width <= 0 in initial_setup()
61 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup()
65 samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components; in initial_setup()
102 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
109 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
350 jdiv_round_up((long) cinfo->image_width, in per_scan_setup()
Dfpdfapi_jdinput.c47 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup()
85 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
96 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
163 jdiv_round_up((long) cinfo->image_width, in per_scan_setup()
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpeg.cpp139 *width = cinfo.image_width; in JpegLoadInfo()
216 cinfo.image_width = m_OrigWidth; in InitDecode()
228 m_OrigWidth = cinfo.image_width; in InitDecode()
269 if ((int)cinfo.image_width < width) in Create()
273 (static_cast<uint32_t>(cinfo.image_width) * cinfo.num_components + 3) / in Create()
448 *width = ctx->m_Info.image_width;
530 cinfo.image_width = width;
/external/autotest/client/site_tests/policy_ImagesBlockedForUrls/
Dpolicy_ImagesBlockedForUrls.py79 image_width = tab.EvaluateJavaScript(
81 return image_width < self.MINIMUM_IMAGE_WIDTH
/external/autotest/client/site_tests/policy_ImagesAllowedForUrls/
Dpolicy_ImagesAllowedForUrls.py80 image_width = tab.EvaluateJavaScript(
82 return image_width < self.MINIMUM_IMAGE_WIDTH

1234