[cvs] / xvidcore / src / motion / sad.h Repository:
ViewVC logotype

Diff of /xvidcore/src/motion/sad.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13.2.3, Wed Dec 11 10:32:29 2002 UTC revision 1.17, Sun Nov 17 00:32:06 2002 UTC
# Line 1  Line 1 
1    /*****************************************************************************
2     *
3     *  XVID MPEG-4 VIDEO CODEC
4     *  - SAD Routines header -
5     *
6     *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
7     *               2002 Peter Ross <pross@xvid.org>
8     *
9     *  This file is part of XviD, a free MPEG-4 video encoder/decoder
10     *
11     *  XviD is free software; you can redistribute it and/or modify it
12     *  under the terms of the GNU General Public License as published by
13     *  the Free Software Foundation; either version 2 of the License, or
14     *  (at your option) any later version.
15     *
16     *  This program is distributed in the hope that it will be useful,
17     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19     *  GNU General Public License for more details.
20     *
21     *  You should have received a copy of the GNU General Public License
22     *  along with this program; if not, write to the Free Software
23     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
24     *
25     *  Under section 8 of the GNU General Public License, the copyright
26     *  holders of XVID explicitly forbid distribution in the following
27     *  countries:
28     *
29     *    - Japan
30     *    - United States of America
31     *
32     *  Linking XviD statically or dynamically with other modules is making a
33     *  combined work based on XviD.  Thus, the terms and conditions of the
34     *  GNU General Public License cover the whole combination.
35     *
36     *  As a special exception, the copyright holders of XviD give you
37     *  permission to link XviD with independent modules that communicate with
38     *  XviD solely through the VFW1.1 and DShow interfaces, regardless of the
39     *  license terms of these independent modules, and to copy and distribute
40     *  the resulting combined work under terms of your choice, provided that
41     *  every copy of the combined work is accompanied by a complete copy of
42     *  the source code of XviD (the version of XviD used to produce the
43     *  combined work), being distributed under the terms of the GNU General
44     *  Public License plus this exception.  An independent module is a module
45     *  which is not derived from or based on XviD.
46     *
47     *  Note that people who make modified versions of XviD are not obligated
48     *  to grant this special exception for their modified versions; it is
49     *  their choice whether to do so.  The GNU General Public License gives
50     *  permission to release a modified version without this exception; this
51     *  exception also makes it possible to release a modified version which
52     *  carries forward this exception.
53     *
54     * $Id$
55     *
56     ****************************************************************************/
57    
58  #ifndef _ENCODER_SAD_H_  #ifndef _ENCODER_SAD_H_
59  #define _ENCODER_SAD_H_  #define _ENCODER_SAD_H_
60    
   
61  #include "../portab.h"  #include "../portab.h"
62    
63  typedef void (sadInitFunc) (void);  typedef void (sadInitFunc) (void);
# Line 26  Line 82 
82    
83  sad16Func mrsad16_c;  sad16Func mrsad16_c;
84    
85    
86  typedef uint32_t(sad8Func) (const uint8_t * const cur,  typedef uint32_t(sad8Func) (const uint8_t * const cur,
87                                                          const uint8_t * const ref,                                                          const uint8_t * const ref,
88                                                          const uint32_t stride);                                                          const uint32_t stride);
# Line 74  Line 131 
131  dev16Func dev16_altivec;  dev16Func dev16_altivec;
132  dev16Func dev16_ia64;  dev16Func dev16_ia64;
133    
134  typedef uint32_t (sad16vFunc)(  const uint8_t * const cur,  /* plain c */
135    /*
136    
137    uint32_t sad16(const uint8_t * const cur,
138                                    const uint8_t * const ref,
139                                    const uint32_t stride,
140                                    const uint32_t best_sad);
141    
142    uint32_t sad8(const uint8_t * const cur,
143                                                                  const uint8_t * const ref,                                                                  const uint8_t * const ref,
144                                                                  const uint32_t stride, int32_t *sad8);                                  const uint32_t stride);
145  typedef sad16vFunc *sad16vFuncPtr;  
146  extern sad16vFuncPtr sad16v;  uint32_t dev16(const uint8_t * const cur,
147  sad16vFunc sad16v_xmm;                                  const uint32_t stride);
148  sad16vFunc sad16v_mmx;  */
149  sad16vFunc sad16v_c;  /* mmx */
150  sad16vFunc sad32v_c;  /*
 sad16vFunc mrsad16v;  
 sad16vFunc mrsad16v_c;  
151    
152  int32_t sad8x8mean_mmx( const uint8_t * const current,  uint32_t sad16_mmx(const uint8_t * const cur,
153                                                  const uint8_t * const reference,                                  const uint8_t * const ref,
154                                                  const uint32_t stride,                                                  const uint32_t stride,
155                                                  const int mean);                                  const uint32_t best_sad);
156    
157  void sad16x8total_mmx(const uint8_t *, const uint32_t, int32_t[]);  uint32_t sad8_mmx(const uint8_t * const cur,
158                                    const uint8_t * const ref,
159                                    const uint32_t stride);
160    
161    
162    uint32_t dev16_mmx(const uint8_t * const cur,
163                                    const uint32_t stride);
164    
165    */
166    /* xmm */
167    /*
168    uint32_t sad16_xmm(const uint8_t * const cur,
169                                    const uint8_t * const ref,
170                                    const uint32_t stride,
171                                    const uint32_t best_sad);
172    
173    uint32_t sad8_xmm(const uint8_t * const cur,
174                                    const uint8_t * const ref,
175                                    const uint32_t stride);
176    
177    uint32_t dev16_xmm(const uint8_t * const cur,
178                                    const uint32_t stride);
179    */
180    
181  #endif                                                  /* _ENCODER_SAD_H_ */  #endif                                                  /* _ENCODER_SAD_H_ */

Legend:
Removed from v.1.13.2.3  
changed lines
  Added in v.1.17

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4