amrnb_enc/ariamrnbencwrapper/export_hdr/ariamrnbencwrapper.h
changeset 0 bb31fbe78861
equal deleted inserted replaced
-1:000000000000 0:bb31fbe78861
       
     1 /*
       
     2 * Copyright (c) 2009 Aricent and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Aricent - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Export header file for Wrapper APIs.Interface class for
       
    16 * AmrNb Encoder Wrapper.The member functions are pure virtual functions which
       
    17 * are to be implemented by the derived class.
       
    18 *
       
    19 */
       
    20 
       
    21 #ifndef ARIAMRNBENCWRAPPER_H
       
    22 #define ARIAMRNBENCWRAPPER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 // Class declaration
       
    27 class CAriAmrNbEncWrapper:public CBase
       
    28     {
       
    29 public:
       
    30     /**
       
    31     * Two-phased constructor.
       
    32     * @return pointer to an instance of CAriAmrNbEncWrapper
       
    33     */
       
    34     IMPORT_C static CAriAmrNbEncWrapper* NewL();
       
    35 
       
    36     /**> Destructor */
       
    37     virtual ~CAriAmrNbEncWrapper();
       
    38 
       
    39     /**
       
    40     * The function resets the encoder.
       
    41     * @param aParam
       
    42     *    pointer to FrameInfo structure
       
    43     * @return return status
       
    44     */
       
    45     virtual TInt Reset( TAny* aParam ) = 0;
       
    46 
       
    47     /**
       
    48     * The function encodes the input stream.
       
    49     * @param aSrcBuf
       
    50     *    The source buffer containing data to encode.
       
    51     * @param aSrcLen
       
    52     *    Size of source buffer in bytes
       
    53     * @param aDstBuf
       
    54     *    The destination buffer to hold the data after encoding.
       
    55     * @param aDstLen
       
    56     *    Size of destination buffer in bytes
       
    57     * @return return status
       
    58     */
       
    59     virtual TInt Encode( TInt* aSrcBuf, TInt &aSrcLen, TUint8* aDstBuf,
       
    60                                                       TInt &aDstLen ) = 0;
       
    61 
       
    62     };
       
    63 
       
    64 
       
    65 #endif /* ARIAMRNBENCWRAPPER_H  */