openmaxil_plat/test_api/inc/omxilsymbiansharedchunkextensions.h
changeset 0 0e4a32b9112d
equal deleted inserted replaced
-1:000000000000 0:0e4a32b9112d
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20    @file
       
    21    @internalComponent
       
    22 */
       
    23 
       
    24 #ifndef OMXILSYMBIANSHAREDCHUNKTENSIONS_H
       
    25 #define OMXILSYMBIANSHAREDCHUNKTENSIONS_H
       
    26 
       
    27 #include <openmax/il/khronos/v1_x/OMX_Types.h>
       
    28 
       
    29 /**
       
    30  * The string that the OpenMAX IL component will translate into a 32-bit
       
    31  * OpenMAX IL index to support the communication of Symbian shared chunk
       
    32  * metadata with a tunnelled component
       
    33  */
       
    34 const char sOmxSymbianSharedChunkMetadata [] = "OMX.SYMBIAN.INDEX.CONFIG.SHAREDCHUNKMETADATA";
       
    35 
       
    36 
       
    37 /*
       
    38  * Custom index used by an OpenMAX IL component to select the structure for
       
    39  * getting/setting the Symbian share chunk metadata
       
    40  *
       
    41  * Vendor specific structures should be in the range of 0x7F000000 to 0x7FFFFFFE.
       
    42  * This range is not broken out by vendor, so private indexes are not guaranteed unique
       
    43  * and therefore should only be sent to the appropriate component.
       
    44  */
       
    45 #define OMX_SymbianIndexConfigSharedChunkMetadata 0x7FD19E5C // TBC
       
    46 
       
    47 /*
       
    48  * This constant defines the max number of share chunk offsets
       
    49  */
       
    50 #define OMX_SYMBIAN_SHARED_CHUNK_OFFSETS_MAX 128
       
    51 
       
    52 /**
       
    53  * Custom OpenMAX IL structure to be used as a container for Symbian shared
       
    54  * chunk related information
       
    55  */
       
    56 struct OMX_SYMBIAN_CONFIG_SHARED_CHUNK_METADATA
       
    57 	{
       
    58     OMX_U32 nSize;                 /**< Size of this structure, in Bytes */
       
    59     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
       
    60     OMX_U32 nPortIndex;            /**< Port that this structure applies to */
       
    61     OMX_U32 nHandleId;	           /** This is a handle id of the shared chunk */
       
    62     OMX_U64 nOwnerThreadId;	       /** This is thread that contains the handle */
       
    63 	};
       
    64 
       
    65 #endif // OMXILSYMBIANSHAREDCHUNKTENSIONS_H
       
    66