videoeditorengine/mp3aacManipLib/MP3Gain/inc/param.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 #ifndef DECPARAM_H_
       
    21 #define DECPARAM_H_
       
    22 
       
    23 /*-- Project Headers --*/
       
    24 #include "defines.h"
       
    25 
       
    26 /*
       
    27    Purpose:     The # of filter branches of the polyphase filterbank
       
    28                 to be discarded. By default 2 lowest and highest branches
       
    29         will be discarded.
       
    30    Explanation: - */
       
    31 #define WINDOW_PRUNING_START_IDX 2
       
    32 
       
    33 /*
       
    34    Purpose:     Parameters that control the decoding complexity.
       
    35    Explanation: - */
       
    36 typedef struct Out_ComplexityStr
       
    37 {
       
    38   BOOL no_antialias;    /* If TRUE, no alias-reduction is performed. */
       
    39   int16 subband_pairs;  /* # of subband pairs for alias-reduction.   */
       
    40   int16 imdct_subbands; /* # of IMDCT subbands.                      */
       
    41 
       
    42 } Out_Complexity;
       
    43 
       
    44 /*
       
    45    Purpose:     Parameters that control the output stream.
       
    46    Explanation: - */
       
    47 typedef struct Out_ParamStr
       
    48 {
       
    49   int32 sampling_frequency; /* Output sampling frequency.           */
       
    50   int16 num_out_channels;   /* # of output channels.                */
       
    51   int16 decim_factor;       /* Decimation factor.                   */
       
    52   int16 num_samples;        /* # of output samples per subband.     */
       
    53   int16 num_out_samples;    /* Total # of output samples per frame. */
       
    54 
       
    55   /*
       
    56    * Specifies how many window coefficients are discarded from the synthesis
       
    57    * window. In units of 'SBLIMIT' samples. The start index can vary
       
    58    * between 0 and 'NUM_SUBWIN', but if you don't want to reduce the overall
       
    59    * audio quality, the default value 2 (or 0) should be used.
       
    60    */
       
    61   int16 window_pruning_idx;
       
    62   int16 num_subwindows;
       
    63   int16 window_offset;
       
    64 
       
    65 } Out_Param;
       
    66 
       
    67 /*
       
    68    Purpose:     Mapping of above structures into one common structure.
       
    69    Explanation: - */
       
    70 typedef struct Out_InfoStr
       
    71 {
       
    72   Out_Param *out_param;
       
    73   Out_Complexity *out_complex;
       
    74 
       
    75 } Out_Info;
       
    76 
       
    77 #endif /* DECPARAM_H_ */