Home
last modified time | relevance | path

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

/external/libpng/
Dexample.c244 #define PNG_BYTES_TO_CHECK 4
247 char buf[PNG_BYTES_TO_CHECK];
254 if (fread(buf, 1, PNG_BYTES_TO_CHECK, *fp) != PNG_BYTES_TO_CHECK)
260 return(!png_sig_cmp(buf, (png_size_t)0, PNG_BYTES_TO_CHECK));
/external/skia/src/images/
DSkImageDecoder_libpng.cpp100 #define PNG_BYTES_TO_CHECK 4 macro
993 char buf[PNG_BYTES_TO_CHECK]; in is_png()
994 if (stream->read(buf, PNG_BYTES_TO_CHECK) == PNG_BYTES_TO_CHECK && in is_png()
995 !png_sig_cmp((png_bytep) buf, (png_size_t)0, PNG_BYTES_TO_CHECK)) { in is_png()