X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fimage-loader-input.h;h=80d7b617ab173586952e478dca00b9d4511290af;hb=90d36078741b9c21c7a4c7cf7e0813f3d8ca5a10;hp=830b33c36547a9fd14192d5426c6b7f15bf4c322;hpb=106009d83bf6ac0f12226ca93143232eced3fdc1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/image-loader-input.h b/dali/devel-api/adaptor-framework/image-loader-input.h index 830b33c..80d7b61 100644 --- a/dali/devel-api/adaptor-framework/image-loader-input.h +++ b/dali/devel-api/adaptor-framework/image-loader-input.h @@ -2,7 +2,7 @@ #define DALI_TIZEN_PLATFORM_IMAGE_LOADER_INPUT_H /* - * Copyright (c) 2020 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. @@ -63,6 +63,7 @@ struct Input }; using LoadBitmapFunction = bool (*)(const Dali::ImageLoader::Input& input, Dali::Devel::PixelBuffer& pixelData); +using LoadPlanesFunction = bool (*)(const Dali::ImageLoader::Input& input, std::vector& pixelBuffers); using LoadBitmapHeaderFunction = bool (*)(const Dali::ImageLoader::Input& input, unsigned int& width, unsigned int& height); /** @@ -70,12 +71,13 @@ using LoadBitmapHeaderFunction = bool (*)(const Dali::ImageLoader::Input& input, */ struct BitmapLoader { - unsigned char magicByte1; ///< The first byte in the file should be this - unsigned char magicByte2; ///< The second byte in the file should be this - LoadBitmapFunction loader; ///< The function which decodes the file - LoadBitmapHeaderFunction header; ///< The function which decodes the header of the file - Dali::Integration::Bitmap::Profile profile; ///< The kind of bitmap to be created - /// (addressable packed pixels or an opaque compressed blob). + unsigned char magicByte1; ///< The first byte in the file should be this + unsigned char magicByte2; ///< The second byte in the file should be this + LoadBitmapFunction loader; ///< The function which decodes the file + LoadPlanesFunction planeLoader; ///< The function which decodes the file to each plane + LoadBitmapHeaderFunction header; ///< The function which decodes the header of the file + Dali::Integration::Bitmap::Profile profile; ///< The kind of bitmap to be created + /// (addressable packed pixels or an opaque compressed blob). }; } // namespace ImageLoader