Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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()
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()
Dwpng.c181 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;
Drpng2-win.c665 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;
Dreadpng2.h92 uch **row_pointers; member
Dwritepng.h100 uch **row_pointers; member
Drpng2-x.c798 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()
Dwritepng.c279 png_write_image(png_ptr, mainprog_ptr->row_pointers); in writepng_encode_image()
Dreadpng2.c418 png_progressive_combine_row(png_ptr, mainprog_ptr->row_pointers[row_num], in readpng2_row_callback()
/third_party/skia/third_party/externals/libpng/
Dexample.c538 png_bytep row_pointers[height];
540 row_pointers[row] = NULL; /* Clear the pointer array */
542 row_pointers[row] = png_malloc(png_ptr, png_get_rowbytes(png_ptr,
547 png_read_image(png_ptr, row_pointers);
555 png_read_rows(png_ptr, &row_pointers[y], NULL, 1);
561 png_read_rows(png_ptr, &row_pointers[y], NULL,
564 png_read_rows(png_ptr, NULL, &row_pointers[y],
966 png_bytep row_pointers[height];
973 row_pointers[k] = image + k * width * bytes_per_pixel;
978 png_write_image(png_ptr, row_pointers);
[all …]
Dpngset.c1547 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()
Dpnginfo.h263 png_bytepp row_pointers; /* the image bits */ member
Dpngread.c1224 if (info_ptr->row_pointers == NULL) in png_read_png()
1228 info_ptr->row_pointers = png_voidcast(png_bytepp, png_malloc(png_ptr, in png_read_png()
1232 info_ptr->row_pointers[iptr] = NULL; in png_read_png()
1237 info_ptr->row_pointers[iptr] = png_voidcast(png_bytep, in png_read_png()
1241 png_read_image(png_ptr, info_ptr->row_pointers); in png_read_png()
Dlibpng-manual.txt1174 row_pointers = png_get_rows(png_ptr, info_ptr);
1176 where row_pointers is an array of pointers to the pixel data for each row:
1178 png_bytep row_pointers[height];
1181 row_pointers prior to calling png_read_png() with
1191 row_pointers = png_malloc(png_ptr,
1195 row_pointers[i]=NULL; /* security precaution */
1198 row_pointers[i]=png_malloc(png_ptr,
1201 png_set_rows(png_ptr, info_ptr, &row_pointers);
1204 row_pointers[i] to point into the proper places in your block, but first
1215 row_pointers[i]=buffer+i*width*pixel_size;
[all …]
Dpng.c661 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()
Dpngget.c43 return(info_ptr->row_pointers); in png_get_rows()
Dpng.h1856 png_inforp info_ptr, png_bytepp row_pointers));
Dpngwrite.c1455 png_write_image(png_ptr, info_ptr->row_pointers); in png_write_png()
/third_party/libpng/
DCVE-2018-14048.patch9 + if(row_pointers != NULL)
11 + free(row_pointers);
12 + row_pointers = NULL;
/third_party/skia/third_party/externals/libpng/contrib/pngminus/
Dpng2pnm.c170 png_byte **row_pointers = NULL; in png2pnm() local
306 if ((row_pointers = (png_byte **) in png2pnm()
316 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm()
319 png_read_image (png_ptr, row_pointers); in png2pnm()
420 if (row_pointers != NULL) in png2pnm()
421 free (row_pointers); in png2pnm()
Dpnm2png.c169 png_byte **row_pointers = NULL; in pnm2png() local
482 if (row_pointers == NULL) in pnm2png()
484 if ((row_pointers = (png_byte **) in pnm2png()
495 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png()
498 png_write_image (png_ptr, row_pointers); in pnm2png()
506 if (row_pointers != NULL) in pnm2png()
507 free (row_pointers); in pnm2png()
/third_party/gstreamer/gstplugins_good/ext/libpng/
Dgstpngenc.c270 png_byte **row_pointers; in gst_pngenc_handle_frame() local
318 row_pointers = g_new (png_byte *, GST_VIDEO_INFO_HEIGHT (info)); in gst_pngenc_handle_frame()
321 row_pointers[row_index] = GST_VIDEO_FRAME_COMP_DATA (&vframe, 0) + in gst_pngenc_handle_frame()
329 png_write_image (pngenc->png_struct_ptr, row_pointers); in gst_pngenc_handle_frame()
332 g_free (row_pointers); in gst_pngenc_handle_frame()
/third_party/vk-gl-cts/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()
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dlibimagequant.c1660 update_dither_map (unsigned char *const *const row_pointers, in update_dither_map() argument
1668 unsigned char lastpixel = row_pointers[row][0]; in update_dither_map()
1672 const unsigned char px = row_pointers[row][col]; in update_dither_map()
1680 unsigned char pixelabove = row_pointers[row - 1][i]; in update_dither_map()
1685 unsigned char pixelbelow = row_pointers[row + 1][i]; in update_dither_map()
1981 unsigned char **row_pointers) in liq_write_remapped_image_rows() argument
1992 if (!CHECK_USER_POINTER (row_pointers + i) in liq_write_remapped_image_rows()
1993 || !CHECK_USER_POINTER (row_pointers[i])) in liq_write_remapped_image_rows()
2019 remap_to_palette (input_image, row_pointers, result->palette, in liq_write_remapped_image_rows()
2027 remap_to_palette (input_image, row_pointers, result->palette, in liq_write_remapped_image_rows()
[all …]
Dlibimagequant.h100 …rite_remapped_image_rows(liq_result *result, liq_image *input_image, unsigned char **row_pointers);
DREADME.md355 …rite_remapped_image_rows(liq_result *result, liq_image *input_image, unsigned char **row_pointers);
357 …. Writes remapped image, at 1 byte per pixel, to each row pointed by `row_pointers` array. The arr…

12