Home
last modified time | relevance | path

Searched refs:row_bytes (Results 1 – 17 of 17) sorted by relevance

/external/libpng/contrib/pngminus/
Dpnm2png.c198 volatile png_uint_32 row_bytes; in pnm2png() local
370 row_bytes = (width * channels * bit_depth + 7) / 8; in pnm2png()
374 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); in pnm2png()
377 malloc (row_bytes * height * sizeof (png_byte))) == NULL) in pnm2png()
387 for (i = 0; i < (int) row_bytes; i++) in pnm2png()
491 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png()
Dpng2pnm.c202 png_uint_32 row_bytes; in png2pnm() local
321 row_bytes = png_get_rowbytes (png_ptr, info_ptr); in png2pnm()
324 malloc (row_bytes * height * sizeof (png_byte))) == NULL) { in png2pnm()
340 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm()
/external/libpng/
Dpngwutil.c2331 png_size_t row_bytes);
2336 const png_size_t row_bytes, const png_size_t lmins) in png_setup_sub_row() argument
2352 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row()
2366 png_setup_up_row(png_structrp png_ptr, const png_size_t row_bytes, in png_setup_up_row() argument
2377 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row()
2392 const png_size_t row_bytes, const png_size_t lmins) in png_setup_avg_row() argument
2409 for (lp = png_ptr->row_buf + 1; i < row_bytes; i++) in png_setup_avg_row()
2425 const png_size_t row_bytes, const png_size_t lmins) in png_setup_paeth_row() argument
2442 for (lp = png_ptr->row_buf + 1, cp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_paeth_row()
2489 png_size_t row_bytes = row_info->rowbytes; in png_write_find_filter()
[all …]
Dpngread.c1439 ptrdiff_t row_bytes; /* step between rows */ member
3116 ptrdiff_t step_row = display->row_bytes; in png_image_read_and_map()
3356 ptrdiff_t row_bytes = display->row_stride; in png_image_read_colormapped() local
3361 if (row_bytes < 0) in png_image_read_colormapped()
3364 ptr += (image->height-1) * (-row_bytes); in png_image_read_colormapped()
3369 display->row_bytes = row_bytes; in png_image_read_colormapped()
3387 png_alloc_size_t row_bytes = display->row_bytes; in png_image_read_colormapped() local
3397 row += row_bytes; in png_image_read_colormapped()
3432 ptrdiff_t step_row = display->row_bytes; in png_image_read_composite()
3593 ptrdiff_t step_row = display->row_bytes; in png_image_read_background()
[all …]
Dpngwrite.c1505 ptrdiff_t row_bytes; member
1610 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_16bit()
1735 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
1760 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
2042 ptrdiff_t row_bytes = display->row_stride; in png_image_write_main() local
2045 row_bytes *= (sizeof (png_uint_16)); in png_image_write_main()
2047 if (row_bytes < 0) in png_image_write_main()
2048 row += (image->height-1) * (-row_bytes); in png_image_write_main()
2051 display->row_bytes = row_bytes; in png_image_write_main()
2099 ptrdiff_t row_bytes = display->row_bytes; in png_image_write_main() local
[all …]
Dpngwtran.c217 png_size_t row_bytes = row_info->rowbytes; in png_do_shift() local
228 for (i = 0; i < row_bytes; i++, bp++) in png_do_shift()
Dpngrutil.c4333 png_size_t row_bytes; in png_read_start_row() local
4513 row_bytes = ((png_ptr->width + 7) & ~((png_uint_32)7)); in png_read_start_row()
4517 row_bytes = PNG_ROWBYTES(max_pixel_depth, row_bytes) + in png_read_start_row()
4521 if (row_bytes > (png_uint_32)65536L) in png_read_start_row()
4525 if (row_bytes + 48 > png_ptr->old_big_row_buf_size) in png_read_start_row()
4532 row_bytes + 48); in png_read_start_row()
4535 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4537 png_ptr->big_prev_row = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4562 png_ptr->old_big_row_buf_size = row_bytes + 48; in png_read_start_row()
DCHANGES1406 Replaced row_info->rowbytes with row_bytes in png_write_find_filter()
/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngread.c1161 ptrdiff_t row_bytes; /* step between rows */ member
2816 ptrdiff_t step_row = display->row_bytes; in png_image_read_and_map()
3056 ptrdiff_t row_bytes = display->row_stride; in png_image_read_colormapped() local
3061 if (row_bytes < 0) in png_image_read_colormapped()
3064 ptr += (image->height-1) * (-row_bytes); in png_image_read_colormapped()
3069 display->row_bytes = row_bytes; in png_image_read_colormapped()
3087 png_alloc_size_t row_bytes = display->row_bytes; in png_image_read_colormapped() local
3097 row += row_bytes; in png_image_read_colormapped()
3133 ptrdiff_t step_row = display->row_bytes; in png_image_read_composite()
3293 ptrdiff_t step_row = display->row_bytes; in png_image_read_background()
[all …]
Dfx_pngwrite.c1614 ptrdiff_t row_bytes; member
1716 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_16bit()
1839 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
1864 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
2144 ptrdiff_t row_bytes = display->row_stride; in png_image_write_main() local
2147 row_bytes *= (sizeof (png_uint_16)); in png_image_write_main()
2149 if (row_bytes < 0) in png_image_write_main()
2150 row += (image->height-1) * (-row_bytes); in png_image_write_main()
2153 display->row_bytes = row_bytes; in png_image_write_main()
2198 ptrdiff_t row_bytes = display->row_bytes; in png_image_write_main() local
[all …]
Dfx_pngwutil.c2312 png_size_t row_bytes);
2326 png_size_t row_bytes = row_info->rowbytes; in png_write_find_filter() local
2386 for (i = 0, rp = row_buf + 1; i < row_bytes; i++, rp++) in png_write_find_filter()
2446 for (lp = row_buf + 1; i < row_bytes; in png_write_find_filter()
2508 for (lp = row_buf + 1; i < row_bytes; in png_write_find_filter()
2567 pp = prev_row + 1; i < row_bytes; in png_write_find_filter()
2619 pp = prev_row + 1; i < row_bytes; i++) in png_write_find_filter()
2682 for (lp = row_buf + 1; i < row_bytes; i++) in png_write_find_filter()
2739 for (lp = row_buf + 1; i < row_bytes; i++) in png_write_find_filter()
2803 for (lp = row_buf + 1, cp = prev_row + 1; i < row_bytes; i++) in png_write_find_filter()
[all …]
Dfx_pngwtran.c290 png_size_t row_bytes = row_info->rowbytes; in png_do_shift() local
301 for (i = 0; i < row_bytes; i++, bp++) in png_do_shift()
Dfx_pngrutil.c4197 png_size_t row_bytes; in png_read_start_row() local
4378 row_bytes = ((png_ptr->width + 7) & ~((png_uint_32)7)); in png_read_start_row()
4382 row_bytes = PNG_ROWBYTES(max_pixel_depth, row_bytes) + in png_read_start_row()
4386 if (row_bytes > (png_uint_32)65536L) in png_read_start_row()
4390 if (row_bytes + 48 > png_ptr->old_big_row_buf_size) in png_read_start_row()
4397 row_bytes + 48); in png_read_start_row()
4400 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4402 png_ptr->big_prev_row = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4427 png_ptr->old_big_row_buf_size = row_bytes + 48; in png_read_start_row()
/external/libpng/contrib/tools/
Dpngfix.c1482 udigit row_width[2], row_bytes[3]; in calc_image_size() local
1493 digits = uarb_mult_digit(row_bytes, uarb_set(row_bytes, 7), in calc_image_size()
1495 digits = uarb_shift(row_bytes, digits, 3); in calc_image_size()
1496 digits = uarb_inc(row_bytes, digits, 1); in calc_image_size()
1501 row_bytes, digits, in calc_image_size()
1513 udigit row_width[2], row_bytes[3]; in calc_image_size() local
1516 digits = uarb_mult_digit(row_bytes, uarb_set(row_bytes, 7), in calc_image_size()
1518 digits = uarb_shift(row_bytes, digits, 3); in calc_image_size()
1519 digits = uarb_inc(row_bytes, digits, 1); in calc_image_size()
1523 row_bytes, digits, file->height); in calc_image_size()
/external/mesa3d/src/glx/apple/
Dapple_glx_drawable.h134 int row_bytes; member
Dapple_glx_drawable.c290 d->row_bytes = 0; in common_init()
/external/libvncserver/x11vnc/
DmacosxCG.c466 int datasize, row_bytes, cdepth, comps, bpcomp; in macosxCG_get_cursor() local
507 err = CGSGetGlobalCursorData(conn, data, &datasize, &row_bytes, in macosxCG_get_cursor()
511 datasize, row_bytes, cdepth, comps, bpcomp, (int) rect.size.width, (int) rect.size.height); in macosxCG_get_cursor()