From 39bd0e3ecd910803e81d3be51e3734dd207de87c Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 21 Feb 2015 21:15:44 +0100 Subject: domx: Add structures and indices for Motorola devices These additions are only enabled when BOARD_USE_MOTOROLA_DOMX_ENHANCEMENTS is defined. Change-Id: I47d559d4908b7f5da2b1b3370a736a13376ef464 --- domx/omx_core/inc/OMX_TI_IVCommon.h | 42 +++++++++++++++++++++++++++++++++++++ domx/omx_core/inc/OMX_TI_Index.h | 10 ++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) 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; -- cgit v1.1