1 /*
2 Copyright (c) 2012, Broadcom Europe Ltd
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7     * Redistributions of source code must retain the above copyright
8       notice, this list of conditions and the following disclaimer.
9     * Redistributions in binary form must reproduce the above copyright
10       notice, this list of conditions and the following disclaimer in the
11       documentation and/or other materials provided with the distribution.
12     * Neither the name of the copyright holder nor the
13       names of its contributors may be used to endorse or promote products
14       derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 // OpenMAX IL - ILCS specific types
29 
30 #ifndef OMX_ILCS_h
31 #define OMX_ILCS_h
32 
33 typedef struct OMX_PARAM_PORTSUMMARYTYPE {
34    OMX_U32 nSize;            /**< Size of the structure in bytes */
35    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
36    OMX_U32 nNumPorts;        /**< Total number of ports */
37    OMX_U32 reqSet;           /**< Which set of ports is details below, portIndex[0] is port reqSet*32 */
38    OMX_U32 portDir;          /**< Bitfield, 1 if output port, 0 if input port, max 256 ports */
39    OMX_U32 portIndex[32];    /**< Port Indexes */
40 } OMX_PARAM_PORTSUMMARYTYPE;
41 
42 typedef struct OMX_PARAM_MARKCOMPARISONTYPE {
43    OMX_U32 nSize;            /**< Size of the structure in bytes */
44    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
45    OMX_PTR mark;             /**< Pointer to be used for mark comparisons */
46 } OMX_PARAM_MARKCOMPARISONTYPE;
47 
48 typedef struct OMX_PARAM_BRCMRECURSIONUNSAFETYPE {
49    OMX_U32 nSize;
50    OMX_VERSIONTYPE nVersion;
51    OMX_S32 (*pRecursionUnsafe)(OMX_PTR param);
52    OMX_PTR param;
53 } OMX_PARAM_BRCMRECURSIONUNSAFETYPE;
54 
55 typedef struct OMX_PARAM_TUNNELSTATUSTYPE {
56    OMX_U32 nSize;            /**< Size of the structure in bytes */
57    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
58    OMX_U32 nPortIndex;       /**< Port being queried */
59    OMX_U32 nIndex;           /**< Query the nIndex'th port and fill in nPortIndex */
60    OMX_BOOL bUseIndex;       /**< If OMX_TRUE read nIndex, otherwise read nPortIndex */
61    OMX_PTR hTunneledComponent; /**< Component currently tunnelling with */
62    OMX_U32 nTunneledPort;    /**< Port on tunnelled component */
63 } OMX_PARAM_TUNNELSTATUSTYPE;
64 
65 #endif
66