Home
last modified time | relevance | path

Searched refs:packedSize (Results 1 – 25 of 62) sorted by relevance

123

/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/
H A Dimage_packer_native_impl.cpp52 int64_t packedSize = 0; in PackingFromImageSource() local
68 if (packedSize > 0 && (packedSize < bufferSize)) { in PackingFromImageSource()
69 *size = packedSize; in PackingFromImageSource()
83 int64_t packedSize = 0; in PackingFromPixelmap() local
99 if (packedSize > 0 && (packedSize < bufferSize)) { in PackingFromPixelmap()
100 *size = packedSize; in PackingFromPixelmap()
115 int64_t packedSize = 0; in PackToDataFromPicture() local
131 if (packedSize > 0 && (packedSize < bufferSize)) { in PackToDataFromPicture()
132 *size = packedSize; in PackToDataFromPicture()
146 int64_t packedSize = 0; in PackToFileFromImageSource() local
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_util.cpp61 int64_t packedSize = 0; in PackImage() local
62 imagePacker.FinalizePacking(packedSize); in PackImage()
63 return static_cast<int64_t>(packedSize); in PackImage()
91 int64_t packedSize = 0; in PackImage() local
92 imagePacker.FinalizePacking(packedSize); in PackImage()
93 return static_cast<int64_t>(packedSize); in PackImage()
118 int64_t packedSize = 0; in PackImage() local
119 imagePacker.FinalizePacking(packedSize); in PackImage()
120 return static_cast<int64_t>(packedSize); in PackImage()
/ohos5.0/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algorithm.h34 size_t packedSize = 0; member
36 PkgContextSize(size_t packedSize, size_t unpackedSize) in PkgContextSize()
38 this->packedSize = packedSize; in PkgContextSize()
46 size_t packedSize = 0; member
56 this->packedSize = size.packedSize; in PkgAlgorithmContext()
H A Dpkg_algorithm.cpp102 context.packedSize = destOffset - context.destOffset; in Pack()
119 size_t remainSize = context.packedSize; in Unpack()
144 if (destOffset - context.destOffset != context.packedSize) { in Unpack()
145 PKG_LOGE("original size error %zu %zu", destOffset, context.packedSize); in Unpack()
166 size_t remainSize = context.packedSize; in UnpackWithVerify()
199 if (destOffset - context.destOffset != context.packedSize) { in UnpackWithVerify()
200 PKG_LOGE("original size error %zu %zu", destOffset, context.packedSize); in UnpackWithVerify()
H A Dpkg_algo_deflate.cpp103 context.packedSize = destOffset - context.destOffset; in PackCalculate()
126 int32_t ret = ReadData(inStream, context.srcOffset, inBuffer, context.packedSize, readLen); in ReadUnpackData()
142 context.packedSize = context.packedSize - zstream.avail_in - unpackContext.packedSize; in CalculateUnpackData()
170 while ((unpackContext.packedSize > 0) || (unpackRet != Z_STREAM_END)) { in UnpackCalculate()
H A Dpkg_algo_lz4.cpp107 context.packedSize = destOffset - context.destOffset; in PackCalculate()
150 … int32_t ret = ReadData(inStream, unpackText.srcOffset, inBuffer, unpackText.packedSize, readLen); in UnpackCalculate()
167 ret = ReadData(inStream, unpackText.srcOffset, inBuffer, unpackText.packedSize, readLen); in UnpackCalculate()
190 context.packedSize = unpackText.srcOffset - context.srcOffset; in UnpackCalculate()
338 context.packedSize = msg.context.destOffset - context.destOffset; in Pack()
409 …if (ReadData(inStream, msg.context.srcOffset, msg.inBuffer, msg.context.packedSize, readLen) != PK… in UnpackDecode()
491 context.packedSize = msg.context.srcOffset - context.srcOffset; in Unpack()
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/cj/include/
H A Dimage_packer_impl.h76 int64_t packedSize = 0; in CommonPacking() local
77 uint32_t finalPackRet = real_->FinalizePacking(packedSize); in CommonPacking()
83 IMAGE_LOGD("packedSize=%{public}" PRId64, packedSize); in CommonPacking()
85 return std::make_tuple(SUCCESS_CODE, resultBuffer, packedSize); in CommonPacking()
108 int64_t packedSize = 0; in CommonPackToFile() local
109 uint32_t finalPackRet = real_->FinalizePacking(packedSize); in CommonPackToFile()
114 IMAGE_LOGD("packedSize=%{public}" PRId64, packedSize); in CommonPackToFile()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
H A Dhks_request.cpp96 auto [errCode, packedCerts, packedSize] = hksCallback->WaitForAsyncReply(timeout); in HksSendAnonAttestRequestAndWaitAsyncReply()
97 if (errCode != HKS_SUCCESS || packedCerts == nullptr || packedSize == 0) { in HksSendAnonAttestRequestAndWaitAsyncReply()
98 …rCode %" LOG_PUBLIC "u fail or packedCerts empty or size %" LOG_PUBLIC "u 0", errCode, packedSize); in HksSendAnonAttestRequestAndWaitAsyncReply()
102 if (outBlob->size < packedSize) { in HksSendAnonAttestRequestAndWaitAsyncReply()
103 …_LOG_E("out blob empty or too small %" LOG_PUBLIC "u %" LOG_PUBLIC "u", outBlob->size, packedSize); in HksSendAnonAttestRequestAndWaitAsyncReply()
107 errno_t err = memcpy_s(outBlob->data, outBlob->size, packedCerts.get(), packedSize); in HksSendAnonAttestRequestAndWaitAsyncReply()
109 …OG_E("memcpy_s failed destMax %" LOG_PUBLIC "u count %" LOG_PUBLIC "u", outBlob->size, packedSize); in HksSendAnonAttestRequestAndWaitAsyncReply()
112 outBlob->size = packedSize; in HksSendAnonAttestRequestAndWaitAsyncReply()
/ohos5.0/base/update/updater/services/package/pkg_package/
H A Dpkg_lz4file.cpp62 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
70 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack()
71 encodeLen = fileInfo_.fileInfo.packedSize; in Pack()
72 PKG_LOGI("Pack packedSize:%zu unpackedSize: %zu offset: %zu %zu", fileInfo_.fileInfo.packedSize, in Pack()
92 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
100 fileInfo_.fileInfo.packedSize = context.packedSize; in Unpack()
102 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack()
125 fileInfo_.fileInfo.packedSize = pkgFile_->GetPkgStream()->GetFileLength(); in DecodeHeader()
H A Dpkg_gzipfile.cpp141 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
149 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack()
160 …utStream->Write(buffer, BLOCK_SIZE, fileInfo_.fileInfo.dataOffset + fileInfo_.fileInfo.packedSize); in Pack()
165 encodeLen = fileInfo_.fileInfo.packedSize + BLOCK_SIZE; in Pack()
166 PKG_LOGI("Pack packedSize:%zu unpackedSize: %zu offset: %zu %zu", fileInfo_.fileInfo.packedSize, in Pack()
174 fileInfo_.fileInfo.packedSize = context.packedSize; in CheckFileInfo()
203 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack()
214 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
229 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack()
302 fileInfo_.fileInfo.packedSize = blockOffset - fileInfo_.fileInfo.dataOffset; in DecodeHeader()
[all …]
H A Dpkg_zipfile.cpp311 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in PackStream()
320 fileInfo_.fileInfo.packedSize = context.packedSize; in PackStream()
346 encodeLen = headerLen + fileInfo_.fileInfo.packedSize; in PackStream()
390 centralDir->compressedSize = fileInfo_.fileInfo.packedSize; in EncodeCentralDirEntry()
428 header->compressedSize = fileInfo_.fileInfo.packedSize; in EncodeLocalFileHeader()
449 dataDesc.compressedSize = fileInfo_.fileInfo.packedSize; in EncodeDataDescriptor()
488 fileInfo_.fileInfo.packedSize = in DoDecodeCentralDirEntry()
489 … (fileInfo_.fileInfo.packedSize == UINT_MAX) ? packedSize : fileInfo_.fileInfo.packedSize; in DoDecodeCentralDirEntry()
556 currentPos += fileInfo_.fileInfo.packedSize; in DecodeLocalFileHeaderCheck()
642 size_t remainSize = context.packedSize; in Stored()
[all …]
H A Dpkg_pkgfile.cpp150 localFileInfo->packedSize = fileInfo->packedSize; in Init()
157 if (localFileInfo->packedSize == 0) { in Init()
158 localFileInfo->packedSize = inStream->GetFileLength(); in Init()
H A Dpkg_upgradefile.cpp104 compDataLen += (*it.second).GetFileInfo()->packedSize; in GetEntryOffset()
623 info.dataOffset += entry->GetFileInfo()->packedSize; in SaveEntry()
828 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize); in EncodeHeader()
843 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
861 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack()
863 encodeLen = fileInfo_.fileInfo.packedSize; in Pack()
865 fileInfo_.fileInfo.packedSize); in Pack()
895 fileInfo_.fileInfo.unpackedSize = fileInfo_.fileInfo.packedSize; in DecodeHeader()
917 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize, fileName_.c_str()); in DecodeHeader()
936 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_image_util.cpp62 int64_t packedSize {0}; in PackImage() local
63 imagePacker.FinalizePacking(packedSize); in PackImage()
64 ANS_LOGD("packed size : %{public}" PRId64, packedSize); in PackImage()
66 std::string pixelMapStr(reinterpret_cast<char*>(pbuf), static_cast<size_t>(packedSize)); in PackImage()
128 int64_t packedSize {0}; in PackImage2File() local
129 imagePacker.FinalizePacking(packedSize); in PackImage2File()
130 ANS_LOGI("packed size : %{public}" PRId64, packedSize); in PackImage2File()
/ohos5.0/base/update/updater/test/unittest/test_data/diffpatch/
H A DPatchGztest_new.gz1[==========] Running 25 tests from 7 test ...
H A DPatchGztest_old.gz1[==========] Running 25 tests from 7 test ...
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_persistence.cpp135 int64_t packedSize = 0; in SaveSnapshot() local
136 if (imagePacker.FinalizePacking(packedSize)) { in SaveSnapshot()
146 … TLOGNI(WmsLogTag::WMS_PATTERN, "Save snapshot end, packed size %{public}" PRIu64, packedSize); in SaveSnapshot()
214 int64_t packedSize = 0; in SaveUpdatedIcon() local
215 if (imagePacker.FinalizePacking(packedSize)) { in SaveUpdatedIcon()
/ohos5.0/base/theme/wallpaper_mgr/test/unittest/
H A Dwallpaper_permission_test.cpp87 int64_t packedSize = 0; in CreateTempImage() local
89 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
90 if (packedSize == 0) { in CreateTempImage()
/ohos5.0/base/update/updater/services/diffpatch/diff/
H A Dimage_diff.cpp24 #define GET_REAL_DATA_LEN(info) (info) ->packedSize + (info)->dataOffset - (info)->headerOffset
374 { orgNewBuffer.buffer, newFileInfo->dataOffset, newFileInfo->packedSize }, in UpdateBlocks()
375 { orgOldBuffer.buffer, oldFileInfo->dataOffset, oldFileInfo->packedSize }, in UpdateBlocks()
452 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
455 BlockBuffer orgData = {orgNewBuffer.buffer + fileInfo->dataOffset, fileInfo->packedSize}; in TestAndSetConfig()
456 …PATCH_DEBUG("DiffFile new orignial hash %zu %s", fileInfo->packedSize, GeneraterBufferHash(orgData… in TestAndSetConfig()
466 if ((bufferSize == fileInfo->packedSize) && in TestAndSetConfig()
545 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
546 BlockBuffer orgData = { orgNewBuffer.buffer, fileInfo->packedSize + sizeof(uint32_t) }; in TestAndSetConfig()
548 fileInfo->packedSize + sizeof(uint32_t), GeneraterBufferHash(orgData).c_str()); in TestAndSetConfig()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_packer_napi.cpp105 int64_t packedSize = 0; member
259 int64_t packedSize = 0; in STATIC_EXEC_FUNC() local
303 auto packRes = context->rImagePacker->FinalizePacking(packedSize); in STATIC_EXEC_FUNC()
304 IMAGE_LOGD("packedSize=%{public}" PRId64, packedSize); in STATIC_EXEC_FUNC()
306 context->packedSize = packedSize; in STATIC_EXEC_FUNC()
308 } else if (packedSize == context->resultBufferSize) { in STATIC_EXEC_FUNC()
340 context->packedSize, &result)) { in STATIC_COMPLETE_FUNC()
886 int64_t packedSize = 0; in FinalizePacking() local
887 auto packRes = context->rImagePacker->FinalizePacking(packedSize); in FinalizePacking()
889 if (packRes == SUCCESS && packedSize > 0) { in FinalizePacking()
[all …]
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dimage_packer_ohos.cpp48 uint32_t ImagePackerOhos::FinalizePacking(int64_t& packedSize) in FinalizePacking() argument
50 return imagePacker_->FinalizePacking(packedSize); in FinalizePacking()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_image_info.cpp69 int64_t packedSize = 0; in ConvertToString() local
70 errCode = packer.FinalizePacking(packedSize); in ConvertToString()
77 …pixelMap->GetByteCount(), static_cast<int32_t>(packedSize), static_cast<int32_t>(originalString.le… in ConvertToString()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/receiver/src/
H A Dimage_receiver.cpp77 int64_t packedSize = 0; in PackImage() local
78 imagePacker.FinalizePacking(packedSize); in PackImage()
79 IMAGE_LOGD("packedSize=%{public}lld.", static_cast<long long>(packedSize)); in PackImage()
80 IMAGE_LOGD("packedSize=%{public}lld.", static_cast<long long>(packedSize)); in PackImage()
81 return packedSize; in PackImage()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/photo_editor_extension_ability/
H A Dphoto_editor_extension_context.cpp81 int64_t packedSize = 0; in SaveEditedContent() local
82 if (imagePacker.FinalizePacking(packedSize) != Media::SUCCESS) { in SaveEditedContent()
88 if (packedSize > static_cast<int64_t>(MAX_IMAGE_SIZE)) { in SaveEditedContent()
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
H A Dmock_image_packer.cpp110 uint32_t ImagePacker::FinalizePacking(int64_t &packedSize) in FinalizePacking() argument
112 packedSize = g_mockImagePackerFinalizePackingRet; in FinalizePacking()

123