Home
last modified time | relevance | path

Searched refs:imagePacker (Results 1 – 4 of 4) sorted by relevance

/base/notification/distributed_notification_service/frameworks/core/src/
Dans_image_util.cpp35 Media::ImagePacker imagePacker; in PackImage() local
42 auto ret = imagePacker.GetSupportedFormats(formats); in PackImage()
56 imagePacker.StartPacking(pbuf, size, option); in PackImage()
57 imagePacker.AddImage(*pixelMap); in PackImage()
59 imagePacker.FinalizePacking(packedSize); in PackImage()
108 Media::ImagePacker imagePacker; in PackImage2File() local
115 auto ret = imagePacker.GetSupportedFormats(formats); in PackImage2File()
121 imagePacker.StartPacking(outFilePath, option); in PackImage2File()
122 imagePacker.AddImage(*pixelMap); in PackImage2File()
124 imagePacker.FinalizePacking(packedSize); in PackImage2File()
/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_permission_test.cpp77 ImagePacker imagePacker; in CreateTempImage() local
83 imagePacker.GetSupportedFormats(formats); in CreateTempImage()
84 imagePacker.StartPacking(URI, option); in CreateTempImage()
86 imagePacker.AddImage(*pixelMap); in CreateTempImage()
89 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
Dwallpaper_test.cpp236 ImagePacker imagePacker; in CreateTempImage() local
242 imagePacker.GetSupportedFormats(formats); in CreateTempImage()
243 imagePacker.StartPacking(URI, option); in CreateTempImage()
245 imagePacker.AddImage(*pixelMap); in CreateTempImage()
248 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_manager.cpp319 OHOS::Media::ImagePacker imagePacker; in WritePixelMapToStream() local
325 uint32_t ret = imagePacker.GetSupportedFormats(formats); in WritePixelMapToStream()
330 imagePacker.StartPacking(outputStream, option); in WritePixelMapToStream()
331 imagePacker.AddImage(*pixelMap); in WritePixelMapToStream()
333 imagePacker.FinalizePacking(packedSize); in WritePixelMapToStream()