openmaxil_plat/test_api/inc/mmfbuffershared.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 MMFBUFFERSHARED_H
       
    25 #define MMFBUFFERSHARED_H
       
    26 
       
    27 #include <e32cmn.h>
       
    28 
       
    29 const TInt KMinBuffers = 1;
       
    30 const TInt KMinBufferSize = 4000;
       
    31 
       
    32 /**
       
    33  * The T class holds the filled buffer information for each buffer.
       
    34  */
       
    35 class TFilledBufferHeaderV2 
       
    36 	{
       
    37 public:
       
    38 	/** Amount of buffer filled with actual data */
       
    39 	TUint iFilledLength; 
       
    40 	/** Any timestamp associated with the buffer */
       
    41 	TInt64 iTimeStamp;
       
    42 	/** Combination of OMX_BUFFERFLAG_*, specified at page 68 in the OpenMAX spec. */
       
    43 	TUint iFlags; 
       
    44 	/** offset **/
       
    45 	TUint32 iOffset;
       
    46 	};
       
    47 
       
    48 /** Shared chunk buffers information. It can be set by the user. */
       
    49 class TMMSharedChunkBufConfig
       
    50 	{
       
    51 public:
       
    52 	/** The number of buffers. */
       
    53 	TInt iNumBuffers;
       
    54 	/** The size of each buffer in bytes. */
       
    55 	TInt iBufferSizeInBytes;
       
    56 	};
       
    57 
       
    58 struct TBufSrcComponentHandles
       
    59 	{
       
    60 	/** The descriptor containing the name of the global chunk to be opened  */
       
    61 	TName iChunkName;
       
    62 	/** The descriptor containing the name of the global message queue 
       
    63 	 for the available buffer notification */
       
    64 	TName iBufferAvailMsgQueue;
       
    65 	/** The descriptor containing the name of the global message queue 
       
    66 	 for the filled buffer */
       
    67 	TName iBufferFilledMsgQueue;
       
    68 	};
       
    69 
       
    70 #endif // MMFBUFFERSHARED_H