mmshplugins/mmcctranscoder/tsrc/stubs/inc/vedcommon.inl
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2003 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 #ifndef __VEDCOMMON_INL__
       
    20 #define __VEDCOMMON_INL__
       
    21 
       
    22 
       
    23 inline void TVedPanic::Panic(TInt aPanic)
       
    24     {
       
    25     _LIT(KVedPanicCategory, "VIDEO EDITOR ENG");
       
    26 
       
    27     User::Panic(KVedPanicCategory, aPanic);
       
    28     }
       
    29 
       
    30 inline TVedDynamicLevelMark::TVedDynamicLevelMark(TTimeIntervalMicroSeconds aTime, TInt aLevel) 
       
    31     {
       
    32     iTime = aTime;
       
    33     if ( aLevel < -127 )    // level is TInt8 with 0.5 dB steps
       
    34         {
       
    35         iLevel = -127;
       
    36         }
       
    37     else if (aLevel > 127 )
       
    38         {
       
    39         iLevel = 127;
       
    40         }
       
    41     else
       
    42         {
       
    43         iLevel = TInt8(aLevel);
       
    44         }
       
    45     }
       
    46     
       
    47 inline TVedDynamicLevelMark::TVedDynamicLevelMark(const TVedDynamicLevelMark& aMark) 
       
    48     {
       
    49     iTime = aMark.iTime;
       
    50     iLevel = aMark.iLevel;
       
    51     }
       
    52 
       
    53 #endif //__VEDCOMMON_INL__