videoeditorengine/mp3aacManipLib/AACGain/src/aacdef.cpp
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "aacdef.h"
       
    21 
       
    22 CWindowInfo* CWindowInfo::NewL()
       
    23     {
       
    24 
       
    25     CWindowInfo* self = new (ELeave) CWindowInfo();
       
    26     CleanupStack::PushL(self);
       
    27     self->ConstructL();
       
    28     CleanupStack::Pop(self);
       
    29     return self;
       
    30 
       
    31     }
       
    32 CWindowInfo::~CWindowInfo()
       
    33     {
       
    34     if (group != 0) delete[] group;
       
    35     if (mask != 0) delete[] mask;
       
    36     if (sfac != 0) delete[] sfac;
       
    37     if (cb_map != 0) delete[] cb_map;
       
    38     if (lpflag != 0) delete[] lpflag;
       
    39 
       
    40     }
       
    41 
       
    42 CWindowInfo::CWindowInfo()
       
    43     {
       
    44 
       
    45     }
       
    46 
       
    47 void CWindowInfo::ConstructL()
       
    48     {
       
    49 
       
    50     group = new (ELeave) uint8[NSHORT];
       
    51     mask = new (ELeave) uint8[MAXBANDS];
       
    52     sfac = new (ELeave) int16[MAXBANDS];
       
    53     cb_map = new (ELeave) uint8[MAXBANDS];
       
    54     lpflag= new (ELeave) int16[MAXBANDS];
       
    55 
       
    56     }
       
    57 
       
    58 CMC_Info* CMC_Info::NewL()
       
    59     {
       
    60 
       
    61     CMC_Info* self = new (ELeave) CMC_Info();
       
    62     CleanupStack::PushL(self);
       
    63     self->ConstructL();
       
    64     CleanupStack::Pop(self);
       
    65     return self;
       
    66 
       
    67     }
       
    68 CMC_Info::~CMC_Info()
       
    69     {
       
    70     if (sfbInfo != 0) delete sfbInfo;
       
    71     }
       
    72 
       
    73 CMC_Info::CMC_Info()
       
    74     {
       
    75 
       
    76     }
       
    77 
       
    78 void CMC_Info::ConstructL()
       
    79     {
       
    80     sfbInfo = CSfb_Info::NewL();
       
    81 
       
    82     }
       
    83