Home | History | Annotate | Download | only in aacdec
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 /**************************************************************************
     19 
     20 This software module was originally developed by
     21 Nokia in the course of development of the MPEG-2 AAC/MPEG-4
     22 Audio standard ISO/IEC13818-7, 14496-1, 2 and 3.
     23 This software module is an implementation of a part
     24 of one or more MPEG-2 AAC/MPEG-4 Audio tools as specified by the
     25 MPEG-2 aac/MPEG-4 Audio standard. ISO/IEC  gives users of the
     26 MPEG-2aac/MPEG-4 Audio standards free license to this software module
     27 or modifications thereof for use in hardware or software products
     28 claiming conformance to the MPEG-2 aac/MPEG-4 Audio  standards. Those
     29 intending to use this software module in hardware or software products
     30 are advised that this use may infringe existing patents. The original
     31 developer of this software module, the subsequent
     32 editors and their companies, and ISO/IEC have no liability for use of
     33 this software module or modifications thereof in an
     34 implementation. Copyright is not released for non MPEG-2 aac/MPEG-4
     35 Audio conforming products. The original developer retains full right to
     36 use the code for the developer's own purpose, assign or donate the code to a
     37 third party and to inhibit third party from using the code for non
     38 MPEG-2 aac/MPEG-4 Audio conforming products. This copyright notice
     39 must be included in all copies or derivative works.
     40 Copyright (c)1997.
     41 
     42 ***************************************************************************/
     43 
     44 #ifndef _LT_PREDICTION_H
     45 #define _LT_PREDICTION_H
     46 
     47 #include "block.h"
     48 #include "ltp_common.h"
     49 #include "ibstream.h"
     50 #include "lt_decode.h"
     51 #include "s_frameinfo.h"
     52 #include "window_block.h"
     53 
     54 void init_lt_pred(LT_PRED_STATUS * lt_status);
     55 
     56 void lt_predict(
     57     Int                  object,
     58     FrameInfo           *pFrameInfo,
     59     WINDOW_SEQUENCE      win_seq,
     60     Wnd_Shape           *pWin_shape,
     61     LT_PRED_STATUS  *pLt_status,
     62     Real                *pPredicted_samples,
     63     Real                *pOverlap_buffer,
     64     Real                *pCurrent_frame_copy,
     65     Real                 current_frame[]);
     66 
     67 short double_to_int(double sig_in);
     68 
     69 #endif /* not defined _LT_PREDICTION_H */
     70