~ubuntu-branches/debian/sid/mjpegtools/sid

« back to all changes in this revision

Viewing changes to mpeg2enc/transfrm_ref.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-09-02 16:29:46 UTC
  • Revision ID: package-import@ubuntu.com-20120902162946-i1zpl8cjngq9hd6w
Tags: upstream-2.0.0+debian
ImportĀ upstreamĀ versionĀ 2.0.0+debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* transfrm.h, Low-level transformation (DCT/iDCT and prediction
 
2
 * difference picture handling) routines */
 
3
 
 
4
/*
 
5
 * Disclaimer of Warranty
 
6
 *
 
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.
 
14
 *
 
15
 * This disclaimer of warranty extends to the user of these programs and user's
 
16
 * customers, employees, agents, transferees, successors, and assigns.
 
17
 *
 
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
 
20
 * patents.
 
21
 *
 
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
 
25
 * design.
 
26
 *
 
27
 */
 
28
/*  Modifications and extension (C) 2000-2003 Andrew Stevens */
 
29
 
 
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.
 
34
 *
 
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.
 
39
 *
 
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
 
43
 * 02111-1307, USA.
 
44
 *
 
45
 */
 
46
 
 
47
#ifndef _TRANSFRM_H
 
48
#define _TRANSFRM_H
 
49
 
 
50
#include "mjpeg_types.h"
 
51
 
 
52
 
 
53
#ifdef  __cplusplus
 
54
extern "C" {
 
55
#endif
 
56
 
 
57
/*
 
58
  Pointers to version of transform and prediction manipulation
 
59
  routines to be used..
 
60
 */
 
61
 
 
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,
 
69
                               int stride);
 
70
 
 
71
int field_dct_best( uint8_t *cur_lum_mb, uint8_t *pred_lum_mb, int stride);
 
72
 
 
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);
 
77
 
 
78
void init_transform(void);
 
79
 
 
80
 
 
81
void fdct( int16_t *blk );
 
82
void idct( int16_t *blk );
 
83
void init_fdct (void);
 
84
void init_idct (void);
 
85
 
 
86
#ifdef  __cplusplus
 
87
}
 
88
#endif
 
89
 
 
90
#endif /*  _TRANSFRM_H */
 
91
 
 
92
 
 
93
/* 
 
94
 * Local variables:
 
95
 *  c-file-style: "stroustrup"
 
96
 *  tab-width: 4
 
97
 *  indent-tabs-mode: nil
 
98
 * End:
 
99
 */