Home
last modified time | relevance | path

Searched refs:rowbytes (Results 1 – 25 of 62) 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;
/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 png_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 png_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.c53 tmsize_t rowbytes; /* bytes in a decoded scanline */ member
231 if (occ % sp->b.rowbytes) in Fax3Decode1D()
250 buf += sp->b.rowbytes; in Fax3Decode1D()
251 occ -= sp->b.rowbytes; in Fax3Decode1D()
275 if (occ % sp->b.rowbytes) in Fax3Decode2D()
307 buf += sp->b.rowbytes; in Fax3Decode2D()
308 occ -= sp->b.rowbytes; in Fax3Decode2D()
510 tmsize_t rowbytes; in Fax3SetupState() local
522 rowbytes = TIFFTileRowSize(tif); in Fax3SetupState()
525 rowbytes = TIFFScanlineSize(tif); in Fax3SetupState()
[all …]
/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.c47 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_up_neon()
68 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub3_neon()
115 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub4_neon()
145 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg3_neon()
212 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg4_neon()
280 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth3_neon()
347 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth4_neon()
/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.c47 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_up_neon()
68 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub3_neon()
115 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub4_neon()
145 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg3_neon()
212 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg4_neon()
280 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth3_neon()
347 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_paeth4_neon()
/external/pdfium/third_party/libpng16/contrib/intel/
Dfilter_sse2_intrinsics.c75 int rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2()
104 int rb = row_info->rowbytes; in png_read_filter_row_sub4_sse2()
128 int rb = row_info->rowbytes; in png_read_filter_row_avg3_sse2()
177 int rb = row_info->rowbytes; in png_read_filter_row_avg4_sse2()
246 int rb = row_info->rowbytes; in png_read_filter_row_paeth3_sse2()
340 int rb = row_info->rowbytes; in png_read_filter_row_paeth4_sse2()
/external/libpng/intel/
Dfilter_sse2_intrinsics.c80 rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2()
113 rb = row_info->rowbytes+4; in png_read_filter_row_sub4_sse2()
142 rb = row_info->rowbytes; in png_read_filter_row_avg3_sse2()
195 rb = row_info->rowbytes+4; in png_read_filter_row_avg4_sse2()
267 rb = row_info->rowbytes; in png_read_filter_row_paeth3_sse2()
367 rb = row_info->rowbytes+4; in png_read_filter_row_paeth4_sse2()
/external/libpng/contrib/intel/
Dfilter_sse2_intrinsics.c75 int rb = row_info->rowbytes; in png_read_filter_row_sub3_sse2()
104 int rb = row_info->rowbytes; in png_read_filter_row_sub4_sse2()
128 int rb = row_info->rowbytes; in png_read_filter_row_avg3_sse2()
177 int rb = row_info->rowbytes; in png_read_filter_row_avg4_sse2()
246 int rb = row_info->rowbytes; in png_read_filter_row_paeth3_sse2()
340 int rb = row_info->rowbytes; in png_read_filter_row_paeth4_sse2()
/external/libpng/
Dpngrtran.c2117 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info()
2125 png_ptr->info_rowbytes = info_ptr->rowbytes; in png_read_transform_info()
2227 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack()
2303 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2318 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2336 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2354 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2386 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8()
2429 row_info->rowbytes = row_info->width * row_info->channels; in png_do_scale_16_to_8()
2447 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_chop()
[all …]
Dpngtrans.c273 png_size_t istop = row_info->rowbytes; in png_do_invert()
287 png_size_t istop = row_info->rowbytes; in png_do_invert()
302 png_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 = (png_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.c2114 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info()
2122 png_ptr->info_rowbytes = info_ptr->rowbytes; in png_read_transform_info()
2224 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack()
2300 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2315 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2333 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2351 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2383 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8()
2426 row_info->rowbytes = row_info->width * row_info->channels; in png_do_scale_16_to_8()
2444 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_chop()
[all …]
Dpngtrans.c272 png_size_t istop = row_info->rowbytes; in png_do_invert()
286 png_size_t istop = row_info->rowbytes; in png_do_invert()
301 png_size_t istop = row_info->rowbytes; in png_do_invert()
463 end = row + row_info->rowbytes; in png_do_packswap()
498 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ in png_do_strip_channel()
597 row_info->rowbytes = dp-row; in png_do_strip_channel()
696 png_bytep rp = png_ptr->row_buf + row_info->rowbytes; in png_do_check_palette_indexes()
/external/freetype/src/sfnt/
Dpngshim.c85 if ( row_info->rowbytes > 15 ) in premultiply_data()
88 limit = row_info->rowbytes - 16 + 1; in premultiply_data()
129 limit = row_info->rowbytes; in premultiply_data()
173 for ( i = 0; i < row_info->rowbytes; i += 4 ) in convert_bytes_to_data()
/external/swiftshader/third_party/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/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/swiftshader/third_party/llvm-7.0/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.c370 png_size_t istop = row_info->rowbytes; in png_read_filter_row_up_msa()
461 png_size_t istop = row_info->rowbytes; in png_read_filter_row_sub4_msa()
500 png_size_t istop = row_info->rowbytes; in png_read_filter_row_sub3_msa()
548 png_size_t istop = row_info->rowbytes - 4; in png_read_filter_row_avg4_msa()
599 png_size_t istop = row_info->rowbytes - 3; in png_read_filter_row_avg3_msa()
682 rp_end = row_info->rowbytes - 4; in png_read_filter_row_paeth4_msa()
759 rp_end = row_info->rowbytes - 3; in png_read_filter_row_paeth3_msa()

123