multimediacommscontroller/mmccavcpayloadformat/inc/rfc3984decode.h
changeset 0 1bce908db942
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/multimediacommscontroller/mmccavcpayloadformat/inc/rfc3984decode.h	Tue Feb 02 01:04:58 2010 +0200
@@ -0,0 +1,63 @@
+/*
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:    Class definition for rfc3984Decode class, the de-payloadization 
+**				 class for the AVC codec
+**
+*/
+
+
+
+
+#ifndef RFC3984DECODE_H
+#define RFC3984DECODE_H
+
+//#include <e32cons.h>
+//#include <e32cmn.h>
+#include "rfc3984base.h"
+
+class CRFC3984Decode : public CRFC3984Base
+{
+	public:
+	
+		// public functions
+		~CRFC3984Decode();
+		static CRFC3984Decode* NewL();
+		TBool DePayloadizeFrameL(TDes8 & aBuffer, TUint aTimeStamp, TUint aArrivalTime, TUint16 aSeqNo, TUint8 & aMarkerBit, TInt & aNalCount);
+		CAvcRtpStruct * GetNalUnit(TInt aIndex);
+		void ClearBuffer();
+		
+	
+	protected:
+	
+		CRFC3984Decode();	
+		void ConstructL();
+		void Write16(TDes8 & aDes, TUint16 aValue);
+		TUint16 Read16(TDes8 & aDes, TInt aIndex);
+	
+	
+	private:	
+	
+		// private members
+		
+		TInt iNalCount; 						// variable to keep track of Nal units depacketized in one go
+		RPointerArray<CAvcRtpStruct> iBuffers;  // Array to keep pointers to depayloadized data	
+		TInt iVirtualDON;
+	    
+
+};
+
+
+#endif
+
+// EOF
\ No newline at end of file