multimediacommscontroller/mmccavcpayloadformat/inc/rfc3984decode.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:    Class definition for rfc3984Decode class, the de-payloadization 
       
    15 **				 class for the AVC codec
       
    16 **
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef RFC3984DECODE_H
       
    23 #define RFC3984DECODE_H
       
    24 
       
    25 //#include <e32cons.h>
       
    26 //#include <e32cmn.h>
       
    27 #include "rfc3984base.h"
       
    28 
       
    29 class CRFC3984Decode : public CRFC3984Base
       
    30 {
       
    31 	public:
       
    32 	
       
    33 		// public functions
       
    34 		~CRFC3984Decode();
       
    35 		static CRFC3984Decode* NewL();
       
    36 		TBool DePayloadizeFrameL(TDes8 & aBuffer, TUint aTimeStamp, TUint aArrivalTime, TUint16 aSeqNo, TUint8 & aMarkerBit, TInt & aNalCount);
       
    37 		CAvcRtpStruct * GetNalUnit(TInt aIndex);
       
    38 		void ClearBuffer();
       
    39 		
       
    40 	
       
    41 	protected:
       
    42 	
       
    43 		CRFC3984Decode();	
       
    44 		void ConstructL();
       
    45 		void Write16(TDes8 & aDes, TUint16 aValue);
       
    46 		TUint16 Read16(TDes8 & aDes, TInt aIndex);
       
    47 	
       
    48 	
       
    49 	private:	
       
    50 	
       
    51 		// private members
       
    52 		
       
    53 		TInt iNalCount; 						// variable to keep track of Nal units depacketized in one go
       
    54 		RPointerArray<CAvcRtpStruct> iBuffers;  // Array to keep pointers to depayloadized data	
       
    55 		TInt iVirtualDON;
       
    56 	    
       
    57 
       
    58 };
       
    59 
       
    60 
       
    61 #endif
       
    62 
       
    63 // EOF