mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Imported from libpng-1.6.18beta08.tar
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
OPERATING SYSTEM SPECIFIC ARM NEON DETECTION
|
||||
--------------------------------------------
|
||||
|
||||
Detection of the ability to exexcute ARM NEON on an ARM processor requires
|
||||
Detection of the ability to execute ARM NEON on an ARM processor requires
|
||||
operating system support. (The information is not available in user mode.)
|
||||
|
||||
HOW TO USE THIS
|
||||
|
||||
@@ -79,6 +79,8 @@
|
||||
*/
|
||||
#include "../../png.h"
|
||||
|
||||
#if defined(PNG_SIMPLIFIED_WRITE_SUPPORTED) && defined(PNG_STDIO_SUPPORTED)
|
||||
|
||||
static const struct color
|
||||
{
|
||||
const char *name;
|
||||
@@ -862,3 +864,4 @@ main(int argc, const char **argv)
|
||||
|
||||
return 1;
|
||||
}
|
||||
#endif /* SIMPLIFIED_WRITE && STDIO */
|
||||
|
||||
@@ -34,8 +34,9 @@
|
||||
|
||||
#define MAX_LENGTH 500000
|
||||
|
||||
/* Read one character (inchar), also return octet (c), break if EOF */
|
||||
#define GETBREAK inchar=getchar(); \
|
||||
c=(inchar & 0xff);\
|
||||
c=(inchar & 0xffU);\
|
||||
if (inchar != (int) c) break
|
||||
int
|
||||
main(void)
|
||||
@@ -94,10 +95,10 @@ for (;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Check the CRC */
|
||||
if (((crc >> 24) & 0xff) == buf[length+8] &&
|
||||
((crc >> 16) & 0xff) == buf[length+9] &&
|
||||
((crc >> 8) & 0xff) == buf[length+10] &&
|
||||
((crc ) & 0xff) == buf[length+11])
|
||||
if (((crc >> 24) & 0xffU) == buf[length+8] &&
|
||||
((crc >> 16) & 0xffU) == buf[length+9] &&
|
||||
((crc >> 8) & 0xffU) == buf[length+10] &&
|
||||
((crc ) & 0xffU) == buf[length+11])
|
||||
break;
|
||||
|
||||
length++;
|
||||
@@ -116,10 +117,10 @@ for (;;)
|
||||
break;
|
||||
|
||||
/* Update length bytes */
|
||||
buf[0] = (unsigned char)((length >> 24) & 0xff);
|
||||
buf[1] = (unsigned char)((length >> 16) & 0xff);
|
||||
buf[2] = (unsigned char)((length >> 8) & 0xff);
|
||||
buf[3] = (unsigned char)((length ) & 0xff);
|
||||
buf[0] = (unsigned char)((length >> 24) & 0xffU);
|
||||
buf[1] = (unsigned char)((length >> 16) & 0xffU);
|
||||
buf[2] = (unsigned char)((length >> 8) & 0xffU);
|
||||
buf[3] = (unsigned char)((length ) & 0xffU);
|
||||
|
||||
/* Write the fixed iTXt chunk (length, name, data, crc) */
|
||||
for (i=0; i<length+12; i++)
|
||||
|
||||
Reference in New Issue
Block a user