mmshplugins/mmcctranscoder/src/transcodervideocodec.cpp
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2002-2004 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 // INCLUDE FILES
       
    20 
       
    21 #include "transcodervideocodec.h"
       
    22 
       
    23 // MODULE DATA STRUCTURES
       
    24 
       
    25 // LOCAL FUNCTION PROTOTYPES
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 // ============================= LOCAL FUNCTIONS ===============================
       
    30 
       
    31 
       
    32 // ============================ MEMBER FUNCTIONS ===============================
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CMccTranscoderVideoCodec::CMccTranscoderVideoCodec
       
    36 // default constructor
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 CMccTranscoderVideoCodec::CMccTranscoderVideoCodec()
       
    40     {
       
    41     }
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // CMccTranscoderVideoCodec::ConstructL
       
    45 // Symbian 2nd phase constructor can leave.
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 void CMccTranscoderVideoCodec::ConstructL( )
       
    49     {
       
    50 
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CMccTranscoderVideoCodec::NewL
       
    55 // Static constructor.
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 CMccTranscoderVideoCodec* CMccTranscoderVideoCodec::NewL()
       
    59     {
       
    60     CMccTranscoderVideoCodec* self = new (ELeave) CMccTranscoderVideoCodec;
       
    61 	CleanupStack::PushL( self );
       
    62 	self->ConstructL();
       
    63 	CleanupStack::Pop( self ); 
       
    64 	return self;
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CMccTranscoderVideoCodec::~CMccTranscoderVideoCodec
       
    69 // Destructor
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 CMccTranscoderVideoCodec::~CMccTranscoderVideoCodec()
       
    73     {
       
    74     }
       
    75  
       
    76 // -----------------------------------------------------------------------------
       
    77 // CMccTranscoderVideoCodec::SetBitrate
       
    78 // 
       
    79 // -----------------------------------------------------------------------------
       
    80 //   
       
    81 void CMccTranscoderVideoCodec::SetBitrate( TInt aBitrate )
       
    82     {
       
    83     iBitrate = aBitrate;  
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CMccTranscoderVideoCodec::Bitrate
       
    88 // 
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 TInt CMccTranscoderVideoCodec::Bitrate()
       
    92     {
       
    93     return iBitrate;  
       
    94     }
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CMccTranscoderVideoCodec::SetSamplingRate
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 void CMccTranscoderVideoCodec::SetSamplingRate( TInt aSamplingRate )
       
   101     {
       
   102     iSamplingRate = aSamplingRate; 
       
   103     }
       
   104     
       
   105 // -----------------------------------------------------------------------------
       
   106 // CMccTranscoderVideoCodec::SamplingRate
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 TInt CMccTranscoderVideoCodec::SamplingRate()
       
   110     {
       
   111     return iSamplingRate;  
       
   112     }