1
/* transfrm.h, Low-level transformation (DCT/iDCT and prediction
2
* difference picture handling) routines */
5
* Disclaimer of Warranty
7
* These software programs are available to the user without any license fee or
8
* royalty on an "as is" basis. The MPEG Software Simulation Group disclaims
9
* any and all warranties, whether express, implied, or statuary, including any
10
* implied warranties or merchantability or of fitness for a particular
11
* purpose. In no event shall the copyright-holder be liable for any
12
* incidental, punitive, or consequential damages of any kind whatsoever
13
* arising from the use of these programs.
15
* This disclaimer of warranty extends to the user of these programs and user's
16
* customers, employees, agents, transferees, successors, and assigns.
18
* The MPEG Software Simulation Group does not represent or warrant that the
19
* programs furnished hereunder are free of infringement of any third-party
22
* Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
23
* are subject to royalty fees to patent holders. Many of these patents are
24
* general enough such that they are unavoidable regardless of implementation
28
/* Modifications and extension (C) 2000-2003 Andrew Stevens */
30
/* These modifications are free software; you can redistribute it
31
* and/or modify it under the terms of the GNU General Public License
32
* as published by the Free Software Foundation; either version 2 of
33
* the License, or (at your option) any later version.
35
* This program is distributed in the hope that it will be useful,
36
* but WITHOUT ANY WARRANTY; without even the implied warranty of
37
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
38
* General Public License for more details.
40
* You should have received a copy of the GNU General Public License
41
* along with this program; if not, write to the Free Software
42
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
50
#include "mjpeg_types.h"
58
Pointers to version of transform and prediction manipulation
62
extern void (*pfdct)( int16_t * blk );
63
extern void (*pidct)( int16_t * blk );
64
extern void (*padd_pred) (uint8_t *pred, uint8_t *cur,
65
int lx, int16_t *blk);
66
extern void (*psub_pred) (uint8_t *pred, uint8_t *cur,
67
int lx, int16_t *blk);
68
extern int (*pfield_dct_best)( uint8_t *cur_lum_mb, uint8_t *pred_lum_mb,
71
int field_dct_best( uint8_t *cur_lum_mb, uint8_t *pred_lum_mb, int stride);
73
void add_pred (uint8_t *pred, uint8_t *cur,
74
int lx, int16_t *blk);
75
void sub_pred (uint8_t *pred, uint8_t *cur,
76
int lx, int16_t *blk);
78
void init_transform(void);
81
void fdct( int16_t *blk );
82
void idct( int16_t *blk );
83
void init_fdct (void);
84
void init_idct (void);
90
#endif /* _TRANSFRM_H */
95
* c-file-style: "stroustrup"
97
* indent-tabs-mode: nil