Home
last modified time | relevance | path

Searched refs:rowbytes (Results 1 – 25 of 60) sorted by relevance

123

/external/libpng/contrib/gregbook/
Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
172 rowbytes*height) { in readpng_get_image()
Dreadpng.c211 png_uint_32 i, rowbytes; in readpng_get_image() local
264 *pRowbytes = rowbytes = png_get_rowbytes(png_ptr, info_ptr); in readpng_get_image()
268 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
273 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
285 *pChannels, rowbytes, height)); in readpng_get_image()
291 row_pointers[i] = image_data + i*rowbytes; in readpng_get_image()
Dwpng.c167 ulg rowbytes; in main() local
690 rowbytes = wpng_info.width; in main()
692 rowbytes = wpng_info.width * 3; in main()
694 rowbytes = wpng_info.width * 4; in main()
709 if (wpng_info_height > ((size_t)(-1)/rowbytes || in main()
710 wpng_info_height > ((ulg)(-1)/rowbytes) { in main()
717 image_bytes = rowbytes * wpng_info.height; in main()
728 wpng_info.row_pointers[i] = wpng_info.image_data + i*rowbytes; in main()
747 wpng_info.image_data = (uch *)malloc(rowbytes); in main()
756 bytes = fread(wpng_info.image_data, 1, rowbytes, wpng_info.infile); in main()
[all …]
Drpng2-win.c645 ulg rowbytes = rpng2_info.rowbytes; in rpng2_win_init() local
648 Trace((stderr, " rowbytes = %d\n", rpng2_info.rowbytes)) in rpng2_win_init()
653 if (rpng2_info.height > ((size_t)(-1))/rowbytes) { in rpng2_win_init()
659 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height); in rpng2_win_init()
674 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_win_init()
1106 src = rpng2_info.image_data + row*rpng2_info.rowbytes;
Dreadpng2.h96 int rowbytes; member
/external/libpng/contrib/libtests/
Dmakepng.c329 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, in set_value() argument
340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
390 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, in generate_row() argument
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
422 assert(y == 0 && rowbytes == 8 && size_max == 15); in generate_row()
440 assert(y == 0 && rowbytes == 256 && size_max == 255); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
504 assert(size_max == 255 && rowbytes == 256*(pixel_depth>>3)); in generate_row()
506 while (rowbytes > 0) in generate_row()
[all …]
Dreadpng.c63 size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); in read_png() local
66 row = malloc(rowbytes); in read_png()
67 display = malloc(rowbytes); in read_png()
Dtimepng.c103 size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); in read_by_row() local
105 row = voidcast(png_bytep,malloc(rowbytes)); in read_by_row()
106 display = voidcast(png_bytep,malloc(rowbytes)); in read_by_row()
Dpngimage.c997 size_t rowbytes; in compare_read() local
1036 rowbytes = png_get_rowbytes(dp->read_pp, dp->read_ip); in compare_read()
1041 if (rowbytes != dp->original_rowbytes) in compare_read()
1043 (unsigned long)dp->original_rowbytes, (unsigned long)rowbytes); in compare_read()
1078 if (memcmp(row, orig, rowbytes-(mask != 0)) != 0 || (mask != 0 && in compare_read()
1079 ((row[rowbytes-1] & mask) != (orig[rowbytes-1] & mask)))) in compare_read()
1084 for (x=0; x<rowbytes-1; ++x) if (row[x] != orig[x]) in compare_read()
/external/pdfium/third_party/libtiff/
Dtif_fax3.c51 tmsize_t rowbytes; /* bytes in a decoded scanline */ member
229 if (occ % sp->b.rowbytes) in Fax3Decode1D()
248 buf += sp->b.rowbytes; in Fax3Decode1D()
249 occ -= sp->b.rowbytes; in Fax3Decode1D()
273 if (occ % sp->b.rowbytes) in Fax3Decode2D()
305 buf += sp->b.rowbytes; in Fax3Decode2D()
306 occ -= sp->b.rowbytes; in Fax3Decode2D()
508 tmsize_t rowbytes; in Fax3SetupState() local
520 rowbytes = TIFFTileRowSize(tif); in Fax3SetupState()
523 rowbytes = TIFFScanlineSize(tif); in Fax3SetupState()
[all …]
/external/libpng/arm/
Dfilter_neon.S66 ldr r3, [r0, #4] @ rowbytes
82 ldr r3, [r0, #4] @ rowbytes
108 ldr r3, [r0, #4] @ rowbytes
121 ldr r12, [r0, #4] @ rowbytes
143 ldr r12, [r0, #4] @ rowbytes
193 ldr r12, [r0, #4] @ rowbytes
217 ldr r12, [r0, #4] @ rowbytes
Dfilter_neon_intrinsics.c55 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_up_neon()
76 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub3_neon()
123 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub4_neon()
156 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg3_neon()
223 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg4_neon()
293 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth3_neon()
360 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth4_neon()
/external/pdfium/third_party/libpng16/arm/
Dfilter_neon.S66 ldr r3, [r0, #4] @ rowbytes
82 ldr r3, [r0, #4] @ rowbytes
108 ldr r3, [r0, #4] @ rowbytes
121 ldr r12, [r0, #4] @ rowbytes
143 ldr r12, [r0, #4] @ rowbytes
193 ldr r12, [r0, #4] @ rowbytes
217 ldr r12, [r0, #4] @ rowbytes
Dfilter_neon_intrinsics.c55 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_up_neon()
76 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub3_neon()
123 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub4_neon()
156 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg3_neon()
223 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg4_neon()
293 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth3_neon()
360 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth4_neon()
/external/libpng/intel/
Dfilter_sse2_intrinsics.c65 rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2()
98 rb = row_info->rowbytes+4; in png_read_filter_row_sub4_sse2()
127 rb = row_info->rowbytes; in png_read_filter_row_avg3_sse2()
180 rb = row_info->rowbytes+4; in png_read_filter_row_avg4_sse2()
252 rb = row_info->rowbytes; in png_read_filter_row_paeth3_sse2()
352 rb = row_info->rowbytes+4; in png_read_filter_row_paeth4_sse2()
/external/pdfium/third_party/libpng16/intel/
Dfilter_sse2_intrinsics.c65 rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2()
98 rb = row_info->rowbytes+4; in png_read_filter_row_sub4_sse2()
127 rb = row_info->rowbytes; in png_read_filter_row_avg3_sse2()
180 rb = row_info->rowbytes+4; in png_read_filter_row_avg4_sse2()
252 rb = row_info->rowbytes; in png_read_filter_row_paeth3_sse2()
352 rb = row_info->rowbytes+4; in png_read_filter_row_paeth4_sse2()
/external/libpng/
Dpngrtran.c2128 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info()
2136 png_ptr->info_rowbytes = info_ptr->rowbytes; in png_read_transform_info()
2238 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack()
2314 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2329 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2347 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2365 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2397 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8()
2440 row_info->rowbytes = row_info->width * row_info->channels; in png_do_scale_16_to_8()
2458 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_chop()
[all …]
Dpngtrans.c273 size_t istop = row_info->rowbytes; in png_do_invert()
287 size_t istop = row_info->rowbytes; in png_do_invert()
302 size_t istop = row_info->rowbytes; in png_do_invert()
464 end = row + row_info->rowbytes; in png_do_packswap()
499 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ in png_do_strip_channel()
612 row_info->rowbytes = (size_t)(dp-row); in png_do_strip_channel()
711 png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1; in png_do_check_palette_indexes()
/external/pdfium/third_party/libpng16/
Dpngrtran.c2128 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info()
2136 png_ptr->info_rowbytes = info_ptr->rowbytes; in png_read_transform_info()
2238 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack()
2314 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2329 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2347 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2365 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2397 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8()
2440 row_info->rowbytes = row_info->width * row_info->channels; in png_do_scale_16_to_8()
2458 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_chop()
[all …]
Dpngtrans.c273 size_t istop = row_info->rowbytes; in png_do_invert()
287 size_t istop = row_info->rowbytes; in png_do_invert()
302 size_t istop = row_info->rowbytes; in png_do_invert()
464 end = row + row_info->rowbytes; in png_do_packswap()
499 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ in png_do_strip_channel()
612 row_info->rowbytes = (size_t)(dp-row); in png_do_strip_channel()
711 png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1; in png_do_check_palette_indexes()
/external/freetype/src/sfnt/
Dpngshim.c90 if ( row_info->rowbytes > 15 ) in premultiply_data()
93 limit = row_info->rowbytes - 16 + 1; in premultiply_data()
134 limit = row_info->rowbytes; in premultiply_data()
178 for ( i = 0; i < row_info->rowbytes; i += 4 ) in convert_bytes_to_data()
/external/llvm/test/Transforms/IndVarSimplify/
Ddangling-use.ll6 define void @vec_inverse_5_7_vert_loop_copyseparate(i8* %x, i32 %n, i32 %rowbytes) nounwind {
9 %tmp2 = sdiv i32 %rowbytes, 5 ; <i32> [#uses=2]
/external/llvm-project/llvm/test/Transforms/IndVarSimplify/
Ddangling-use.ll6 define void @vec_inverse_5_7_vert_loop_copyseparate(i8* %x, i32 %n, i32 %rowbytes) nounwind {
9 %tmp2 = sdiv i32 %rowbytes, 5 ; <i32> [#uses=2]
/external/libpng/mips/
Dfilter_msa_intrinsics.c371 size_t istop = row_info->rowbytes; in png_read_filter_row_up_msa()
462 size_t istop = row_info->rowbytes; in png_read_filter_row_sub4_msa()
501 size_t istop = row_info->rowbytes; in png_read_filter_row_sub3_msa()
549 size_t istop = row_info->rowbytes - 4; in png_read_filter_row_avg4_msa()
600 size_t istop = row_info->rowbytes - 3; in png_read_filter_row_avg3_msa()
683 rp_end = row_info->rowbytes - 4; in png_read_filter_row_paeth4_msa()
760 rp_end = row_info->rowbytes - 3; in png_read_filter_row_paeth3_msa()
/external/llvm/test/CodeGen/Thumb2/
D2010-03-15-AsmCCClobber.ll21 …ormat, i32 %w, i32 %h, i32 %levels, i32* %s, i8* %data, i32* nocapture %rowbytes, void (i8*, i8*)*…
56 %scevgep10 = getelementptr i32, i32* %rowbytes, i32 %l.09

123