rtp/rtpstack/inc/rtpsessiondef.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __RtpSessionDef_H
       
    22 #define __RtpSessionDef_H
       
    23 
       
    24 // CONSTANTS
       
    25 const TUint KMaxRtpPacketSize = 8192; // 65536 bits = 8192 bytes
       
    26 const TUint KMaxRtcpPacketSize = 1024;
       
    27 
       
    28 // Default bandwidth in bps
       
    29 const TUint KRtpDefaultBandWidth = 64000;
       
    30 
       
    31 // Minimum bandwidth in bps
       
    32 const TUint KRtpMinimumBandWidth = 8000;
       
    33 
       
    34 // RTCP minimum interval (ms) (default is 5 seconds)
       
    35 const TUint KRtpDefaultRtcpInterval = 5000;
       
    36 
       
    37 // RTCP bandwidth fraction (default is 5%)
       
    38 const TReal KRtpDefaultRtcpFrac = 0.05;
       
    39 
       
    40 // Fraction of RTCP bandwidth to be shared among active senders
       
    41 const TReal KRtpDefaultSenderBWFrac = 0.25;
       
    42 
       
    43 // Fraction of RTCP bandwidth to be shared among receivers
       
    44 const TReal KRtpDefaultObserverBWFrac = 1 - KRtpDefaultSenderBWFrac;
       
    45 
       
    46 // Default RTCP average packet size
       
    47 const TUint KAverageRtcpPacketLength = 128;
       
    48 
       
    49 // Default RTCP minimum interval (ms)
       
    50 const TUint KMinRtcpTimeInterval = 3000;
       
    51 
       
    52 // Compensation for RTCP interval (ms)
       
    53 const TReal KCompensationRtcp = 2.71828 - 1.5;
       
    54 
       
    55 // Used to calculate the average size of an RTCP packet, this represents
       
    56 // the fraction by which the most recent RTCP packet influences the average value
       
    57 const TUint KRtcpMaximumParticipants = 256;
       
    58 
       
    59 // Dictates how often the SDES information is sent
       
    60 const TInt KSDES_SEND_PACKET = 5;
       
    61 
       
    62 // use temporarily in building RTCP report
       
    63 const TUint KMaxNumActiveRcvStreams = 128;  
       
    64 
       
    65 // CLASS DECLARATION
       
    66 class TStream
       
    67     {
       
    68     public :
       
    69         inline TStream( const TRtpId aMagicKey );
       
    70 
       
    71         inline TStream( const TRtpId aMagicKey, const TUint aStreamAddress );
       
    72 
       
    73         inline const TRtpId GetMagicKey() const;
       
    74 
       
    75         inline const TUint GetStreamAddress() const;
       
    76 
       
    77         static const TInt iOffset;
       
    78 
       
    79     private:
       
    80         const TRtpId iMagicKey;
       
    81         const TUint iStreamAddress;
       
    82     };
       
    83 
       
    84 #include "rtpsessiondef.inl"
       
    85 
       
    86 #endif
       
    87 
       
    88 // End of file