Home
last modified time | relevance | path

Searched refs:PNG_BYTES_TO_CHECK (Results 1 – 2 of 2) sorted by relevance

/external/libpng/
Dexample.c57 #define PNG_BYTES_TO_CHECK 4
60 char buf[PNG_BYTES_TO_CHECK];
67 if (fread(buf, 1, PNG_BYTES_TO_CHECK, *fp) != PNG_BYTES_TO_CHECK)
73 return(!png_sig_cmp(buf, (png_size_t)0, PNG_BYTES_TO_CHECK));
/external/skia/src/images/
DSkImageDecoder_libpng.cpp87 #define PNG_BYTES_TO_CHECK 4 macro
1132 char buf[PNG_BYTES_TO_CHECK]; in DFactory()
1133 if (stream->read(buf, PNG_BYTES_TO_CHECK) == PNG_BYTES_TO_CHECK && in DFactory()
1134 !png_sig_cmp((png_bytep) buf, (png_size_t)0, PNG_BYTES_TO_CHECK)) { in DFactory()