Searched refs:imagePacker (Results 1 – 4 of 4) sorted by relevance
35 Media::ImagePacker imagePacker; in PackImage() local42 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() local115 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()
77 ImagePacker imagePacker; in CreateTempImage() local83 imagePacker.GetSupportedFormats(formats); in CreateTempImage()84 imagePacker.StartPacking(URI, option); in CreateTempImage()86 imagePacker.AddImage(*pixelMap); in CreateTempImage()89 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
236 ImagePacker imagePacker; in CreateTempImage() local242 imagePacker.GetSupportedFormats(formats); in CreateTempImage()243 imagePacker.StartPacking(URI, option); in CreateTempImage()245 imagePacker.AddImage(*pixelMap); in CreateTempImage()248 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
319 OHOS::Media::ImagePacker imagePacker; in WritePixelMapToStream() local325 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()