Home
last modified time | relevance | path

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

/base/notification/ans_standard/frameworks/ans/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/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager/src/
Dwallpaper_manager.cpp219 OHOS::Media::ImagePacker imagePacker; in WritePixelMapToStream() local
225 uint32_t ret = imagePacker.GetSupportedFormats(formats); in WritePixelMapToStream()
230 imagePacker.StartPacking(outputStream, option); in WritePixelMapToStream()
231 imagePacker.AddImage(*pixelMap); in WritePixelMapToStream()
233 imagePacker.FinalizePacking(packedSize); in WritePixelMapToStream()
241 OHOS::Media::ImagePacker imagePacker; in WritePixelMapToFile() local
247 uint32_t ret = imagePacker.GetSupportedFormats(formats); in WritePixelMapToFile()
251 imagePacker.StartPacking(filePath, option); in WritePixelMapToFile()
252 imagePacker.AddImage(*pixelMap); in WritePixelMapToFile()
254 imagePacker.FinalizePacking(packedSize); in WritePixelMapToFile()
/base/miscservices/wallpaper/services/src/
Dwallpaper_service.cpp386 ImagePacker imagePacker; in WritePixelMapToFile() local
392 uint32_t ret = imagePacker.GetSupportedFormats(formats); in WritePixelMapToFile()
396 imagePacker.StartPacking(filePath, option); in WritePixelMapToFile()
398 imagePacker.AddImage(*pixelMap); in WritePixelMapToFile()
401 imagePacker.FinalizePacking(packedSize); in WritePixelMapToFile()