HomeSort by relevance Sort by last modified time
    Searched defs:rowbytes (Results 1 - 15 of 15) sorted by null

  /external/libpng/contrib/gregbook/
readppm.c 145 ulg rowbytes; local
154 *pRowbytes = rowbytes = channels*width;
157 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) {
161 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height));
166 fread(image_data, 1L, rowbytes*height, saved_infile);
readpng.c 210 png_uint_32 i, rowbytes; local
259 * get rowbytes and channels, and allocate image memory */
263 *pRowbytes = rowbytes = png_get_rowbytes(png_ptr, info_ptr);
266 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) {
277 Trace((stderr, "readpng_get_image: channels = %d, rowbytes = %ld, height = %ld\n",
278 *pChannels, rowbytes, height));
284 row_pointers[i] = image_data + i*rowbytes;
readpng2.h 96 int rowbytes; member in struct:_mainprog_info
wpng.c 166 ulg rowbytes; local
684 /* calculate rowbytes on basis of image type; note that this becomes much
689 rowbytes = wpng_info.width;
691 rowbytes = wpng_info.width * 3;
693 rowbytes = wpng_info.width * 4;
705 ulg image_bytes = rowbytes * wpng_info.height; /* overflow? */
716 wpng_info.row_pointers[i] = wpng_info.image_data + i*rowbytes;
735 wpng_info.image_data = (uch *)malloc(rowbytes);
744 bytes = fread(wpng_info.image_data, 1, rowbytes, wpng_info.infile);
745 if (bytes != rowbytes) {
    [all...]
rpng2-win.c 644 ulg rowbytes = rpng2_info.rowbytes; local
647 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes))
651 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height);
666 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes;
    [all...]
rpng2-x.c 752 ulg rowbytes = rpng2_info.rowbytes; local
755 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes))
759 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height);
774 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes;
    [all...]
  /external/libpng/contrib/libtests/
readpng.c 63 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
65 row = malloc(rowbytes);
66 display = malloc(rowbytes);
timepng.c 64 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
66 row = malloc(rowbytes);
67 display = malloc(rowbytes);
makepng.c 249 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth,
260 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes))
310 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type,
335 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, conv);
350 set_value(row, rowbytes, 2*x, bit_depth,
353 set_value(row, rowbytes, 2*x+1, bit_depth, alpha, gamma_table,
381 set_value(row, rowbytes, 3*x+0, bit_depth, /* red */ Y,
383 set_value(row, rowbytes, 3*x+1, bit_depth, /* green */
386 set_value(row, rowbytes, 3*x+2, bit_depth, /* blue *
687 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
    [all...]
pngimage.c 917 size_t rowbytes; local
955 /* rowbytes should be the same */
956 rowbytes = png_get_rowbytes(dp->read_pp, dp->read_ip);
958 /* NOTE: on 64-bit systems this may trash the top bits of rowbytes,
961 if (rowbytes != dp->original_rowbytes)
962 display_log(dp, APP_ERROR, "PNG rowbytes changed from %lu to %lu",
963 (unsigned long)dp->original_rowbytes, (unsigned long)rowbytes);
998 if (memcmp(row, orig, rowbytes-(mask != 0)) != 0 || (mask != 0 &&
999 ((row[rowbytes-1] & mask) != (orig[rowbytes-1] & mask)))
    [all...]
  /external/libpng/
pnginfo.h 62 png_size_t rowbytes; /* bytes needed to hold an untransformed row */ member in struct:png_info_def
pngstruct.h 265 png_size_t rowbytes; /* size of row in bytes */ member in struct:png_struct_def
png.h 878 png_size_t rowbytes; \/* number of bytes in row *\/ member in struct:png_row_info_struct
    [all...]
  /external/libpng/contrib/tools/
pngfix.c 3606 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
    [all...]
  /external/chromium_org/third_party/libpng/
png.h 1158 png_uint_32 rowbytes; \/* number of bytes in row *\/ member in struct:png_row_info_struct
    [all...]

Completed in 1633 milliseconds