/third_party/skia/third_party/externals/libpng/contrib/gregbook/ |
H A D | readppm.c | 145 ulg rowbytes; in readpng_get_image() local 154 *pRowbytes = rowbytes = channels*width; in readpng_get_image() 157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image() 160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image() 165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image() 171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image() 172 rowbytes*height) { in readpng_get_image()
|
H A D | readpng.c | 211 png_uint_32 i, rowbytes; in readpng_get_image() local 260 * get rowbytes and channels, and allocate image memory */ in readpng_get_image() 264 *pRowbytes = rowbytes = png_get_rowbytes(png_ptr, info_ptr); in readpng_get_image() 268 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image() 273 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image() 284 Trace((stderr, "readpng_get_image: channels = %d, rowbytes = %ld, height = %ld\n", in readpng_get_image() 285 *pChannels, rowbytes, height)); in readpng_get_image() 291 row_pointers[i] = image_data + i*rowbytes; in readpng_get_image()
|
H A D | wpng.c | 167 ulg rowbytes; in main() local 685 /* calculate rowbytes on basis of image type; note that this becomes much in main() 690 rowbytes = wpng_info.width; in main() 692 rowbytes = wpng_info.width * 3; in main() 694 rowbytes = wpng_info.width * 4; in main() 709 if (wpng_info_height > ((size_t)(-1)/rowbytes || in main() 710 wpng_info_height > ((ulg)(-1)/rowbytes) { in main() 717 image_bytes = rowbytes * wpng_info.height; in main() 728 wpng_info.row_pointers[i] = wpng_info.image_data + i*rowbytes; in main() 747 wpng_info.image_data = (uch *)malloc(rowbytes); in main() [all...] |
H A D | rpng2-win.c | 645 ulg rowbytes = rpng2_info.rowbytes; in rpng2_win_init() local 648 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes)) in rpng2_win_init() 653 if (rpng2_info.height > ((size_t)(-1))/rowbytes) { in rpng2_win_init() 659 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height); in rpng2_win_init() 674 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_win_init() 1106 src = rpng2_info.image_data + row*rpng2_info.rowbytes;
|
H A D | readpng2.h | 96 int rowbytes; member
|
H A D | rpng2-x.c | 778 ulg rowbytes = rpng2_info.rowbytes; in rpng2_x_init() local 781 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes)) in rpng2_x_init() 786 if (rpng2_info.height > ((size_t)(-1))/rpng2_info.rowbytes) { in rpng2_x_init() 792 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height); in rpng2_x_init() 807 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_x_init() 1435 src = rpng2_info.image_data + row*rpng2_info.rowbytes; in rpng2_x_display_row() 1637 Trace((stderr, " (width = %ld, rowbytes = %d, ximage_rowbytes = %d)\n", in rpng2_x_redisplay_image() 1638 rpng2_info.width, rpng2_info.rowbytes, ximage_rowbyte in rpng2_x_redisplay_image() [all...] |
/third_party/skia/third_party/externals/libpng/contrib/libtests/ |
H A D | makepng.c | 329 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, in set_value() argument 340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value() 390 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, in generate_row() argument 410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row() 416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row() 422 assert(y == 0 && rowbytes == 8 && size_max == 15); in generate_row() 440 assert(y == 0 && rowbytes == 256 && size_max == 255); in generate_row() 479 assert(rowbytes == 512 && size_max == 255); in generate_row() 504 assert(size_max == 255 && rowbytes in generate_row() 953 size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); write_png() local [all...] |
H A D | readpng.c | 63 size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); in read_png() local 66 row = malloc(rowbytes); in read_png() 67 display = malloc(rowbytes); in read_png()
|
H A D | timepng.c | 103 size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); in read_by_row() local 105 row = voidcast(png_bytep,malloc(rowbytes)); in read_by_row() 106 display = voidcast(png_bytep,malloc(rowbytes)); in read_by_row()
|
H A D | pngimage.c | 997 size_t rowbytes; in compare_read() local 1035 /* rowbytes should be the same */ in compare_read() 1036 rowbytes = png_get_rowbytes(dp->read_pp, dp->read_ip); in compare_read() 1038 /* NOTE: on 64-bit systems this may trash the top bits of rowbytes, in compare_read() 1041 if (rowbytes != dp->original_rowbytes) in compare_read() 1042 display_log(dp, APP_ERROR, "PNG rowbytes changed from %lu to %lu", in compare_read() 1043 (unsigned long)dp->original_rowbytes, (unsigned long)rowbytes); in compare_read() 1078 if (memcmp(row, orig, rowbytes-(mask != 0)) != 0 || (mask != 0 && in compare_read() 1079 ((row[rowbytes-1] & mask) != (orig[rowbytes in compare_read() [all...] |
/third_party/skia/third_party/externals/libpng/intel/ |
H A D | filter_sse2_intrinsics.c | 65 rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2() 98 rb = row_info->rowbytes+4; in png_read_filter_row_sub4_sse2() 127 rb = row_info->rowbytes; in png_read_filter_row_avg3_sse2() 180 rb = row_info->rowbytes+4; in png_read_filter_row_avg4_sse2() 252 rb = row_info->rowbytes; in png_read_filter_row_paeth3_sse2() 352 rb = row_info->rowbytes+4; in png_read_filter_row_paeth4_sse2()
|
/third_party/skia/third_party/externals/libpng/ |
H A D | pngrtran.c | 1296 * and it is called before the 'rowbytes' calculation is done, so the code in png_init_read_transformations() 2128 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info() 2136 png_ptr->info_rowbytes = info_ptr->rowbytes; in png_read_transform_info() 2238 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack() 2314 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift() 2329 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift() 2347 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift() 2365 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift() 2397 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8() 2440 row_info->rowbytes in png_do_scale_16_to_8() [all...] |
H A D | pngpread.c | 664 png_ptr->row_buf = png_ptr->row_buf + png_ptr->rowbytes + 1; in png_push_process_row_x2() 669 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_push_process_row_x2() 687 uInt row_bytes = png_ptr->rowbytes + 1; in png_push_process_multi_rows() 695 row_info.rowbytes = png_ptr->rowbytes; in png_push_process_multi_rows() 876 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row() 887 /* libpng 1.5.6: the following line was copying png_ptr->rowbytes before in png_push_process_row() 900 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_push_process_row() 903 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_push_process_row() 1139 memset(png_ptr->prev_row, 0, png_ptr->rowbytes in png_read_push_finish_row() [all...] |
H A D | pngtrans.c | 273 size_t istop = row_info->rowbytes; in png_do_invert() 287 size_t istop = row_info->rowbytes; in png_do_invert() 302 size_t istop = row_info->rowbytes; in png_do_invert() 464 end = row + row_info->rowbytes; in png_do_packswap() 499 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ in png_do_strip_channel() 611 /* Fix the rowbytes value. */ in png_do_strip_channel() 612 row_info->rowbytes = (size_t)(dp-row); in png_do_strip_channel() 711 png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1; in png_do_check_palette_indexes()
|
H A D | pngread.c | 410 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_read_row() 548 png_read_IDAT_data(png_ptr, png_ptr->row_buf, row_info.rowbytes + 1); in png_read_row() 559 /* libpng 1.5.6: the following line was copying png_ptr->rowbytes before in png_read_row() 564 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_read_row() 739 png_ptr->row_buf = png_ptr->row_buf + row_info.rowbytes + 1; in png_read_two_rows() 742 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_read_two_rows() 781 png_ptr->row_buf = png_ptr->row_buf + row_info.rowbytes + 1; in png_read_two_rows() 797 uInt row_bytes = row_info_in.rowbytes; in png_read_muilty_rows() 808 png_ptr->row_buf[0] == png_ptr->row_buf[row_info_in.rowbytes + 1]) in png_read_muilty_rows() 823 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info_in.rowbytes in png_read_muilty_rows() [all...] |
H A D | pnginfo.h | 61 size_t rowbytes; /* bytes needed to hold an untransformed row */ member
|
H A D | pngrutil.c | 902 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR() 905 png_debug1(3, "rowbytes = %lu", (unsigned long)png_ptr->rowbytes); in png_handle_IHDR() 3921 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, final_width); in png_do_read_interlace() 3934 size_t istop = row_info->rowbytes; in png_read_filter_row_sub() 3952 size_t istop = row_info->rowbytes; in png_read_filter_row_up() 3971 size_t istop = row_info->rowbytes - bpp; in png_read_filter_row_avg() 3994 png_bytep rp_end = row + row_info->rowbytes; in png_read_filter_row_paeth_1byte_pixel() 4058 rp_end = rp_end + (row_info->rowbytes - bpp); in png_read_filter_row_paeth_multibyte_pixel() 4358 memset(png_ptr->prev_row, 0, png_ptr->rowbytes in png_read_finish_row() [all...] |
/third_party/skia/third_party/externals/libpng/arm/ |
H A D | filter_neon.S | 66 ldr r3, [r0, #4] @ rowbytes 82 ldr r3, [r0, #4] @ rowbytes 108 ldr r3, [r0, #4] @ rowbytes 121 ldr r12, [r0, #4] @ rowbytes 143 ldr r12, [r0, #4] @ rowbytes 193 ldr r12, [r0, #4] @ rowbytes 217 ldr r12, [r0, #4] @ rowbytes
|
H A D | filter_neon_intrinsics.c | 56 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_up_neon() 77 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub3_neon() 124 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub4_neon() 157 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg3_neon() 224 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg4_neon() 294 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth3_neon() 361 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth4_neon() 402 // according to definition: row_info->rowbytes = row_width * row_info->channels, 403 // the input rowbytes must be 3 or 4 times the channel size, so: 423 int count = row_info->rowbytes; in png_read_filter_row_up_neon() [all...] |
/third_party/skia/third_party/externals/freetype/src/sfnt/ |
H A D | pngshim.c | 90 if ( row_info->rowbytes > 15 ) in premultiply_data() 93 limit = row_info->rowbytes - 16 + 1; in premultiply_data() 134 limit = row_info->rowbytes; in premultiply_data() 178 for ( i = 0; i < row_info->rowbytes; i += 4 ) in convert_bytes_to_data()
|
/third_party/skia/third_party/externals/libpng/mips/ |
H A D | filter_msa_intrinsics.c | 371 size_t istop = row_info->rowbytes; in png_read_filter_row_up_msa() 462 size_t istop = row_info->rowbytes; in png_read_filter_row_sub4_msa() 501 size_t istop = row_info->rowbytes; in png_read_filter_row_sub3_msa() 549 size_t istop = row_info->rowbytes - 4; in png_read_filter_row_avg4_msa() 600 size_t istop = row_info->rowbytes - 3; in png_read_filter_row_avg3_msa() 683 rp_end = row_info->rowbytes - 4; in png_read_filter_row_paeth4_msa() 760 rp_end = row_info->rowbytes - 3; in png_read_filter_row_paeth3_msa()
|
/third_party/ffmpeg/libavcodec/ |
H A D | qdrw.c | 336 int rowbytes, pack_type; in decode_frame() local 414 rowbytes = bytestream2_get_be16(&gbc) & 0x3FFF; in decode_frame() 415 if (rowbytes <= 250) { in decode_frame() 416 avpriv_report_missing_feature(avctx, "Short rowbytes"); in decode_frame()
|
/third_party/skia/tests/ |
H A D | BitmapTest.cpp | 141 // for a 4-byte config, this width will compute a rowbytes of 0x80000000, in test_bigwidth() 425 size_t rowbytes, expected_size; in DEF_TEST() member 434 size_t size = info.computeByteSize(r.rowbytes); in DEF_TEST() 438 bm.setInfo(info, r.rowbytes); in DEF_TEST()
|
/third_party/backends/backend/ |
H A D | hp3500.c | 2756 unsigned rowbytes = 0; in rts8801_doscan() local 2780 rowbytes = width * 3; in rts8801_doscan() 2789 output_rowbytes = rowbytes; in rts8801_doscan() 2800 rowbuffer_bytes = buffered_rows * rowbytes; in rts8801_doscan() 2802 output_buffer = (unsigned char *) malloc (rowbytes); in rts8801_doscan() 2811 channel_data[i][1 - oddfirst] = row_buffer + rowbytes * j + i; in rts8801_doscan() 2813 channel_data[i][1 - oddfirst] = row_buffer + rowbytes * j + width * i; in rts8801_doscan() 2815 channel_data[i][1 - oddfirst] + rowbytes * intra_channel_offset; in rts8801_doscan() 2837 int numcopy = rowbytes - bytenow; in rts8801_doscan() 2842 memcpy (row_buffer + rownow * rowbytes in rts8801_doscan() [all...] |
/third_party/mesa3d/src/glx/apple/ |
H A D | apple_cgl.h | 62 GLsizei width, GLsizei height, GLint rowbytes,
|