summaryrefslogtreecommitdiffstats
path: root/Schemas
diff options
context:
space:
mode:
authorPiotr Diop <piotrx.diop@intel.com>2015-01-16 17:52:45 +0100
committerPhilippe Afonso <philippex.afonso@intel.com>2015-02-18 11:32:58 +0100
commita1fdb2965956d3cbc62e6f8b29405bdeef79dca3 (patch)
treebc5f64e00c50f4bb68145884c0ee1787d7e10e7d /Schemas
parent96e3a00ec93d76d90aede5538c882caafe23849f (diff)
downloadexternal_parameter-framework-a1fdb2965956d3cbc62e6f8b29405bdeef79dca3.zip
external_parameter-framework-a1fdb2965956d3cbc62e6f8b29405bdeef79dca3.tar.gz
external_parameter-framework-a1fdb2965956d3cbc62e6f8b29405bdeef79dca3.tar.bz2
Create a Logarithm Adaptation parameter type
Some parameters need to be converted to logarithm. This can be the case for volumes that come from HAL as mere decimal values. This patch adds the LogarithmAdaptationParameter type. Change-Id: Ic64232816a82c56a6ddffa5fdccda356eb4ec9c7 Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-16954 Signed-off-by: Piotr Diop <piotrx.diop@intel.com> Reviewed-on: https://android.intel.com:443/320371
Diffstat (limited to 'Schemas')
-rw-r--r--Schemas/Parameter.xsd18
1 files changed, 14 insertions, 4 deletions
diff --git a/Schemas/Parameter.xsd b/Schemas/Parameter.xsd
index 3b635fc..f174b6e 100644
--- a/Schemas/Parameter.xsd
+++ b/Schemas/Parameter.xsd
@@ -34,12 +34,21 @@
<xs:complexType name="Adaptation">
<xs:attribute name="Offset" type="xs:integer" default="0"/>
</xs:complexType>
- <xs:element name="LinearAdaptation">
+ <xs:complexType name="LinearAdaptationType">
+ <xs:complexContent>
+ <xs:extension base="Adaptation">
+ <xs:attribute name="SlopeNumerator" type="xs:double" default="1"/>
+ <xs:attribute name="SlopeDenominator" type="xs:double" default="1"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="LinearAdaptation" type="LinearAdaptationType"/>
+ <xs:element name="LogarithmicAdaptation">
<xs:complexType>
<xs:complexContent>
- <xs:extension base="Adaptation">
- <xs:attribute name="SlopeNumerator" type="xs:double" default="1"/>
- <xs:attribute name="SlopeDenominator" type="xs:double" default="1"/>
+ <xs:extension base="LinearAdaptationType">
+ <xs:attribute name="LogarithmBase" type="xs:double" default="10"/>
+ <xs:attribute name="FloorValue" type="xs:double" default="-INF"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
@@ -63,6 +72,7 @@
<xs:extension base="Parameter">
<xs:choice minOccurs="0">
<xs:element ref="LinearAdaptation"/>
+ <xs:element ref="LogarithmicAdaptation"/>
</xs:choice>
<xs:attributeGroup ref="IntegerParameterAttributes"/>
<xs:attribute name="Unit" type="xs:token" use="optional"/>