About the functions and work of mifconv in Symbian (. mk and. miflist files)

Source: Internet
Author: User
Tags bmp image

To put it simply, mifconv is an image compression and packaging tool provided by Symbian. It is used to combine multiple source files in SVG/BMP format into one MIF/MBM composite file. For more information about mifconv, see related documents. Here I will introduce its usage.

The following figure shows the mifconv parameter information through the command line:

Mifconv

Multi icon file converter tool. Version 1.11 (build 50, SVG stand-alone)
Copyright (c) 2001-2008 Nokia Corporation. All rights reserved.

Usage:

Mifconv miffile. MIF
[/Hheaderfile. mbg]
[/E]
[/Ppalettefile]
[/Ttemppath]
[/Bbmconvpath]
[/Ssvgencodepath]
[/Vsvgtversion]
[/Fparametername.txt]
[/A] [/OPT] iconsource1.ext [... [/A] [/OPT] iconsourcen. Ext]

/Hheaderfile. mbg specifies output header file name

/E specifies that source icons are only loaded with given file
Extensions. By default, mifconv prefers source icons
Extension. SVG over. BMP, regardless of which is given
A parameter.
/Ppalettefile palette parameter, which is forwarded to bmconv
Bitmap icons. see more details in bmconv help.

/Ttemppath specifies the location of temporary files.

/Bbmconvpath specifies the location path of bmconv.exe.

/Ssvgencodepath specifies the location path of svgtbinencode.exe.

/Vsvgversion specifies the format version of the generated svgb binary
Code by svgtbinencode.exe.
Svgversion may be one of the following values:
1-original encoding for 3.0 and 3.1 (BGR/float)
2-encoding (BGR/Fixed Point)
3-optimized encoding for 3.1 Only (RGB/fixed pt)
4-encoding (RGB/float)

/A specifies animated flag for icon

/OPT specifies icon framebuffer depth and mask depth and
The syntax is depth [, mask]
Depth may be one of/1,/2,/4,/8,/C4,/C8,/C12,/C16,/C24,/c32
Mask may be one of 1, 8

EXT may be one of SVG, BMP

Parameter file defined with option/F may contain
Any of the parameters listed above, separated by spaces or newlines.

You can understand the English above.

Here is an example of using mifconv:

// Your_makeimage.mk

Ifeq (wins, $ (findstring wins, $ (Platform )))
Zdir = $ (epocroot) epoc32/release/$ (Platform)/$ (CFG)/Z
Else
Zdir = $ (epocroot) epoc32/data/Z
Endif

Targetdir = $ (zdir)/resource/apps
Icontargetfilename = $ (targetdir)/youtimage_res.mbm; name of your merged image resource file, ending with MBM

Headerdir = $ (epocroot) epoc32/include
Headerfilename = $ (headerdir)/youtimage_res.mbg; include header file name

Icondir = ../GFX

Do_nothing:
@ REM do_nothing

Makmake: do_nothing

BLD: do_nothing

Clean: do_nothing

Lib: do_nothing

Cleanlib: do_nothing

Resource:
Mifconv $ (icontargetfilename)/h $ (headerfilename)/fimages. miflist;/F is followed by the resource list file name

Freeze: do_nothing

Savespace: do_nothing

Releasables:
@ Echo $ (headerfilename )&&/
@ Echo $ (icontargetfilename )/
@ Echo $ (othericontargetfilename)

Final: do_nothing

// Check the write method and format in images. miflist.

/C16, 1 ../GFX/icon_rectangle_pressed_38x38.svg
/C16, 1 ../GFX/icon_rectangle_unpressed_38x38.svg
/C16, 1 ../GFX/icon_undo_pressed_38x38.svg
/C16, 1 ../GFX/icon_undo_unpressed_38x38.svg
/C16, 1 ../GFX/mobile_splashscreen.bmp // if it is a BMP image and the mask parameter is used, * _mask.bmp must exist (here * stands for mobile_splashscreen ).

......

When packaging in PKG, do not forget to include both youtimage_res.mbm and youtimage_res.mif. Otherwise, some resources cannot be found.

Http://blog.csdn.net/zhaojiangwei102/archive/2009/08/10/4431084.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.