Home
last modified time | relevance | path

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

/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnncompiled_cache.cpp355 int fsize{-1}; in ReadCacheModelFile() local
356 OH_NN_ReturnCode ret = GetCacheFileLength(ifs, fsize); in ReadCacheModelFile()
370 char* ptr = static_cast<char*>(m_device->AllocateBuffer(fsize)); in ReadCacheModelFile()
377 ifs.read(ptr, fsize); in ReadCacheModelFile()
388 cache.length = static_cast<size_t>(fsize); // fsize should be non-negative, safe to cast. in ReadCacheModelFile()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/
H A Djpeg_decoder.cpp754 unsigned long fsize = static_cast<unsigned long>(srcMgr_.inputStream->GetStreamSize()); in ParseExifData() local
755 if (fsize <= 0) { in ParseExifData()
759 unsigned char *buf = new unsigned char[fsize]; in ParseExifData()
761 srcMgr_.inputStream->Read(fsize, buf, fsize, readSize); in ParseExifData()
762 IMAGE_LOGD("parsing EXIF: fsize %{public}lu", fsize); in ParseExifData()
764 int code = exifInfo_.ParseExifData(buf, fsize); in ParseExifData()
1090 uint32_t fsize = static_cast<uint32_t>(srcMgr_.inputStream->GetStreamSize()); in GetFilterArea() local
1091 if (app1Size > fsize) { in GetFilterArea()