videoeditorengine/mp3aacManipLib/MP3Gain/inc/mpif.h
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 /**************************************************************************
       
    21   mpif.h - Interchange format interface for MPEG Layer I/II/III.
       
    22 
       
    23   Author(s): Juha Ojanpera
       
    24   Copyright (c) 1999-2004 by Nokia Research Center, Speech and Audio Systems.
       
    25   *************************************************************************/
       
    26 
       
    27 #ifndef MP_AIF_H_
       
    28 #define MP_AIF_H_
       
    29 
       
    30 /*-- Project Headers. --*/
       
    31 #include "defines.h"
       
    32 #include "auddef.h"
       
    33 #include "mstream.h"
       
    34 #include "MP3API.h"
       
    35 #include "AACAPI.h"
       
    36 
       
    37 
       
    38 /*
       
    39    Purpose:     Parent structure for error checking.
       
    40    Explanation: The number of bits that are protected varies between different 
       
    41                 versions (MPEG-1, MPEG-2). */
       
    42 /*
       
    43 typedef struct CRC_Check
       
    44 {
       
    45   uint8 bufLen;                       // Length of 'crc_payload' 
       
    46   int16 crc;                          // CRC error-check word.   
       
    47 
       
    48 } CRC_Check;
       
    49 */
       
    50 
       
    51 
       
    52 
       
    53 /*
       
    54  * Implemented interfaces.
       
    55  */
       
    56 class TMpTransportHandle;
       
    57 
       
    58 void
       
    59 mpInitTransport(TMpTransportHandle *tHandle);
       
    60 
       
    61 SEEK_STATUS
       
    62 mpSyncTransport(TMpTransportHandle *tHandle, uint8 *syncBuf, 
       
    63                 uint32 syncBufLen, uint32 *readBits);
       
    64 
       
    65 int16
       
    66 GetSideInfoSlots(TMpTransportHandle *tHandle);
       
    67 
       
    68 int16
       
    69 GetSideInfoSlots(TMPEG_Header *header);
       
    70 
       
    71 int16
       
    72 MP_SeekSync(TMpTransportHandle *tHandle, uint8 *syncBuf, 
       
    73             uint32 syncBufLen, int16 *readBytes, 
       
    74             int16 *frameBytes, int16 *headerBytes,
       
    75             uint8 initMode);
       
    76 
       
    77 int16
       
    78 MP_FreeMode(TMpTransportHandle *tHandle, uint8 *syncBuf, 
       
    79             uint32 syncBufLen, int16 *readBytes, 
       
    80             int16 *frameBytes, int16 *headerBytes);
       
    81 
       
    82 int16
       
    83 MP_EstimateBitrate(TMpTransportHandle *tHandle, uint8 isVbr);
       
    84 
       
    85 uint32
       
    86 MP_FileLengthInMs(TMpTransportHandle *tHandle, int32 fileSize);
       
    87 
       
    88 int32
       
    89 MP_GetSeekOffset(TMpTransportHandle *tHandle, int32 seekPos);
       
    90 
       
    91 int32
       
    92 MP_GetFrameTime(TMpTransportHandle *tHandle);
       
    93 
       
    94 
       
    95 
       
    96 #endif /*-- MP_AIF_H_ --*/