]> git.sesse.net Git - vlc/blobdiff - modules/codec/omxil/OMX_Image.h
avcodec/vda: fixed compilation and warnings
[vlc] / modules / codec / omxil / OMX_Image.h
index 840a0687bc8b1064fba461072dd86bdb66310d07..a6d4666c035dd9e9a15c7156192d174b02ba2d4d 100644 (file)
-/**\r
- * Copyright (c) 2008 The Khronos Group Inc. \r
- * \r
- * Permission is hereby granted, free of charge, to any person obtaining\r
- * a copy of this software and associated documentation files (the\r
- * "Software"), to deal in the Software without restriction, including\r
- * without limitation the rights to use, copy, modify, merge, publish,\r
- * distribute, sublicense, and/or sell copies of the Software, and to\r
- * permit persons to whom the Software is furnished to do so, subject\r
- * to the following conditions: \r
- * The above copyright notice and this permission notice shall be included\r
- * in all copies or substantial portions of the Software. \r
- * \r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \r
- */\r
-\r
-/** \r
- * @file OMX_Image.h - OpenMax IL version 1.1.2\r
- * The structures needed by Image components to exchange parameters and \r
- * configuration data with the components.\r
- */\r
-#ifndef OMX_Image_h\r
-#define OMX_Image_h\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif /* __cplusplus */\r
-\r
-\r
-/**\r
- * Each OMX header must include all required header files to allow the \r
- * header to compile without errors.  The includes below are required  \r
- * for this header file to compile successfully \r
- */\r
-\r
-#include <OMX_IVCommon.h>\r
-\r
-/** @defgroup imaging OpenMAX IL Imaging Domain\r
- * @ingroup iv\r
- * Structures for OpenMAX IL Imaging domain\r
- * @{\r
- */\r
-\r
-/** \r
- * Enumeration used to define the possible image compression coding. \r
- */\r
-typedef enum OMX_IMAGE_CODINGTYPE {\r
-    OMX_IMAGE_CodingUnused,      /**< Value when format is N/A */\r
-    OMX_IMAGE_CodingAutoDetect,  /**< Auto detection of image format */\r
-    OMX_IMAGE_CodingJPEG,        /**< JPEG/JFIF image format */\r
-    OMX_IMAGE_CodingJPEG2K,      /**< JPEG 2000 image format */\r
-    OMX_IMAGE_CodingEXIF,        /**< EXIF image format */\r
-    OMX_IMAGE_CodingTIFF,        /**< TIFF image format */\r
-    OMX_IMAGE_CodingGIF,         /**< Graphics image format */\r
-    OMX_IMAGE_CodingPNG,         /**< PNG image format */\r
-    OMX_IMAGE_CodingLZW,         /**< LZW image format */\r
-    OMX_IMAGE_CodingBMP,         /**< Windows Bitmap format */\r
-    OMX_IMAGE_CodingKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ \r
-    OMX_IMAGE_CodingVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */\r
-    OMX_IMAGE_CodingMax = 0x7FFFFFFF\r
-} OMX_IMAGE_CODINGTYPE;\r
-\r
-\r
-/**\r
- * Data structure used to define an image path. The number of image paths \r
- * for input and output will vary by type of the image component.  \r
- * \r
- *  Input (aka Source) : Zero Inputs, one Output,\r
- *  Splitter           : One Input, 2 or more Outputs,\r
- *  Processing Element : One Input, one output,\r
- *  Mixer              : 2 or more inputs, one output,\r
- *  Output (aka Sink)  : One Input, zero outputs.\r
- * \r
- * The PortDefinition structure is used to define all of the parameters \r
- * necessary for the compliant component to setup an input or an output  \r
- * image path.  If additional vendor specific data is required, it should  \r
- * be transmitted to the component using the CustomCommand function.   \r
- * Compliant components will prepopulate this structure with optimal  \r
- * values during the OMX_GetParameter() command.\r
- *\r
- * STRUCT MEMBERS:\r
- *  cMIMEType             : MIME type of data for the port\r
- *  pNativeRender         : Platform specific reference for a display if a \r
- *                          sync, otherwise this field is 0\r
- *  nFrameWidth           : Width of frame to be used on port if \r
- *                          uncompressed format is used.  Use 0 for \r
- *                          unknown, don't care or variable\r
- *  nFrameHeight          : Height of frame to be used on port if \r
- *                          uncompressed format is used. Use 0 for \r
- *                          unknown, don't care or variable\r
- *  nStride               : Number of bytes per span of an image (i.e. \r
- *                          indicates the number of bytes to get from\r
- *                          span N to span N+1, where negative stride \r
- *                          indicates the image is bottom up\r
- *  nSliceHeight          : Height used when encoding in slices\r
- *  bFlagErrorConcealment : Turns on error concealment if it is supported by \r
- *                          the OMX component\r
- *  eCompressionFormat    : Compression format used in this instance of  \r
- *                          the component. When OMX_IMAGE_CodingUnused is \r
- *                          specified, eColorFormat is valid\r
- *  eColorFormat          : Decompressed format used by this component\r
- *  pNativeWindow         : Platform specific reference for a window object if a \r
- *                          display sink , otherwise this field is 0x0. \r
- */\r
-typedef struct OMX_IMAGE_PORTDEFINITIONTYPE {\r
-    OMX_STRING cMIMEType;\r
-    OMX_NATIVE_DEVICETYPE pNativeRender;\r
-    OMX_U32 nFrameWidth; \r
-    OMX_U32 nFrameHeight;\r
-    OMX_S32 nStride;     \r
-    OMX_U32 nSliceHeight;\r
-    OMX_BOOL bFlagErrorConcealment;\r
-    OMX_IMAGE_CODINGTYPE eCompressionFormat;\r
-    OMX_COLOR_FORMATTYPE eColorFormat;\r
-    OMX_NATIVE_WINDOWTYPE pNativeWindow;\r
-} OMX_IMAGE_PORTDEFINITIONTYPE;\r
-\r
-\r
-/**  \r
- * Port format parameter.  This structure is used to enumerate the various \r
- * data input/output format supported by the port.\r
- * \r
- * STRUCT MEMBERS:\r
- *  nSize              : Size of the structure in bytes\r
- *  nVersion           : OMX specification version information\r
- *  nPortIndex         : Indicates which port to set\r
- *  nIndex             : Indicates the enumeration index for the format from \r
- *                       0x0 to N-1\r
- *  eCompressionFormat : Compression format used in this instance of the \r
- *                       component. When OMX_IMAGE_CodingUnused is specified, \r
- *                       eColorFormat is valid\r
- *  eColorFormat       : Decompressed format used by this component\r
- */\r
-typedef struct OMX_IMAGE_PARAM_PORTFORMATTYPE {\r
-    OMX_U32 nSize;\r
-    OMX_VERSIONTYPE nVersion;\r
-    OMX_U32 nPortIndex;\r
-    OMX_U32 nIndex;\r
-    OMX_IMAGE_CODINGTYPE eCompressionFormat;\r
-    OMX_COLOR_FORMATTYPE eColorFormat;\r
-} OMX_IMAGE_PARAM_PORTFORMATTYPE;\r
-\r
-\r
-/** \r
- * Flash control type \r
- *\r
- * ENUMS\r
- *  Torch : Flash forced constantly on\r
- */\r
-typedef enum OMX_IMAGE_FLASHCONTROLTYPE {\r
-    OMX_IMAGE_FlashControlOn = 0,\r
-    OMX_IMAGE_FlashControlOff,\r
-    OMX_IMAGE_FlashControlAuto,\r
-    OMX_IMAGE_FlashControlRedEyeReduction,\r
-    OMX_IMAGE_FlashControlFillin,\r
-    OMX_IMAGE_FlashControlTorch,\r
-    OMX_IMAGE_FlashControlKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ \r
-    OMX_IMAGE_FlashControlVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */\r
-    OMX_IMAGE_FlashControlMax = 0x7FFFFFFF\r
-} OMX_IMAGE_FLASHCONTROLTYPE;\r
-\r
-\r
-/** \r
- * Flash control configuration \r
- *\r
- * STRUCT MEMBERS:\r
- *  nSize         : Size of the structure in bytes\r
- *  nVersion      : OMX specification version information\r
- *  nPortIndex    : Port that this structure applies to\r
- *  eFlashControl : Flash control type\r
- */\r
-typedef struct OMX_IMAGE_PARAM_FLASHCONTROLTYPE {\r
-    OMX_U32 nSize;\r
-    OMX_VERSIONTYPE nVersion;\r
-    OMX_U32 nPortIndex;\r
-    OMX_IMAGE_FLASHCONTROLTYPE eFlashControl;\r
-} OMX_IMAGE_PARAM_FLASHCONTROLTYPE;\r
-\r
-\r
-/** \r
- * Focus control type \r
- */\r
-typedef enum OMX_IMAGE_FOCUSCONTROLTYPE {\r
-    OMX_IMAGE_FocusControlOn = 0,\r
-    OMX_IMAGE_FocusControlOff,\r
-    OMX_IMAGE_FocusControlAuto,\r
-    OMX_IMAGE_FocusControlAutoLock,\r
-    OMX_IMAGE_FocusControlKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ \r
-    OMX_IMAGE_FocusControlVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */\r
-    OMX_IMAGE_FocusControlMax = 0x7FFFFFFF\r
-} OMX_IMAGE_FOCUSCONTROLTYPE;\r
-\r
\r
-/** \r
- * Focus control configuration \r
- *\r
- * STRUCT MEMBERS:\r
- *  nSize           : Size of the structure in bytes\r
- *  nVersion        : OMX specification version information\r
- *  nPortIndex      : Port that this structure applies to\r
- *  eFocusControl   : Focus control\r
- *  nFocusSteps     : Focus can take on values from 0 mm to infinity. \r
- *                    Interest is only in number of steps over this range.\r
- *  nFocusStepIndex : Current focus step index\r
- */\r
-typedef struct OMX_IMAGE_CONFIG_FOCUSCONTROLTYPE {\r
-    OMX_U32 nSize;\r
-    OMX_VERSIONTYPE nVersion;\r
-    OMX_U32 nPortIndex;\r
-    OMX_IMAGE_FOCUSCONTROLTYPE eFocusControl;\r
-    OMX_U32 nFocusSteps;\r
-    OMX_U32 nFocusStepIndex;\r
-} OMX_IMAGE_CONFIG_FOCUSCONTROLTYPE;\r
-\r
-\r
-/** \r
- * Q Factor for JPEG compression, which controls the tradeoff between image\r
- * quality and size.  Q Factor provides a more simple means of controlling\r
- * JPEG compression quality, without directly programming Quantization\r
- * tables for chroma and luma \r
- *\r
- * STRUCT MEMBERS:\r
- *  nSize      : Size of the structure in bytes         \r
- *  nVersion   : OMX specification version information \r
- *  nPortIndex : Port that this structure applies to \r
- *  nQFactor   : JPEG Q factor value in the range of 1-100. A factor of 1 \r
- *               produces the smallest, worst quality images, and a factor \r
- *               of 100 produces the largest, best quality images.  A \r
- *               typical default is 75 for small good quality images               \r
- */\r
-typedef struct OMX_IMAGE_PARAM_QFACTORTYPE {\r
-    OMX_U32 nSize;            \r
-    OMX_VERSIONTYPE nVersion; \r
-    OMX_U32 nPortIndex;       \r
-    OMX_U32 nQFactor;                                        \r
-} OMX_IMAGE_PARAM_QFACTORTYPE;\r
-\r
-/** \r
- * Quantization table type \r
- */\r
-\r
-typedef enum OMX_IMAGE_QUANTIZATIONTABLETYPE {\r
-    OMX_IMAGE_QuantizationTableLuma = 0,\r
-    OMX_IMAGE_QuantizationTableChroma,\r
-    OMX_IMAGE_QuantizationTableChromaCb,\r
-    OMX_IMAGE_QuantizationTableChromaCr,\r
-    OMX_IMAGE_QuantizationTableKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ \r
-    OMX_IMAGE_QuantizationTableVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */\r
-    OMX_IMAGE_QuantizationTableMax = 0x7FFFFFFF\r
-} OMX_IMAGE_QUANTIZATIONTABLETYPE;\r
-\r
-/** \r
- * JPEG quantization tables are used to determine DCT compression for\r
- * YUV data, as an alternative to specifying Q factor, providing exact \r
- * control of compression \r
- *\r
- * STRUCT MEMBERS:\r
- *  nSize                   : Size of the structure in bytes\r
- *  nVersion                : OMX specification version information \r
- *  nPortIndex              : Port that this structure applies to\r
- *  eQuantizationTable      : Quantization table type\r
- *  nQuantizationMatrix[64] : JPEG quantization table of coefficients stored \r
- *                            in increasing columns then by rows of data (i.e. \r
- *                            row 1, ... row 8). Quantization values are in \r
- *                            the range 0-255 and stored in linear order\r
- *                            (i.e. the component will zig-zag the \r
- *                            quantization table data if required internally) \r
- */\r
-typedef struct OMX_IMAGE_PARAM_QUANTIZATIONTABLETYPE {\r
-    OMX_U32 nSize;\r
-    OMX_VERSIONTYPE nVersion;\r
-    OMX_U32 nPortIndex;\r
-    OMX_IMAGE_QUANTIZATIONTABLETYPE eQuantizationTable;\r
-    OMX_U8 nQuantizationMatrix[64];\r
-} OMX_IMAGE_PARAM_QUANTIZATIONTABLETYPE;\r
-\r
-\r
-/** \r
- * Huffman table type, the same Huffman table is applied for chroma and \r
- * luma component \r
- */\r
-typedef enum OMX_IMAGE_HUFFMANTABLETYPE {\r
-    OMX_IMAGE_HuffmanTableAC = 0,\r
-    OMX_IMAGE_HuffmanTableDC,\r
-    OMX_IMAGE_HuffmanTableACLuma,\r
-    OMX_IMAGE_HuffmanTableACChroma,\r
-    OMX_IMAGE_HuffmanTableDCLuma,\r
-    OMX_IMAGE_HuffmanTableDCChroma,\r
-    OMX_IMAGE_HuffmanTableKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ \r
-    OMX_IMAGE_HuffmanTableVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */\r
-    OMX_IMAGE_HuffmanTableMax = 0x7FFFFFFF\r
-} OMX_IMAGE_HUFFMANTABLETYPE;\r
-\r
-/** \r
- * JPEG Huffman table \r
- *\r
- * STRUCT MEMBERS:\r
- *  nSize                            : Size of the structure in bytes\r
- *  nVersion                         : OMX specification version information\r
- *  nPortIndex                       : Port that this structure applies to\r
- *  eHuffmanTable                    : Huffman table type\r
- *  nNumberOfHuffmanCodeOfLength[16] : 0-16, number of Huffman codes of each \r
- *                                     possible length\r
- *  nHuffmanTable[256]               : 0-255, the size used for AC and DC \r
- *                                     HuffmanTable are 16 and 162 \r
- */\r
-typedef struct OMX_IMAGE_PARAM_HUFFMANTTABLETYPE {\r
-    OMX_U32 nSize;\r
-    OMX_VERSIONTYPE nVersion;\r
-    OMX_U32 nPortIndex;\r
-    OMX_IMAGE_HUFFMANTABLETYPE eHuffmanTable;\r
-    OMX_U8 nNumberOfHuffmanCodeOfLength[16];\r
-    OMX_U8 nHuffmanTable[256];\r
-}OMX_IMAGE_PARAM_HUFFMANTTABLETYPE;\r
-\r
-/** @} */\r
-#ifdef __cplusplus\r
-}\r
-#endif /* __cplusplus */\r
-\r
-#endif\r
-/* File EOF */\r
+/**
+ * Copyright (c) 2008 The Khronos Group Inc. 
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject
+ * to the following conditions: 
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software. 
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
+ */
+
+/** 
+ * @file OMX_Image.h - OpenMax IL version 1.1.2
+ * The structures needed by Image components to exchange parameters and 
+ * configuration data with the components.
+ */
+#ifndef OMX_Image_h
+#define OMX_Image_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
+/**
+ * Each OMX header must include all required header files to allow the 
+ * header to compile without errors.  The includes below are required  
+ * for this header file to compile successfully 
+ */
+
+#include <OMX_IVCommon.h>
+
+/** @defgroup imaging OpenMAX IL Imaging Domain
+ * @ingroup iv
+ * Structures for OpenMAX IL Imaging domain
+ * @{
+ */
+
+/** 
+ * Enumeration used to define the possible image compression coding. 
+ */
+typedef enum OMX_IMAGE_CODINGTYPE {
+    OMX_IMAGE_CodingUnused,      /**< Value when format is N/A */
+    OMX_IMAGE_CodingAutoDetect,  /**< Auto detection of image format */
+    OMX_IMAGE_CodingJPEG,        /**< JPEG/JFIF image format */
+    OMX_IMAGE_CodingJPEG2K,      /**< JPEG 2000 image format */
+    OMX_IMAGE_CodingEXIF,        /**< EXIF image format */
+    OMX_IMAGE_CodingTIFF,        /**< TIFF image format */
+    OMX_IMAGE_CodingGIF,         /**< Graphics image format */
+    OMX_IMAGE_CodingPNG,         /**< PNG image format */
+    OMX_IMAGE_CodingLZW,         /**< LZW image format */
+    OMX_IMAGE_CodingBMP,         /**< Windows Bitmap format */
+    OMX_IMAGE_CodingKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
+    OMX_IMAGE_CodingVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
+    OMX_IMAGE_CodingMax = 0x7FFFFFFF
+} OMX_IMAGE_CODINGTYPE;
+
+
+/**
+ * Data structure used to define an image path. The number of image paths 
+ * for input and output will vary by type of the image component.  
+ * 
+ *  Input (aka Source) : Zero Inputs, one Output,
+ *  Splitter           : One Input, 2 or more Outputs,
+ *  Processing Element : One Input, one output,
+ *  Mixer              : 2 or more inputs, one output,
+ *  Output (aka Sink)  : One Input, zero outputs.
+ * 
+ * The PortDefinition structure is used to define all of the parameters 
+ * necessary for the compliant component to setup an input or an output  
+ * image path.  If additional vendor specific data is required, it should  
+ * be transmitted to the component using the CustomCommand function.   
+ * Compliant components will prepopulate this structure with optimal  
+ * values during the OMX_GetParameter() command.
+ *
+ * STRUCT MEMBERS:
+ *  cMIMEType             : MIME type of data for the port
+ *  pNativeRender         : Platform specific reference for a display if a 
+ *                          sync, otherwise this field is 0
+ *  nFrameWidth           : Width of frame to be used on port if 
+ *                          uncompressed format is used.  Use 0 for 
+ *                          unknown, don't care or variable
+ *  nFrameHeight          : Height of frame to be used on port if 
+ *                          uncompressed format is used. Use 0 for 
+ *                          unknown, don't care or variable
+ *  nStride               : Number of bytes per span of an image (i.e. 
+ *                          indicates the number of bytes to get from
+ *                          span N to span N+1, where negative stride 
+ *                          indicates the image is bottom up
+ *  nSliceHeight          : Height used when encoding in slices
+ *  bFlagErrorConcealment : Turns on error concealment if it is supported by 
+ *                          the OMX component
+ *  eCompressionFormat    : Compression format used in this instance of  
+ *                          the component. When OMX_IMAGE_CodingUnused is 
+ *                          specified, eColorFormat is valid
+ *  eColorFormat          : Decompressed format used by this component
+ *  pNativeWindow         : Platform specific reference for a window object if a 
+ *                          display sink , otherwise this field is 0x0. 
+ */
+typedef struct OMX_IMAGE_PORTDEFINITIONTYPE {
+    OMX_STRING cMIMEType;
+    OMX_NATIVE_DEVICETYPE pNativeRender;
+    OMX_U32 nFrameWidth; 
+    OMX_U32 nFrameHeight;
+    OMX_S32 nStride;     
+    OMX_U32 nSliceHeight;
+    OMX_BOOL bFlagErrorConcealment;
+    OMX_IMAGE_CODINGTYPE eCompressionFormat;
+    OMX_COLOR_FORMATTYPE eColorFormat;
+    OMX_NATIVE_WINDOWTYPE pNativeWindow;
+} OMX_IMAGE_PORTDEFINITIONTYPE;
+
+
+/**  
+ * Port format parameter.  This structure is used to enumerate the various 
+ * data input/output format supported by the port.
+ * 
+ * STRUCT MEMBERS:
+ *  nSize              : Size of the structure in bytes
+ *  nVersion           : OMX specification version information
+ *  nPortIndex         : Indicates which port to set
+ *  nIndex             : Indicates the enumeration index for the format from 
+ *                       0x0 to N-1
+ *  eCompressionFormat : Compression format used in this instance of the 
+ *                       component. When OMX_IMAGE_CodingUnused is specified, 
+ *                       eColorFormat is valid
+ *  eColorFormat       : Decompressed format used by this component
+ */
+typedef struct OMX_IMAGE_PARAM_PORTFORMATTYPE {
+    OMX_U32 nSize;
+    OMX_VERSIONTYPE nVersion;
+    OMX_U32 nPortIndex;
+    OMX_U32 nIndex;
+    OMX_IMAGE_CODINGTYPE eCompressionFormat;
+    OMX_COLOR_FORMATTYPE eColorFormat;
+} OMX_IMAGE_PARAM_PORTFORMATTYPE;
+
+
+/** 
+ * Flash control type 
+ *
+ * ENUMS
+ *  Torch : Flash forced constantly on
+ */
+typedef enum OMX_IMAGE_FLASHCONTROLTYPE {
+    OMX_IMAGE_FlashControlOn = 0,
+    OMX_IMAGE_FlashControlOff,
+    OMX_IMAGE_FlashControlAuto,
+    OMX_IMAGE_FlashControlRedEyeReduction,
+    OMX_IMAGE_FlashControlFillin,
+    OMX_IMAGE_FlashControlTorch,
+    OMX_IMAGE_FlashControlKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
+    OMX_IMAGE_FlashControlVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
+    OMX_IMAGE_FlashControlMax = 0x7FFFFFFF
+} OMX_IMAGE_FLASHCONTROLTYPE;
+
+
+/** 
+ * Flash control configuration 
+ *
+ * STRUCT MEMBERS:
+ *  nSize         : Size of the structure in bytes
+ *  nVersion      : OMX specification version information
+ *  nPortIndex    : Port that this structure applies to
+ *  eFlashControl : Flash control type
+ */
+typedef struct OMX_IMAGE_PARAM_FLASHCONTROLTYPE {
+    OMX_U32 nSize;
+    OMX_VERSIONTYPE nVersion;
+    OMX_U32 nPortIndex;
+    OMX_IMAGE_FLASHCONTROLTYPE eFlashControl;
+} OMX_IMAGE_PARAM_FLASHCONTROLTYPE;
+
+
+/** 
+ * Focus control type 
+ */
+typedef enum OMX_IMAGE_FOCUSCONTROLTYPE {
+    OMX_IMAGE_FocusControlOn = 0,
+    OMX_IMAGE_FocusControlOff,
+    OMX_IMAGE_FocusControlAuto,
+    OMX_IMAGE_FocusControlAutoLock,
+    OMX_IMAGE_FocusControlKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
+    OMX_IMAGE_FocusControlVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
+    OMX_IMAGE_FocusControlMax = 0x7FFFFFFF
+} OMX_IMAGE_FOCUSCONTROLTYPE;
+
+/** 
+ * Focus control configuration 
+ *
+ * STRUCT MEMBERS:
+ *  nSize           : Size of the structure in bytes
+ *  nVersion        : OMX specification version information
+ *  nPortIndex      : Port that this structure applies to
+ *  eFocusControl   : Focus control
+ *  nFocusSteps     : Focus can take on values from 0 mm to infinity. 
+ *                    Interest is only in number of steps over this range.
+ *  nFocusStepIndex : Current focus step index
+ */
+typedef struct OMX_IMAGE_CONFIG_FOCUSCONTROLTYPE {
+    OMX_U32 nSize;
+    OMX_VERSIONTYPE nVersion;
+    OMX_U32 nPortIndex;
+    OMX_IMAGE_FOCUSCONTROLTYPE eFocusControl;
+    OMX_U32 nFocusSteps;
+    OMX_U32 nFocusStepIndex;
+} OMX_IMAGE_CONFIG_FOCUSCONTROLTYPE;
+
+
+/** 
+ * Q Factor for JPEG compression, which controls the tradeoff between image
+ * quality and size.  Q Factor provides a more simple means of controlling
+ * JPEG compression quality, without directly programming Quantization
+ * tables for chroma and luma 
+ *
+ * STRUCT MEMBERS:
+ *  nSize      : Size of the structure in bytes         
+ *  nVersion   : OMX specification version information 
+ *  nPortIndex : Port that this structure applies to 
+ *  nQFactor   : JPEG Q factor value in the range of 1-100. A factor of 1 
+ *               produces the smallest, worst quality images, and a factor 
+ *               of 100 produces the largest, best quality images.  A 
+ *               typical default is 75 for small good quality images               
+ */
+typedef struct OMX_IMAGE_PARAM_QFACTORTYPE {
+    OMX_U32 nSize;            
+    OMX_VERSIONTYPE nVersion; 
+    OMX_U32 nPortIndex;       
+    OMX_U32 nQFactor;                                        
+} OMX_IMAGE_PARAM_QFACTORTYPE;
+
+/** 
+ * Quantization table type 
+ */
+
+typedef enum OMX_IMAGE_QUANTIZATIONTABLETYPE {
+    OMX_IMAGE_QuantizationTableLuma = 0,
+    OMX_IMAGE_QuantizationTableChroma,
+    OMX_IMAGE_QuantizationTableChromaCb,
+    OMX_IMAGE_QuantizationTableChromaCr,
+    OMX_IMAGE_QuantizationTableKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
+    OMX_IMAGE_QuantizationTableVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
+    OMX_IMAGE_QuantizationTableMax = 0x7FFFFFFF
+} OMX_IMAGE_QUANTIZATIONTABLETYPE;
+
+/** 
+ * JPEG quantization tables are used to determine DCT compression for
+ * YUV data, as an alternative to specifying Q factor, providing exact 
+ * control of compression 
+ *
+ * STRUCT MEMBERS:
+ *  nSize                   : Size of the structure in bytes
+ *  nVersion                : OMX specification version information 
+ *  nPortIndex              : Port that this structure applies to
+ *  eQuantizationTable      : Quantization table type
+ *  nQuantizationMatrix[64] : JPEG quantization table of coefficients stored 
+ *                            in increasing columns then by rows of data (i.e. 
+ *                            row 1, ... row 8). Quantization values are in 
+ *                            the range 0-255 and stored in linear order
+ *                            (i.e. the component will zig-zag the 
+ *                            quantization table data if required internally) 
+ */
+typedef struct OMX_IMAGE_PARAM_QUANTIZATIONTABLETYPE {
+    OMX_U32 nSize;
+    OMX_VERSIONTYPE nVersion;
+    OMX_U32 nPortIndex;
+    OMX_IMAGE_QUANTIZATIONTABLETYPE eQuantizationTable;
+    OMX_U8 nQuantizationMatrix[64];
+} OMX_IMAGE_PARAM_QUANTIZATIONTABLETYPE;
+
+
+/** 
+ * Huffman table type, the same Huffman table is applied for chroma and 
+ * luma component 
+ */
+typedef enum OMX_IMAGE_HUFFMANTABLETYPE {
+    OMX_IMAGE_HuffmanTableAC = 0,
+    OMX_IMAGE_HuffmanTableDC,
+    OMX_IMAGE_HuffmanTableACLuma,
+    OMX_IMAGE_HuffmanTableACChroma,
+    OMX_IMAGE_HuffmanTableDCLuma,
+    OMX_IMAGE_HuffmanTableDCChroma,
+    OMX_IMAGE_HuffmanTableKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
+    OMX_IMAGE_HuffmanTableVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
+    OMX_IMAGE_HuffmanTableMax = 0x7FFFFFFF
+} OMX_IMAGE_HUFFMANTABLETYPE;
+
+/** 
+ * JPEG Huffman table 
+ *
+ * STRUCT MEMBERS:
+ *  nSize                            : Size of the structure in bytes
+ *  nVersion                         : OMX specification version information
+ *  nPortIndex                       : Port that this structure applies to
+ *  eHuffmanTable                    : Huffman table type
+ *  nNumberOfHuffmanCodeOfLength[16] : 0-16, number of Huffman codes of each 
+ *                                     possible length
+ *  nHuffmanTable[256]               : 0-255, the size used for AC and DC 
+ *                                     HuffmanTable are 16 and 162 
+ */
+typedef struct OMX_IMAGE_PARAM_HUFFMANTTABLETYPE {
+    OMX_U32 nSize;
+    OMX_VERSIONTYPE nVersion;
+    OMX_U32 nPortIndex;
+    OMX_IMAGE_HUFFMANTABLETYPE eHuffmanTable;
+    OMX_U8 nNumberOfHuffmanCodeOfLength[16];
+    OMX_U8 nHuffmanTable[256];
+}OMX_IMAGE_PARAM_HUFFMANTTABLETYPE;
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif
+/* File EOF */