3 You can implement a new type of image loader plugin.
4 implement LoadBitmapFromImage and LoadImageHeader in the loader-dummy.cpp file.
6 bool LoadImageHeader( const Dali::ImageLoader::Input& input, unsigned int& width, unsigned int& height )
9 /* Loads the header of a image file and fills in the width and height appropriately. */
14 bool LoadBitmapFromImage( const Dali::ImageLoader::Input& input, Dali::Devel::PixelBuffer& bitmap )
17 /* Loads the bitmap from an image file. This function checks the header first */
22 And register your new image loader in tizen-image-loader.cpp
23 1) add type of new file formats
26 // Unknown file format
29 // formats that use magic bytes
34 2) add function of new image loader
35 const Dali::ImageLoader::BitmapLoader BITMAP_LOADER_LOOKUP_TABLE[FORMAT_TOTAL_COUNT] =
37 { 0x0, 0x0, LoadBitmapFromImage, LoadImageHeader, Dali::Integration::Bitmap::BITMAP_2D_PACKED_PIXELS },
40 3) add file extensions and formats
41 const FormatExtension FORMAT_EXTENSIONS[] =
43 { ".dummy", FORMAT_DUMMY }
47 To use the new Image Loader plugin, You must change the use_image_loader value to 1.
48 packaging/dali-extension.spec
49 # Use Image Loader Plugin
50 %define use_image_loader 1
52 When you build the dali-extension, dali-extension-image-loader-plugin.armv7l.rpm file is created.