Searched refs:IMG_BYTES_TO_CHECK (Results 1 – 3 of 3) sorted by relevance
60 char buf[IMG_BYTES_TO_CHECK] = {0}; in CheckImgType()70 if (read(fd, buf, IMG_BYTES_TO_CHECK) != IMG_BYTES_TO_CHECK) { in CheckImgType()76 if (!png_sig_cmp(reinterpret_cast<png_const_bytep>(buf), 0, IMG_BYTES_TO_CHECK)) { in CheckImgType()
495 const static uint8_t IMG_BYTES_TO_CHECK = 4; // 4: check 4 bytes of image file in SetSrc() local496 char buf[IMG_BYTES_TO_CHECK] = {0}; in SetSrc()501 if (read(fd, buf, IMG_BYTES_TO_CHECK) != IMG_BYTES_TO_CHECK) { in SetSrc()
164 const static uint8_t IMG_BYTES_TO_CHECK = 4; // 4: check 4 bytes of image file variable