videoeditorengine/audioeditorengine/codecs/WAV/inc/ProcWAVFrameHandler.h
branchRCL_3
changeset 3 e0b5df5c0969
parent 0 951a5db380a0
child 5 4c409de21d23
equal deleted inserted replaced
0:951a5db380a0 3:e0b5df5c0969
     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 
       
    21 #ifndef __CPROCWAVFRAMEHANDLER_H__
       
    22 #define __CPROCWAVFRAMEHANDLER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "AudCommon.h"
       
    26 #include "ProcConstants.h"
       
    27 #include "ProcFrameHandler.h"
       
    28 
       
    29 class CProcWAVFrameHandler : public CProcFrameHandler 
       
    30     {
       
    31 
       
    32 public:
       
    33 
       
    34     /*
       
    35     * Constructors & destructor
       
    36     *
       
    37     */
       
    38     static CProcWAVFrameHandler* NewL(TInt aBitsPerSample);
       
    39     static CProcWAVFrameHandler* NewLC(TInt aBitsPerSample);
       
    40     virtual ~CProcWAVFrameHandler();
       
    41 
       
    42 
       
    43     // From base class --------------->
       
    44     virtual TBool ManipulateGainL(const HBufC8* aFrameIn, HBufC8*& aFrameOut, TInt8 aGain);
       
    45 
       
    46     
       
    47     virtual TBool GetGainL(const HBufC8* aFrame, RArray<TInt>& aGains, TInt& aMaxGain) const;
       
    48     virtual TBool GetNormalizingMargin(const HBufC8* aFrame, TInt8& aMargin) const;
       
    49 
       
    50     virtual TBool IsMixingAvailable() const;
       
    51     virtual TBool MixL(const HBufC8* aFrame1, const HBufC8* aFrame2, HBufC8*& aMixedFrame);
       
    52     //<---------------------------------
       
    53 
       
    54     
       
    55 private:
       
    56 
       
    57     // ConstructL
       
    58     void ConstructL();
       
    59     
       
    60     // c++ constructor
       
    61     CProcWAVFrameHandler(TInt aBitsPerSample);
       
    62     
       
    63     // gets the highest gain
       
    64     TInt GetHighestGain(const HBufC8* aFrame, TInt& aMaxGain) const;
       
    65 
       
    66     // bitdepth
       
    67     TInt iBitsPerSample;
       
    68 
       
    69     
       
    70     };
       
    71 
       
    72 #endif