Lines Matching refs:zipFile
197 unzFile zipFile = unzOpen2(srcFilePath.c_str(), nullptr);
198 if (zipFile == nullptr) {
199 LOGE("Open zipFile fail: %{public}s", srcFilePath.c_str());
204 if (unzGetGlobalInfo(zipFile, &globalInfo) != UNZ_OK) {
206 return CloseZipFile(zipFile, false);
213 if (unzGetCurrentFileInfo(zipFile, &fileInfo, filename, MAX_FILE_NAME, nullptr, 0, nullptr, 0) != UNZ_OK) {
214 return CloseZipFile(zipFile, false);
218 return CloseZipFile(zipFile, false);
221 if (unzOpenCurrentFile(zipFile) != UNZ_OK) {
222 return CloseZipFile(zipFile, false);
229 if (!ReadImageFile(zipFile, name, imgVec, frameConfig, fileInfo.uncompressed_size)) {
231 unzCloseCurrentFile(zipFile);
232 return CloseZipFile(zipFile, false);
234 unzCloseCurrentFile(zipFile);
237 if (unzGoToNextFile(zipFile) != UNZ_OK) {
238 return CloseZipFile(zipFile, false);
242 return CloseZipFile(zipFile, true);
245 bool CloseZipFile(const unzFile zipFile, bool ret)
247 unzClose(zipFile);
262 bool ReadImageFile(const unzFile zipFile, const std::string& fileName, ImageStructVec& imgVec,
265 if (zipFile == nullptr) {
276 readLen = unzReadCurrentFile(zipFile, readBuffer, READ_SIZE);