/foundation/graphic/ui/frameworks/imgdecode/ |
D | image_load.cpp | 34 bool ImageLoad::CreateImage(ImageInfo& imageInfo) in CreateImage() argument 37 ImageHeader& imageHeader = imageInfo.header; in CreateImage() 54 imageInfo.dataSize = imageHeader.width * imageHeader.height * bytePerPixel; in CreateImage() 55 imageInfo.data = static_cast<uint8_t*>(ImageCacheMalloc(imageInfo)); in CreateImage() 56 if (imageInfo.data == nullptr) { in CreateImage() 64 bool ImageLoad::UncompressImageInZip(ImageInfo& imageInfo, uint8_t* buffer, uint32_t size) in UncompressImageInZip() argument 66 if (!CreateImage(imageInfo)) { in UncompressImageInZip() 71 if (imageInfo.header.colorMode == RGB888) { in UncompressImageInZip() 72 return Unzip24Image(buffer, size, imageInfo); in UncompressImageInZip() 74 return UnzipImage(buffer, size, imageInfo); in UncompressImageInZip() [all …]
|
D | image_load.h | 31 static bool GetImageInfo(int32_t fd, uint32_t size, ImageInfo& imageInfo); 37 static bool UnZip2ImageInfo(ImageInfo& imageInfo, uint8_t* buffer, uint32_t size); 38 static bool UncompressImageInZip(ImageInfo& imageInfo, uint8_t* buffer, uint32_t size); 39 static bool CreateImage(ImageInfo& imageInfo); 40 static bool Unzip24Image(uint8_t* imageBuffer, uint32_t size, ImageInfo& imageInfo); 41 static bool UnzipImage(uint8_t* imageBuffer, uint32_t size, ImageInfo& imageInfo);
|
/foundation/multimedia/image_standard/frameworks/innerkitsimpl/test/unittest/ |
D | image_transform_test.cpp | 38 pixmapInfo.imageInfo.size.width = 3; in ConstructPixmapInfo() 39 pixmapInfo.imageInfo.size.height = 4; in ConstructPixmapInfo() 40 pixmapInfo.imageInfo.pixelFormat = PixelFormat::ARGB_8888; in ConstructPixmapInfo() 41 pixmapInfo.imageInfo.colorSpace = ColorSpace::SRGB; in ConstructPixmapInfo() 104 EXPECT_EQ(outPutInfo.imageInfo.size.width, 6); 105 EXPECT_EQ(outPutInfo.imageInfo.size.height, 8); 165 …trans.SetRotateParam(90, (float)(inPutInfo.imageInfo.size.width / 2), (float)(inPutInfo.imageInfo.… 169 EXPECT_EQ(outPutInfo.imageInfo.size.width, 4); 170 EXPECT_EQ(outPutInfo.imageInfo.size.height, 3); 223 trans.SetRotateParam(180, (float)(inPutInfo.imageInfo.size.width / 2), [all …]
|
D | image_source_wbmp_test.cpp | 175 ImageInfo imageInfo; variable 176 uint32_t ret = imageSource->GetImageInfo(0, imageInfo); 178 ret = imageSource->GetImageInfo(imageInfo); 179 ASSERT_EQ(imageInfo.size.width, 472); 180 ASSERT_EQ(imageInfo.size.height, 75); 234 ImageInfo imageInfo; variable 235 pixelMap->GetImageInfo(imageInfo); 236 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; 239 cropPixelMap->GetImageInfo(imageInfo); 240 ASSERT_EQ(imageInfo.size.width, 1); [all …]
|
D | image_source_raw_test.cpp | 194 ImageInfo imageInfo; variable 195 uint32_t ret = imageSource->GetImageInfo(0, imageInfo); 197 ret = imageSource->GetImageInfo(imageInfo); 198 ASSERT_EQ(imageInfo.size.width, 5976); 199 ASSERT_EQ(imageInfo.size.height, 3992); 253 ImageInfo imageInfo; variable 254 pixelMap->GetImageInfo(imageInfo); 255 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; 258 cropPixelMap->GetImageInfo(imageInfo); 259 ASSERT_EQ(imageInfo.size.width, 1); [all …]
|
D | image_source_bmp_test.cpp | 195 ImageInfo imageInfo; variable 196 uint32_t ret = imageSource->GetImageInfo(0, imageInfo); 198 ret = imageSource->GetImageInfo(imageInfo); 199 ASSERT_EQ(imageInfo.size.width, 472); 200 ASSERT_EQ(imageInfo.size.height, 75); 272 ImageInfo imageInfo; variable 273 pixelMap->GetImageInfo(imageInfo); 274 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; 277 cropPixelMap->GetImageInfo(imageInfo); 278 ASSERT_EQ(imageInfo.size.width, 1); [all …]
|
D | image_source_webp_test.cpp | 125 ImageInfo imageInfo; variable 126 uint32_t ret = imageSource->GetImageInfo(0, imageInfo); 128 ret = imageSource->GetImageInfo(imageInfo); 129 ASSERT_EQ(imageInfo.size.width, 588); 130 ASSERT_EQ(imageInfo.size.height, 662); 202 ImageInfo imageInfo; variable 203 pixelMap->GetImageInfo(imageInfo); 204 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; 207 cropPixelMap->GetImageInfo(imageInfo); 208 ASSERT_EQ(imageInfo.size.width, 1); [all …]
|
D | image_source_jpeg_test.cpp | 154 ImageInfo imageInfo; variable 156 uint32_t ret = imageSource->GetImageInfo(index, imageInfo); 158 ret = imageSource->GetImageInfo(imageInfo); 359 ImageInfo imageInfo; variable 360 pixelMap->GetImageInfo(imageInfo); 361 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; 364 cropPixelMap->GetImageInfo(imageInfo); 365 ASSERT_EQ(imageInfo.size.width, 1); 366 ASSERT_EQ(imageInfo.size.height, 1); 589 ImageInfo imageInfo; variable [all …]
|
/foundation/ace/ace_engine/frameworks/core/image/ |
D | image_provider.cpp | 40 ImageSourceInfo imageInfo, in FetchImageObject() argument 51 auto task = [context, imageInfo, successCallback, failedCallback, useSkiaSvg, renderTaskHolder, in FetchImageObject() 56 … LOGE("pipline context has been released. imageInfo: %{private}s", imageInfo.ToString().c_str()); in FetchImageObject() 61 LOGE("task executor is null. imageInfo: %{private}s", imageInfo.ToString().c_str()); in FetchImageObject() 64 RefPtr<ImageObject> imageObj = QueryImageObjectFromCache(imageInfo, pipelineContext); in FetchImageObject() 66 imageObj = GeneraterAceImageObject(imageInfo, pipelineContext, useSkiaSvg); in FetchImageObject() 70 … [failedCallback, imageInfo] { failedCallback(imageInfo); }, TaskExecutor::TaskType::UI); in FetchImageObject() 73 …taskExecutor->PostTask([successCallback, imageInfo, imageObj]() { successCallback(imageInfo, image… in FetchImageObject() 77 bool forceResize = (!imageObj->IsSvg()) && (imageInfo.IsSourceDimensionValid()); in FetchImageObject() 94 const ImageSourceInfo& imageInfo, const RefPtr<PipelineContext>& pipelineContext) in QueryImageObjectFromCache() argument [all …]
|
D | image_provider.h | 92 ImageSourceInfo imageInfo, 126 const ImageSourceInfo& imageInfo, 131 const ImageSourceInfo& imageInfo, 136 const ImageSourceInfo& imageInfo, const RefPtr<PipelineContext>& pipelineContext);
|
/foundation/aafwk/standard/services/abilitymgr/src/ |
D | screenshot_handler.cpp | 74 auto imageInfo = response->GetImageInfo(); in StartScreenshot() local 75 screenShot_.emplace(missionId, imageInfo); in StartScreenshot() 81 OHOS::WMImageInfo imageInfo; in GetImageInfo() local 84 imageInfo = iter->second; in GetImageInfo() 87 return imageInfo; in GetImageInfo()
|
D | mission_snapshot.cpp | 35 imageInfo = *image; in ReadFromParcel() 55 if (!parcel.WriteParcelable(&imageInfo)) { in Marshalling()
|
/foundation/graphic/standard/rosen/modules/2d_graphics/src/engine_adapter/skia_adapter/ |
D | skia_bitmap.cpp | 65 auto imageInfo = SkImageInfo::Make( in MakeSkImageInfo() local 67 return imageInfo; in MakeSkImageInfo() 72 auto imageInfo = MakeSkImageInfo(width, height, format); in Build() local 73 skiaBitmap_.setInfo(imageInfo); in Build() 109 SkImageInfo imageInfo = MakeSkImageInfo(w, h, format); in CopyPixels() local 114 skiaBitmap_.readPixels(imageInfo, dstPixels, dstRowBytes, srcX, srcY); in CopyPixels()
|
/foundation/multimedia/image_standard/frameworks/innerkitsimpl/converter/src/ |
D | basic_transformer.cpp | 123 int32_t pixelBytes = ImageUtils::GetPixelBytes(inPixmap.imageInfo.pixelFormat); in TransformPixmap() 129 Size dstSize = inPixmap.imageInfo.size; in TransformPixmap() 130 GetDstDimension(inPixmap.imageInfo.size, dstSize); in TransformPixmap() 131 outPixmap.imageInfo.size = dstSize; in TransformPixmap() 148 outPixmap.imageInfo.pixelFormat = inPixmap.imageInfo.pixelFormat; in TransformPixmap() 149 outPixmap.imageInfo.colorSpace = inPixmap.imageInfo.colorSpace; in TransformPixmap() 150 outPixmap.imageInfo.alphaType = inPixmap.imageInfo.alphaType; in TransformPixmap() 151 outPixmap.imageInfo.baseDensity = inPixmap.imageInfo.baseDensity; in TransformPixmap() 182 uint32_t rb = pixmapInfo.imageInfo.size.width * pixelBytes; in DrawPixelmap() 192 if (CheckOutOfRange(srcPoint, pixmapInfo.imageInfo.size)) { in DrawPixelmap() [all …]
|
D | post_proc.cpp | 313 uint32_t PostProc::AllocBuffer(ImageInfo imageInfo, uint8_t **resultData, uint64_t &bufferSize, int… in AllocBuffer() argument 315 int32_t pixelBytes = ImageUtils::GetPixelBytes(imageInfo.pixelFormat); in AllocBuffer() 319 if (ImageUtils::CheckMulOverflow(imageInfo.size.width, imageInfo.size.height, pixelBytes)) { in AllocBuffer() 321 imageInfo.size.width, imageInfo.size.height); in AllocBuffer() 324 bufferSize = static_cast<uint64_t>(imageInfo.size.width) * imageInfo.size.height * pixelBytes; in AllocBuffer() 326 imageInfo.size.width, imageInfo.size.height, (long long)bufferSize); in AllocBuffer() 328 *resultData = AllocSharedMemory(imageInfo.size, bufferSize, fd); in AllocBuffer() 432 pixmapInfo.imageInfo.size.width = pixelMap.GetWidth(); in ConvertPixelMapToPixmapInfo() 433 pixmapInfo.imageInfo.size.height = pixelMap.GetHeight(); in ConvertPixelMapToPixmapInfo() 434 pixmapInfo.imageInfo.pixelFormat = pixelMap.GetPixelFormat(); in ConvertPixelMapToPixmapInfo() [all …]
|
/foundation/aafwk/standard/services/abilitymgr/test/unittest/phone/screenshot_handler_test/ |
D | screenshot_handler_test.cpp | 116 auto imageInfo = screenShotHandler_->GetImageInfo(missionId); variable 118 EXPECT_EQ(imageInfo.width, static_cast<uint32_t>(1)); 119 EXPECT_EQ(imageInfo.size, static_cast<uint32_t>(5)); 120 EXPECT_EQ(imageInfo.height, static_cast<uint32_t>(2)); 121 EXPECT_EQ(imageInfo.format, static_cast<uint32_t>(3)); 122 EXPECT_EQ(imageInfo.data, nullptr);
|
/foundation/multimedia/image_standard/frameworks/innerkitsimpl/converter/include/ |
D | basic_transformer.h | 65 ImageInfo imageInfo; member 92 imageInfo = src.imageInfo; in Init() 109 strFlag.c_str(), imageInfo.size.width, imageInfo.size.height, bufferSize, in PrintPixmapInfo() 110 static_cast<int32_t>(imageInfo.pixelFormat)); in PrintPixmapInfo()
|
/foundation/graphic/ui/test/unittest/components/ |
D | ui_image_unit_test.cpp | 189 const ImageInfo* imageInfo = nullptr; variable 190 imageView_->SetSrc(imageInfo); 206 const ImageInfo imageInfo {0}; variable 207 imageView_->SetSrc(&imageInfo); 224 const ImageInfo imageInfo {header, 0, nullptr, nullptr}; variable 225 imageView_->SetSrc(&imageInfo); 242 const ImageInfo imageInfo {header, 0, nullptr, nullptr}; variable 243 imageView_->SetSrc(&imageInfo);
|
/foundation/multimedia/medialibrary_standard/frameworks/innerkitsimpl/media_scanner/src/ |
D | metadata_extractor.cpp | 42 ImageInfo imageInfo; in ExtractImageMetadata() local 43 uint32_t ret = imageSource->GetImageInfo(0, imageInfo); in ExtractImageMetadata() 45 fileMetadata.SetFileWidth(imageInfo.size.width); in ExtractImageMetadata() 46 fileMetadata.SetFileHeight(imageInfo.size.height); in ExtractImageMetadata()
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/message/ |
D | msg_request_auth.h | 36 …const DmDeviceInfo &devReqInfo, const DmAppImageInfo &imageInfo, std::string &extras) : MsgRequest… in MsgRequestAuth() argument 37 … token, hostPkgName, targetPkgName, GROUP_VISIBILITY_IS_PRIVATE, devReqInfo, imageInfo, extras) {}; in MsgRequestAuth() 39 … const int32_t groupVisibility, const DmDeviceInfo &devReqInfo, const DmAppImageInfo &imageInfo,
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/dispatch/ |
D | message_processing.h | 39 const DmAppImageInfo &imageInfo, std::string &extra); 45 int32_t CheckParamValid(nlohmann::json &extraJson, const DmAppImageInfo &imageInfo);
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/include/requestauth/ |
D | auth_manager.h | 36 …iceGroup(std::string &hostPkgName, const DmDeviceInfo &devReqInfo, const DmAppImageInfo &imageInfo, 49 …AppGroup(std::string &hostPkgName, const DmDeviceInfo &devReqInfo, const DmAppImageInfo &imageInfo,
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/src/dispatch/ |
D | message_processing.cpp | 38 …32_t MessageProcessing::CheckParamValid(nlohmann::json &extraJson, const DmAppImageInfo &imageInfo) in CheckParamValid() argument 208 const DmAppImageInfo &imageInfo, std::string &extra) in AuthenticateDevice() argument 219 int32_t ret = CheckParamValid(jsonObject, imageInfo); in AuthenticateDevice() 227 AuthManager::GetInstance().AuthDeviceGroup(pkgName, deviceInfo, imageInfo, extra); in AuthenticateDevice()
|
/foundation/distributedhardware/devicemanager/ext/mini/services/devicemanagerservice/src/requestauth/ |
D | auth_manager.cpp | 37 const DmAppImageInfo &imageInfo, std::string &extras) in AuthDeviceGroup() argument 39 AuthAppGroup(hostPkgName, devReqInfo, imageInfo, extras); in AuthDeviceGroup() 62 const DmAppImageInfo &imageInfo, std::string &extrasJson) in AuthAppGroup() argument 92 …urSessionPtr = std::make_shared<RequestSession>(hostPkgName, targetPkgName, devReqInfo, imageInfo); in AuthAppGroup()
|
/foundation/multimedia/image_standard/ |
D | README_zh.md | 153 pixelmap.getImageInfo( imageInfo => {}) 235 imageSourceApi.getImageInfo((imageInfo) => { 236 console.info('TC_045 imageInfo') 237 expect(imageInfo !== null).assertTrue()
|