videoeditorengine/mp3aacManipLib/AACGain/inc/dec_huf.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   dec_huf.h - AAC Huffman decoding declarations.
       
    22  
       
    23   Author(s): Juha Ojanpera
       
    24   Copyright (c) 2000-2004 by Nokia Research Center, Speech and Audio Systems.
       
    25   *************************************************************************/
       
    26 
       
    27 #ifndef DEC_HUFFMAN_H_
       
    28 #define DEC_HUFFMAN_H_
       
    29 
       
    30 /*-- Project Headers. --*/
       
    31 #include "defines.h"
       
    32 
       
    33 #define MAX_AAC_QHUFTABLES (11)
       
    34 
       
    35 /*
       
    36   Purpose:      Structure defining Huffman codeword values for
       
    37                 quantized spectral coefficients.
       
    38   Explanation:  - */
       
    39 
       
    40 typedef struct Huffman_DecCodeStr
       
    41 {
       
    42   uint16 huf_param;  /* Quantized spectral coefficients. */
       
    43   uint16 codeword;   /* Huffman codeword.                */
       
    44     
       
    45 } Huffman_DecCode;
       
    46 
       
    47 /*
       
    48   Purpose:      Structure defining Huffman codebook parameters for
       
    49                 quantized spectral coefficients.
       
    50   Explanation:  - */
       
    51 typedef struct Huffman_DecInfoStr
       
    52 {
       
    53   int16 cb_len;               /* Codebook size.                         */
       
    54   const Huffman_DecCode *huf; /* Codeword parameters for this codebook. */
       
    55     
       
    56 } Huffman_DecInfo;
       
    57 
       
    58 /*
       
    59   Purpose:      Structure defining Huffman codebook parameters for
       
    60                 scalefactors.
       
    61   Explanation:  - */
       
    62 typedef struct Huffman_DecSfInfoStr
       
    63 {
       
    64   int16 cb_len;           /* Codebook size.       */
       
    65   const uint32 *sf_param; /* Codeword parameters. */
       
    66     
       
    67 } Huffman_DecSfInfo;
       
    68 
       
    69 
       
    70 
       
    71 /*-- Following functions are implemented in module 'dec_huftables.c'. --*/
       
    72 Huffman_DecInfo **LoadHuffmanDecTablesL(void);
       
    73 void CloseHuffmanDecTables(Huffman_DecInfo **);
       
    74 Huffman_DecSfInfo *LoadSfHuffmanTableL(void);
       
    75 void CloseSfHuffmanTable(Huffman_DecSfInfo *sfHuf);
       
    76 
       
    77 #endif /*-- DEC_HUFFMAN_H_ --*/