X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Fimage-loader.h;h=8af537d84bef15c996b34d8c3b71684ff501fbcd;hb=7a6b672c7be2bf382fb82034511c10f7608242e7;hp=f63b186613f7270a849d79fd208ef64ce3fa3ce6;hpb=5f8c9a246d6469de2f7966e48c754188c64bd2dd;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/common/image-loader.h b/dali/internal/imaging/common/image-loader.h index f63b186..8af537d 100644 --- a/dali/internal/imaging/common/image-loader.h +++ b/dali/internal/imaging/common/image-loader.h @@ -2,7 +2,7 @@ #define DALI_TIZEN_PLATFORM_IMAGE_LOADER_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,16 @@ namespace ImageLoader bool ConvertStreamToBitmap(const Integration::BitmapResourceType& resource, std::string path, FILE* const fp, Dali::Devel::PixelBuffer& pixelBuffer); /** + * Convert a file stream into image planes. + * @param[in] resource The resource to convert. + * @param[in] path The path to the resource. + * @param[in] fp File Pointer. Closed on exit. + * @param[out] pixelBuffers Pointer to write buffer to + * @return true on success, false on failure + */ +bool ConvertStreamToPlanes(const Integration::BitmapResourceType& resource, std::string path, FILE* const fp, std::vector& pixelBuffers); + +/** * Convert a bitmap and write to a file stream. * @param[in] path The path to the resource. * @param[in] fp File Pointer. Closed on exit.