Home
last modified time | relevance | path

Searched refs:IMG_BYTES_TO_CHECK (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ui_lite/frameworks/common/
H A Dimage.cpp60 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()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_image_view.cpp495 const static uint8_t IMG_BYTES_TO_CHECK = 4; // 4: check 4 bytes of image file in SetSrc() local
496 char buf[IMG_BYTES_TO_CHECK] = {0}; in SetSrc()
501 if (read(fd, buf, IMG_BYTES_TO_CHECK) != IMG_BYTES_TO_CHECK) { in SetSrc()
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/common/
H A Dimage.h164 const static uint8_t IMG_BYTES_TO_CHECK = 4; // 4: check 4 bytes of image file variable