1 #ifndef DALI_IMAGE_LOADING_PLUGIN_H
2 #define DALI_IMAGE_LOADING_PLUGIN_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/devel-api/adaptor-framework/image-loader-input.h>
29 class ImageLoaderPlugin
42 virtual ~ImageLoaderPlugin()
47 * @brief Get the image decorder
48 * @param[in] filename The path to the resource.
49 * @return BitmapLoader
51 virtual const ImageLoader::BitmapLoader* BitmapLoaderLookup(const std::string& filename) const = 0;
54 * @brief Function pointer called in adaptor to create a image loading plugin instance.
55 * @return Pointer to the newly created plugin object
57 typedef ImageLoaderPlugin* CreateImageLoaderPlugin(void);
60 * @brief Function pointer called in adaptor to destory a image loading plugin instance.
62 typedef void DestroyImageLoaderPlugin(ImageLoaderPlugin* plugin);