multimediacommscontroller/mmccavcpayloadformat/inc/rfc3984base.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 CRFC3984Base
       
    15 **
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef RFC3984BASE_H
       
    22 #define RFC3984BASE_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <e32std.h>
       
    26 #include <e32def.h>
       
    27 #include <e32cmn.h>
       
    28 #include "avcrtpstruct.h"
       
    29 
       
    30 // AVC packetization modes
       
    31 #define AVC_MODE_SNALU 0
       
    32 #define AVC_MODE_NONINTERLEAVED 1
       
    33 #define AVC_MODE_INTERLEAVED 2
       
    34 
       
    35 
       
    36 class CRFC3984Base : public CBase
       
    37 {
       
    38 	public:
       
    39 	
       
    40 	virtual ~CRFC3984Base();
       
    41 	virtual void SetPacketizationMode(TInt aPacketizationMode);				// Sets the packetization-mode value
       
    42 	
       
    43 	
       
    44 	protected:
       
    45 	
       
    46 	CRFC3984Base();	
       
    47 	
       
    48 	TInt iPacketizationMode;												// packetization-mode instance
       
    49 
       
    50 
       
    51 };
       
    52 
       
    53 
       
    54 // CAvcRTPStruct class, has public member functions used in depayloadization
       
    55 class CAvcRtpStruct : public CBase
       
    56 {
       
    57 
       
    58 public:
       
    59 
       
    60 	HBufC8 * iDes;					// pointer to data element
       
    61 	TUint8 iMarkerBit;				// marker bit value
       
    62 	TUint64 iArrivalTime;			// arrival time of the NAL unit
       
    63 	TUint64 iTimeStamp;				// timestamp of the NAL unit
       
    64 	TUint16 iSeqNo;					// Sequence number received from RTP layer
       
    65 	TInt16 iDon;					// don number for the packet
       
    66 	TUint 	iPacketType;			// packet types as defined in rtp base 
       
    67 	TUint8	iFUHeader;				// FU Header (containing start,end, reserve and type field, if required)
       
    68 
       
    69 public:
       
    70 	
       
    71 	inline CAvcRtpStruct() : iDes(NULL), iMarkerBit(0), iArrivalTime(0), iTimeStamp(0), iSeqNo(0), iDon(0), iPacketType(0), iFUHeader(0)
       
    72 	{ };
       
    73 
       
    74 };
       
    75 
       
    76 
       
    77 #endif
       
    78 
       
    79 // EOF