aaclc_enc/ariaaclcencwrapper/export_hdr/ariaaclcencwrapper.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 * AacLC encoder Wrapper.The member functions are pure virtual functions which
       
    17 * are to be implemented by the derived class.
       
    18 *
       
    19 */
       
    20 
       
    21 #ifndef ARIAACLCENCWRAPPER_H
       
    22 #define ARIAACLCENCWRAPPER_H
       
    23 
       
    24 #include<e32base.h>
       
    25 
       
    26 // Class declaration
       
    27 class CAriAacLCEncWrapper:public CBase
       
    28     {
       
    29 
       
    30 public:
       
    31     /**
       
    32      * Two-phased constructor.
       
    33      * @return pointer to an instance of CAriAacLCEncWrapper
       
    34      */
       
    35     IMPORT_C static CAriAacLCEncWrapper* NewL();
       
    36 
       
    37     /**> Destructor */
       
    38     ~CAriAacLCEncWrapper();
       
    39 
       
    40 	/**
       
    41      * The function resets the encoder.
       
    42      * @param aParam
       
    43      *    pointer to encoding parameter structure
       
    44      * @return return status
       
    45      */
       
    46     virtual TInt Reset( TAny* aParam ) = 0;
       
    47 
       
    48     /**
       
    49      * The function creates the header for the AAC stream with the
       
    50      * parameters specified.
       
    51      * @param aDstBuf
       
    52      *    The destination buffer to hold the header information
       
    53      * @param aDstLen
       
    54      *    Length of the header in bytes
       
    55      * @return return status
       
    56      */
       
    57     virtual TInt GetHeader( TUint8* aDstBuf, TInt &aDstLen ) = 0;
       
    58 
       
    59     /**
       
    60      * The function encodes the input stream.
       
    61      * @param aSrcBuf
       
    62      *    The source buffer containing data to encode.
       
    63      * @param aSrcLen
       
    64      *    Size of source buffer in bytes
       
    65      * @param aDstBuf
       
    66      *    The destination buffer to hold the data after encoding.
       
    67      * @param aDstLen
       
    68      *    Size of destination buffer in bytes
       
    69      * @return return status
       
    70      */
       
    71     virtual TInt Encode( TInt16* aSrcBuf, TInt &aSrcLen,
       
    72                                     TUint8* aDstBuf, TInt &aDstLen ) = 0;
       
    73 
       
    74     };
       
    75 
       
    76 
       
    77 #endif /* ARIAACLCENCWRAPPER_H  */