/external/autotest/client/deps/glbench/src/ |
D | png_helper.cc | 30 png_bytep* row_pointers; in write_png_file() local 36 row_pointers = (png_bytep*)malloc(sizeof(png_bytep) * height); in write_png_file() 39 row_pointers[y] = (png_byte*)malloc(4 * width); in write_png_file() 41 png_byte* pixel = &(row_pointers[y][x * 4]); in write_png_file() 77 png_write_image(png_ptr, row_pointers); in write_png_file() 86 free(row_pointers[y]); in write_png_file() 87 free(row_pointers); in write_png_file()
|
/external/libpng/contrib/gregbook/ |
D | readpng.c | 212 png_bytepp row_pointers = NULL; in readpng_get_image() local 221 free(row_pointers); in readpng_get_image() 222 row_pointers = NULL; in readpng_get_image() 277 if ((row_pointers = (png_bytepp)malloc(height*sizeof(png_bytep))) == NULL) { in readpng_get_image() 291 row_pointers[i] = image_data + i*rowbytes; in readpng_get_image() 296 png_read_image(png_ptr, row_pointers); in readpng_get_image() 302 free(row_pointers); in readpng_get_image() 303 row_pointers = NULL; in readpng_get_image()
|
D | wpng.c | 181 wpng_info.row_pointers = NULL; in main() 720 wpng_info.row_pointers = (uch **)malloc(wpng_info.height*sizeof(uch *)); in main() 721 if (wpng_info.image_data == NULL || wpng_info.row_pointers == NULL) { in main() 728 wpng_info.row_pointers[i] = wpng_info.image_data + i*rowbytes; in main() 836 if (wpng_info.row_pointers) { 837 free(wpng_info.row_pointers); 838 wpng_info.row_pointers = NULL;
|
D | rpng2-win.c | 665 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_win_init() 666 if (!rpng2_info.row_pointers) { in rpng2_win_init() 674 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_win_init() 1209 if (rpng2_info.row_pointers) { 1210 free(rpng2_info.row_pointers); 1211 rpng2_info.row_pointers = NULL;
|
D | readpng2.h | 92 uch **row_pointers; member
|
D | writepng.h | 100 uch **row_pointers; member
|
D | rpng2-x.c | 798 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_x_init() 799 if (!rpng2_info.row_pointers) { in rpng2_x_init() 807 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_x_init() 1510 src = rpng2_info.row_pointers[row]; in rpng2_x_display_row() 1783 src = rpng2_info.row_pointers[row]; in rpng2_x_redisplay_image() 2102 if (rpng2_info.row_pointers) { in rpng2_x_cleanup() 2103 free(rpng2_info.row_pointers); in rpng2_x_cleanup() 2104 rpng2_info.row_pointers = NULL; in rpng2_x_cleanup()
|
D | writepng.c | 279 png_write_image(png_ptr, mainprog_ptr->row_pointers); in writepng_encode_image()
|
D | readpng2.c | 418 png_progressive_combine_row(png_ptr, mainprog_ptr->row_pointers[row_num], in readpng2_row_callback()
|
/external/libpng/ |
D | example.c | 547 png_bytep row_pointers[height]; 551 row_pointers[row] = NULL; 554 row_pointers[row] = png_malloc(png_ptr, png_get_rowbytes(png_ptr, 559 png_read_image(png_ptr, row_pointers); 569 png_read_rows(png_ptr, &row_pointers[y], NULL, 1); 576 png_read_rows(png_ptr, &row_pointers[y], NULL, 579 png_read_rows(png_ptr, NULL, &row_pointers[y], 993 png_bytep row_pointers[height]; 1000 row_pointers[k] = image + k*width*bytes_per_pixel; 1005 png_write_image(png_ptr, row_pointers); [all …]
|
D | pngset.c | 1547 png_bytepp row_pointers) in png_set_rows() argument 1554 if (info_ptr->row_pointers != NULL && in png_set_rows() 1555 (info_ptr->row_pointers != row_pointers)) in png_set_rows() 1558 info_ptr->row_pointers = row_pointers; in png_set_rows() 1560 if (row_pointers != NULL) in png_set_rows()
|
D | pnginfo.h | 263 png_bytepp row_pointers; /* the image bits */ member
|
D | pngread.c | 1218 if (info_ptr->row_pointers == NULL) in png_read_png() 1222 info_ptr->row_pointers = png_voidcast(png_bytepp, png_malloc(png_ptr, in png_read_png() 1226 info_ptr->row_pointers[iptr] = NULL; in png_read_png() 1231 info_ptr->row_pointers[iptr] = png_voidcast(png_bytep, in png_read_png() 1235 png_read_image(png_ptr, info_ptr->row_pointers); in png_read_png()
|
D | libpng-manual.txt | 1173 row_pointers = png_get_rows(png_ptr, info_ptr); 1175 where row_pointers is an array of pointers to the pixel data for each row: 1177 png_bytep row_pointers[height]; 1180 row_pointers prior to calling png_read_png() with 1190 row_pointers = png_malloc(png_ptr, 1194 row_pointers[i]=NULL; /* security precaution */ 1197 row_pointers[i]=png_malloc(png_ptr, 1200 png_set_rows(png_ptr, info_ptr, &row_pointers); 1203 row_pointers[i] to point into the proper places in your block, but first 1214 row_pointers[i]=buffer+i*width*pixel_size; [all …]
|
D | png.c | 661 if (info_ptr->row_pointers != NULL) in png_free_data() 665 png_free(png_ptr, info_ptr->row_pointers[row]); in png_free_data() 667 png_free(png_ptr, info_ptr->row_pointers); in png_free_data() 668 info_ptr->row_pointers = NULL; in png_free_data()
|
D | pngget.c | 43 return(info_ptr->row_pointers); in png_get_rows()
|
/external/libpng/contrib/pngminus/ |
D | png2pnm.c | 213 png_byte **row_pointers = NULL; in png2pnm() local 349 if ((row_pointers = (png_byte **) in png2pnm() 360 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm() 363 png_read_image (png_ptr, row_pointers); in png2pnm() 451 if (row_pointers != (unsigned char**) NULL) in png2pnm() 452 free (row_pointers); in png2pnm()
|
D | pnm2png.c | 209 png_byte **row_pointers = NULL; in pnm2png() local 496 if (row_pointers == (unsigned char**) NULL) in pnm2png() 498 if ((row_pointers = (png_byte **) in pnm2png() 510 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png() 513 png_write_image (png_ptr, row_pointers); in pnm2png() 521 if (row_pointers != (unsigned char**) NULL) in pnm2png() 522 free (row_pointers); in pnm2png()
|
/external/deqp/framework/common/ |
D | tcuImageIO.cpp | 124 std::vector<png_bytep> row_pointers; in loadPNG() local 125 row_pointers.resize(height); in loadPNG() 127 row_pointers[y] = (deUint8*)dst.getAccess().getDataPtr() + y*dst.getAccess().getRowPitch(); in loadPNG() 129 png_read_image(png_ptr, &row_pointers[0]); in loadPNG()
|
/external/honggfuzz/examples/libpng/ |
D | persistent-png.c | 103 png_bytepp row_pointers = png_get_rows(png_ptr, info_ptr); in LLVMFuzzerTestOneInput() local 108 write(null_fd, row_pointers[i], row_bytes); in LLVMFuzzerTestOneInput()
|
/external/pdfium/third_party/libpng16/ |
D | pngset.c | 1497 png_bytepp row_pointers) in png_set_rows() argument 1504 if (info_ptr->row_pointers != NULL && in png_set_rows() 1505 (info_ptr->row_pointers != row_pointers)) in png_set_rows() 1508 info_ptr->row_pointers = row_pointers; in png_set_rows() 1510 if (row_pointers != NULL) in png_set_rows()
|
D | pnginfo.h | 255 png_bytepp row_pointers; /* the image bits */ member
|
D | pngread.c | 1208 if (info_ptr->row_pointers == NULL) in png_read_png() 1212 info_ptr->row_pointers = png_voidcast(png_bytepp, png_malloc(png_ptr, in png_read_png() 1216 info_ptr->row_pointers[iptr] = NULL; in png_read_png() 1221 info_ptr->row_pointers[iptr] = png_voidcast(png_bytep, in png_read_png() 1225 png_read_image(png_ptr, info_ptr->row_pointers); in png_read_png()
|
D | png.c | 620 if (info_ptr->row_pointers != 0) in png_free_data() 624 png_free(png_ptr, info_ptr->row_pointers[row]); in png_free_data() 626 png_free(png_ptr, info_ptr->row_pointers); in png_free_data() 627 info_ptr->row_pointers = NULL; in png_free_data()
|
D | pngget.c | 43 return(info_ptr->row_pointers); in png_get_rows()
|