47 lines
2.1 KiB
Plaintext
47 lines
2.1 KiB
Plaintext
![]() |
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||
|
<mapping>
|
||
|
<header>
|
||
|
<language_version>1.00</language_version>
|
||
|
<author>ASAP</author>
|
||
|
<date_creation>2016-Mar-22</date_creation>
|
||
|
<date_change>2016-Mar-22</date_change>
|
||
|
<description>Mapping description generated by SiMaEditor</description>
|
||
|
</header>
|
||
|
|
||
|
<sources>
|
||
|
<source name="MinimalSignal" type="MinimalStruct" />
|
||
|
<source name="MinimalSignal2" type="MinimalStruct" />
|
||
|
<source name="InSignal" type="InStruct" />
|
||
|
</sources>
|
||
|
|
||
|
<targets>
|
||
|
<target name="OutSignal" type="OutStruct">
|
||
|
<assignment to="ui8Val" from="MinimalSignal.ui8Val" transformation="add2" />
|
||
|
<assignment to="ui16Val" from="MinimalSignal.f32Val" transformation="add2" />
|
||
|
<assignment to="i8Ary" from="InSignal.i8Ary" transformation="add2" />
|
||
|
</target>
|
||
|
|
||
|
<target name="OutSignal2" type="OutStruct">
|
||
|
<assignment to="ui16Val" from="MinimalSignal.f32Val" transformation="add2" />
|
||
|
<assignment to="i8Ary" from="InSignal.f32Ary" transformation="add2" />
|
||
|
<assignment to="enumVal" from="InSignal.enumVal" transformation="pixelTable" />
|
||
|
<assignment to="enumVal2" from="InSignal.enumVal" transformation="enumTable" />
|
||
|
</target>
|
||
|
</targets>
|
||
|
|
||
|
<transformations>
|
||
|
<polynomial name="add2" a="2" b="1" />
|
||
|
<enum_table name="pixelTable" from="tPixelFormat" to="tPixelFormat" default="PF_UNKNOWN" >
|
||
|
<conversion from="PF_16BIT" to="PF_8BIT" />
|
||
|
<conversion from="PF_24BIT" to="PF_24BIT" />
|
||
|
<conversion from="PF_32BIT" to="PF_24BIT" />
|
||
|
<conversion from="PF_8BIT" to="PF_8BIT" />
|
||
|
<conversion from="PF_ABGR_4444" to="PF_BGR_555" />
|
||
|
<conversion from="PF_ABGR_8888" to="PF_BGR_565" />
|
||
|
</enum_table>
|
||
|
<enum_table name="enumTable" from="tPixelFormat" to="tTestEnum" default="C" >
|
||
|
<conversion from="PF_16BIT" to="A" />
|
||
|
<conversion from="PF_24BIT" to="B" />
|
||
|
</enum_table>
|
||
|
</transformations>
|
||
|
</mapping>
|