diff options
author | Michael Gernoth <michael@gernoth.net> | 2015-02-21 21:15:44 +0100 |
---|---|---|
committer | Michael Gernoth <michael@gernoth.net> | 2015-02-21 21:15:44 +0100 |
commit | 39bd0e3ecd910803e81d3be51e3734dd207de87c (patch) | |
tree | b3cdc520745fb6b55ef5bc609cab76f338c67a0e | |
parent | 91be7148db611dcbfb855c6c763aeb7daa424141 (diff) | |
download | hardware_ti_omap4-39bd0e3ecd910803e81d3be51e3734dd207de87c.zip hardware_ti_omap4-39bd0e3ecd910803e81d3be51e3734dd207de87c.tar.gz hardware_ti_omap4-39bd0e3ecd910803e81d3be51e3734dd207de87c.tar.bz2 |
domx: Add structures and indices for Motorola devices
These additions are only enabled when BOARD_USE_MOTOROLA_DOMX_ENHANCEMENTS
is defined.
Change-Id: I47d559d4908b7f5da2b1b3370a736a13376ef464
-rwxr-xr-x | domx/omx_core/inc/OMX_TI_IVCommon.h | 42 | ||||
-rw-r--r-- | domx/omx_core/inc/OMX_TI_Index.h | 10 |
2 files changed, 51 insertions, 1 deletions
diff --git a/domx/omx_core/inc/OMX_TI_IVCommon.h b/domx/omx_core/inc/OMX_TI_IVCommon.h index e8a8a78..b439470 100755 --- a/domx/omx_core/inc/OMX_TI_IVCommon.h +++ b/domx/omx_core/inc/OMX_TI_IVCommon.h @@ -2201,6 +2201,48 @@ typedef enum OMX_TI_COLOR_FORMATTYPE { OMX_TI_ColorFormatTypeMax = 0x7fffffff } OMX_TI_COLOR_FORMATTYPE; +#ifdef BOARD_USE_MOTOROLA_DOMX_ENHANCEMENTS +/** + * Target exposure configuration of the exposure algorythm. + * + * STRUCT MEMBERS: + * nSize : Size of the structure in bytes + * nVersion : OMX specification version information + * nTargetExposure : Value to be passed to the exposure algorythm + * Range 0..255, default 128. + * nPortIndex : Port that this structure applies to + * bUseTargetExposure : Flag to enable usage of the nTargetExposure value. + * Set to true, to use the nTargetExposure value; + * false means the algorythm shall use the + * Target Exposure value from tuning data. + */ +typedef struct OMX_CONFIG_TARGETEXPOSURE { + OMX_U32 nSize; + OMX_VERSIONTYPE nVersion; + OMX_U32 nPortIndex; + OMX_U8 nTargetExposure; + OMX_BOOL bUseTargetExposure; +} OMX_CONFIG_TARGETEXPOSURE; + +/** + * Led Flash & Torch Intensity + * + * STRUCT MEMBERS: + * nSize : Size of the structure in bytes + * nVersion : OMX specification version information + * nPortIndex : Port that this structure applies to + * nLedFlashIntens : Led Flash intensity + * nLedTorchIntens : Led Torch intensity + */ +typedef struct OMX_CONFIG_LEDINTESITY { + OMX_U32 nSize; + OMX_VERSIONTYPE nVersion; + OMX_U32 nPortIndex; + OMX_U32 nLedFlashIntens; + OMX_U32 nLedTorchIntens; +} OMX_CONFIG_LEDINTESITY; +#endif + /** * The OMX_TI_EXIFTAGSTATUS enumeration is used to define the * tag status types. diff --git a/domx/omx_core/inc/OMX_TI_Index.h b/domx/omx_core/inc/OMX_TI_Index.h index 234ed07..27fba89 100644 --- a/domx/omx_core/inc/OMX_TI_Index.h +++ b/domx/omx_core/inc/OMX_TI_Index.h @@ -282,7 +282,15 @@ typedef enum OMX_TI_INDEXTYPE { OMX_TI_IndexConfigGammaTable, /**< 0x7F0000B5 reference: OMX_TI_CONFIG_SHAREDBUFFER */ OMX_TI_IndexConfigDynamicCameraDescriptor, /**< 0x7F0000B6 reference: OMX_TI_CONFIG_SHAREDBUFFER */ - OMX_TI_IndexConfigStreamInterlaceFormats = ((OMX_INDEXTYPE)OMX_IndexVendorStartUnused + 0x100) /**< 0x7F000100 reference: OMX_STREAMINTERLACEFORMATTYPE */ + OMX_TI_IndexConfigStreamInterlaceFormats = ((OMX_INDEXTYPE)OMX_IndexVendorStartUnused + 0x100), /**< 0x7F000100 reference: OMX_STREAMINTERLACEFORMATTYPE */ + +#ifdef BOARD_USE_MOTOROLA_DOMX_ENHANCEMENTS + // Note! This section must be placed at the bottom of this enum. +#if 0 + OMX_IndexConfigTargetExposure = ((OMX_INDEXTYPE)OMX_IndexVendorStartUnused + 0x100), /**< reference: OMX_CONFIG_TARGETEXPOSURE */ +#endif + OMX_IndexConfigLedIntensity = ((OMX_INDEXTYPE)OMX_IndexVendorStartUnused + 0x106), /**< 0x7F000106 reference: OMX_CONFIG_LEDINTESITY */ +#endif } OMX_TI_INDEXTYPE; |