Home
last modified time | relevance | path

Searched refs:row_pointers (Results 1 – 25 of 30) sorted by relevance

12

/external/autotest/client/deps/glbench/src/
Dpng_helper.cc30 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()
76 png_write_image(png_ptr, row_pointers); in write_png_file()
85 free(row_pointers[y]); in write_png_file()
86 free(row_pointers); in write_png_file()
/external/libpng/contrib/gregbook/
Dreadpng.c212 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()
271 if ((row_pointers = (png_bytepp)malloc(height*sizeof(png_bytep))) == NULL) { in readpng_get_image()
285 row_pointers[i] = image_data + i*rowbytes; in readpng_get_image()
290 png_read_image(png_ptr, row_pointers); in readpng_get_image()
296 free(row_pointers); in readpng_get_image()
297 row_pointers = NULL; in readpng_get_image()
Dwpng.c180 wpng_info.row_pointers = NULL; in main()
708 wpng_info.row_pointers = (uch **)malloc(wpng_info.height*sizeof(uch *)); in main()
709 if (wpng_info.image_data == NULL || wpng_info.row_pointers == NULL) { in main()
716 wpng_info.row_pointers[i] = wpng_info.image_data + i*rowbytes; in main()
824 if (wpng_info.row_pointers) { in wpng_cleanup()
825 free(wpng_info.row_pointers); in wpng_cleanup()
826 wpng_info.row_pointers = NULL; in wpng_cleanup()
Dreadpng2.h92 uch **row_pointers; member
Drpng2-win.c659 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_win_init()
660 if (!rpng2_info.row_pointers) { in rpng2_win_init()
668 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_win_init()
1203 if (rpng2_info.row_pointers) { in rpng2_win_cleanup()
1204 free(rpng2_info.row_pointers); in rpng2_win_cleanup()
1205 rpng2_info.row_pointers = NULL; in rpng2_win_cleanup()
Dwritepng.h100 uch **row_pointers; member
Drpng2-x.c789 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_x_init()
790 if (!rpng2_info.row_pointers) { in rpng2_x_init()
798 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_x_init()
1501 src = rpng2_info.row_pointers[row]; in rpng2_x_display_row()
1774 src = rpng2_info.row_pointers[row]; in rpng2_x_redisplay_image()
2093 if (rpng2_info.row_pointers) { in rpng2_x_cleanup()
2094 free(rpng2_info.row_pointers); in rpng2_x_cleanup()
2095 rpng2_info.row_pointers = NULL; in rpng2_x_cleanup()
Dwritepng.c279 png_write_image(png_ptr, mainprog_ptr->row_pointers); in writepng_encode_image()
Dreadpng2.c417 png_progressive_combine_row(png_ptr, mainprog_ptr->row_pointers[row_num], in readpng2_row_callback()
/external/libpng/
Dexample.c547 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],
988 png_bytep row_pointers[height];
995 row_pointers[k] = image + k*width*bytes_per_pixel;
1000 png_write_image(png_ptr, row_pointers);
[all …]
Dpngset.c1482 png_bytepp row_pointers) in png_set_rows() argument
1489 if (info_ptr->row_pointers != NULL && in png_set_rows()
1490 (info_ptr->row_pointers != row_pointers)) in png_set_rows()
1493 info_ptr->row_pointers = row_pointers; in png_set_rows()
1495 if (row_pointers != NULL) in png_set_rows()
Dpnginfo.h255 png_bytepp row_pointers; /* the image bits */ member
Dpngread.c1198 if (info_ptr->row_pointers == NULL) in png_read_png()
1202 info_ptr->row_pointers = png_voidcast(png_bytepp, png_malloc(png_ptr, in png_read_png()
1206 info_ptr->row_pointers[iptr] = NULL; in png_read_png()
1211 info_ptr->row_pointers[iptr] = png_voidcast(png_bytep, in png_read_png()
1215 png_read_image(png_ptr, info_ptr->row_pointers); in png_read_png()
Dlibpng-manual.txt1159 row_pointers = png_get_rows(png_ptr, info_ptr);
1161 where row_pointers is an array of pointers to the pixel data for each row:
1163 png_bytep row_pointers[height];
1166 row_pointers prior to calling png_read_png() with
1176 row_pointers = png_malloc(png_ptr,
1180 row_pointers[i]=NULL; /* security precaution */
1183 row_pointers[i]=png_malloc(png_ptr,
1186 png_set_rows(png_ptr, info_ptr, &row_pointers);
1189 row_pointers[i] to point into the proper places in your block.
1192 row_pointers (and row_pointers[i], if they were separately allocated).
[all …]
Dpng.c620 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()
Dpngget.c43 return(info_ptr->row_pointers); in png_get_rows()
Dpng.h1890 png_inforp info_ptr, png_bytepp row_pointers));
/external/libpng/contrib/pngminus/
Dpng2pnm.c200 png_byte **row_pointers = NULL; in png2pnm() local
329 if ((row_pointers = (png_byte **) in png2pnm()
340 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm()
343 png_read_image (png_ptr, row_pointers); in png2pnm()
430 if (row_pointers != (unsigned char**) NULL) in png2pnm()
431 free (row_pointers); in png2pnm()
Dpnm2png.c196 png_byte **row_pointers = NULL; in pnm2png() local
477 if (row_pointers == (unsigned char**) NULL) in pnm2png()
479 if ((row_pointers = (png_byte **) in pnm2png()
491 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png()
494 png_write_image (png_ptr, row_pointers); in pnm2png()
502 if (row_pointers != (unsigned char**) NULL) in pnm2png()
503 free (row_pointers); in pnm2png()
/external/deqp/framework/common/
DtcuImageIO.cpp124 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/pdfium/third_party/lpng_v163/
Dpngset.c1439 png_bytepp row_pointers) in png_set_rows() argument
1446 if (info_ptr->row_pointers && (info_ptr->row_pointers != row_pointers)) in png_set_rows()
1449 info_ptr->row_pointers = row_pointers; in png_set_rows()
1451 if (row_pointers) in png_set_rows()
Dpnginfo.h256 png_bytepp row_pointers; /* the image bits */ member
Dpngread.c1089 if (info_ptr->row_pointers == NULL) in png_read_png()
1093 info_ptr->row_pointers = (png_bytepp)png_malloc(png_ptr, in png_read_png()
1096 info_ptr->row_pointers[iptr] = NULL; in png_read_png()
1101 info_ptr->row_pointers[row] = (png_bytep)png_malloc(png_ptr, in png_read_png()
1105 png_read_image(png_ptr, info_ptr->row_pointers); in png_read_png()
Dpng.c612 if (info_ptr->row_pointers) in png_free_data()
617 png_free(png_ptr, info_ptr->row_pointers[row]); in png_free_data()
618 info_ptr->row_pointers[row] = NULL; in png_free_data()
620 png_free(png_ptr, info_ptr->row_pointers); in png_free_data()
621 info_ptr->row_pointers = NULL; in png_free_data()
Dpngget.c42 return(info_ptr->row_pointers); in png_get_rows()

12