Searched defs:rowbytes (Results 1 - 25 of 25) sorted by relevance

/external/libpng/contrib/libtests/
H A Dreadpng.c63 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
66 row = malloc(rowbytes);
67 display = malloc(rowbytes);
H A Dtimepng.c103 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
105 row = voidcast(png_bytep,malloc(rowbytes));
106 display = voidcast(png_bytep,malloc(rowbytes));
H A Dmakepng.c329 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, argument
340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes))
390 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, argument
410 assert(y == 0 && rowbytes == 1 && size_max == 1);
416 assert(y == 0 && rowbytes == 1 && size_max == 3);
422 assert(y == 0 && rowbytes == 8 && size_max == 15);
440 assert(y == 0 && rowbytes == 256 && size_max == 255);
479 assert(rowbytes == 512 && size_max == 255);
504 assert(size_max == 255 && rowbytes
953 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); local
[all...]
H A Dpngimage.c997 size_t rowbytes; local
1035 /* rowbytes should be the same */
1036 rowbytes = png_get_rowbytes(dp->read_pp, dp->read_ip);
1038 /* NOTE: on 64-bit systems this may trash the top bits of rowbytes,
1041 if (rowbytes != dp->original_rowbytes)
1042 display_log(dp, APP_ERROR, "PNG rowbytes changed from %lu to %lu",
1043 (unsigned long)dp->original_rowbytes, (unsigned long)rowbytes);
1078 if (memcmp(row, orig, rowbytes-(mask != 0)) != 0 || (mask != 0 &&
1079 ((row[rowbytes-1] & mask) != (orig[rowbytes
[all...]
/external/libpng/contrib/gregbook/
H A Dreadppm.c145 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 if (fread(image_data, 1L, rowbytes*height, saved_infile) <
167 rowbytes*height) {
H A Dreadpng.c211 png_uint_32 i, rowbytes; local
260 * get rowbytes and channels, and allocate image memory */
264 *pRowbytes = rowbytes = png_get_rowbytes(png_ptr, info_ptr);
267 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) {
278 Trace((stderr, "readpng_get_image: channels = %d, rowbytes = %ld, height = %ld\n",
279 *pChannels, rowbytes, height));
285 row_pointers[i] = image_data + i*rowbytes;
H A Dreadpng2.h96 int rowbytes; member in struct:_mainprog_info
H A Dwpng.c166 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...]
H A Drpng2-win.c646 ulg rowbytes = rpng2_info.rowbytes; local
649 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes))
653 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height);
668 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes;
1100 src = rpng2_info.image_data + row*rpng2_info.rowbytes;
H A Drpng2-x.c776 ulg rowbytes = rpng2_info.rowbytes; local
779 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes))
783 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height);
798 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes;
1426 src = rpng2_info.image_data + row*rpng2_info.rowbytes;
1628 Trace((stderr, " (width = %ld, rowbytes = %d, ximage_rowbytes = %d)\n",
1629 rpng2_info.width, rpng2_info.rowbytes, ximage_rowbytes))
1647 src = rpng2_info.image_data + row*rpng2_info.rowbytes;
[all...]
/external/libpng/
H A Dpnginfo.h61 png_size_t rowbytes; /* bytes needed to hold an untransformed row */ member in struct:png_info_def
H A Dpngstruct.h217 png_size_t rowbytes; /* size of row in bytes */ member in struct:png_struct_def
H A Dpng.h792 png_size_t rowbytes; /* number of bytes in row */ member in struct:png_row_info_struct
/external/pdfium/third_party/libpng16/
H A Dpnginfo.h61 png_size_t rowbytes; /* bytes needed to hold an untransformed row */ member in struct:png_info_def
H A Dpngstruct.h217 png_size_t rowbytes; /* size of row in bytes */ member in struct:png_struct_def
H A Dpng.h792 png_size_t rowbytes; /* number of bytes in row */ member in struct:png_row_info_struct
/external/skia/third_party/libpng/
H A Dpnginfo.h61 png_size_t rowbytes; /* bytes needed to hold an untransformed row */ member in struct:png_info_def
H A Dpngstruct.h217 png_size_t rowbytes; /* size of row in bytes */ member in struct:png_struct_def
H A Dpng.h792 png_size_t rowbytes; /* number of bytes in row */ member in struct:png_row_info_struct
/external/pdfium/core/fxge/ge/
H A Dcfx_facecache.cpp58 int rowbytes = std::min(FXSYS_abs(nSrcRowBytes), nDstRowBytes); local
61 rowbytes);
212 int rowbytes = local
216 rowbytes);
/external/pdfium/third_party/libtiff/
H A Dtif_fax3.c53 tmsize_t rowbytes; /* bytes in a decoded scanline */ member in struct:__anon16755
231 if (occ % sp->b.rowbytes)
250 buf += sp->b.rowbytes;
251 occ -= sp->b.rowbytes;
275 if (occ % sp->b.rowbytes)
307 buf += sp->b.rowbytes;
308 occ -= sp->b.rowbytes;
480 tmsize_t rowbytes; local
492 rowbytes = TIFFTileRowSize(tif);
495 rowbytes
[all...]
H A Dtif_dirread.c4349 uint64 rowbytes = TIFFScanlineSize64(tif); local
4352 td->td_stripbytecount[strip] = rowbytes * rowsperstrip;
/external/syslinux/com32/include/
H A Dpng.h813 png_uint_32 rowbytes PNG_DEPSTRUCT; /* bytes needed to hold an untransformed row */
1153 png_uint_32 rowbytes; /* number of bytes in row */ member in struct:png_row_info_struct
1283 png_uint_32 rowbytes PNG_DEPSTRUCT; /* size of row in bytes */
/external/ImageMagick/coders/
H A Dpng.c8027 rowbytes,
10855 rowbytes=image->columns;
10857 rowbytes*=2;
10861 rowbytes*=3;
10865 rowbytes*=2;
10869 rowbytes*=4;
10882 " Allocating %.20g bytes of memory for pixels",(double) rowbytes);
10884 pixel_info=AcquireVirtualMemory(rowbytes,sizeof(*ping_pixels));
8017 rowbytes, local
/external/python/cpython2/Mac/Modules/qd/
H A D_Qdmodule.c6501 int rowbytes; local
6504 if ( !PyArg_ParseTuple(_args, "O!iO&", &PyString_Type, &source, &rowbytes, PyMac_GetRect,
6511 ptr->rowBytes = rowbytes;

Completed in 519 milliseconds