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
20This software module was originally developed by
21Nokia in the course of development of the MPEG-2 AAC/MPEG-4
22Audio standard ISO/IEC13818-7, 14496-1, 2 and 3.
23This software module is an implementation of a part
24of one or more MPEG-2 AAC/MPEG-4 Audio tools as specified by the
25MPEG-2 aac/MPEG-4 Audio standard. ISO/IEC  gives users of the
26MPEG-2aac/MPEG-4 Audio standards free license to this software module
27or modifications thereof for use in hardware or software products
28claiming conformance to the MPEG-2 aac/MPEG-4 Audio  standards. Those
29intending to use this software module in hardware or software products
30are advised that this use may infringe existing patents. The original
31developer of this software module, the subsequent
32editors and their companies, and ISO/IEC have no liability for use of
33this software module or modifications thereof in an
34implementation. Copyright is not released for non MPEG-2 aac/MPEG-4
35Audio conforming products. The original developer retains full right to
36use the code for the developer's own purpose, assign or donate the code to a
37third party and to inhibit third party from using the code for non
38MPEG-2 aac/MPEG-4 Audio conforming products. This copyright notice
39must be included in all copies or derivative works.
40Copyright (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
54void init_lt_pred(LT_PRED_STATUS * lt_status);
55
56void 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
67short double_to_int(double sig_in);
68
69#endif /* not defined _LT_PREDICTION_H */
70