[cvs] / xvidcore / src / image / colorspace.h Repository:
ViewVC logotype

Diff of /xvidcore/src/image/colorspace.h

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

revision 1.2, Sat Apr 13 16:30:02 2002 UTC revision 1.4, Sun Nov 17 00:20:30 2002 UTC
# Line 1  Line 1 
1    /*****************************************************************************
2     *
3     *  XVID MPEG4 Codec
4     *  - Colorspace functions - header files
5     *
6     *  This file is part of XviD, a free MPEG-4 video encoder/decoder
7     *
8     *  XviD is free software; you can redistribute it and/or modify it
9     *  under the terms of the GNU General Public License as published by
10     *  the Free Software Foundation; either version 2 of the License, or
11     *  (at your option) any later version.
12     *
13     *  This program is distributed in the hope that it will be useful,
14     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     *  GNU General Public License for more details.
17     *
18     *  You should have received a copy of the GNU General Public License
19     *  along with this program; if not, write to the Free Software
20     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21     *
22     *  Under section 8 of the GNU General Public License, the copyright
23     *  holders of XVID explicitly forbid distribution in the following
24     *  countries:
25     *
26     *    - Japan
27     *    - United States of America
28     *
29     *  Linking XviD statically or dynamically with other modules is making a
30     *  combined work based on XviD.  Thus, the terms and conditions of the
31     *  GNU General Public License cover the whole combination.
32     *
33     *  As a special exception, the copyright holders of XviD give you
34     *  permission to link XviD with independent modules that communicate with
35     *  XviD solely through the VFW1.1 and DShow interfaces, regardless of the
36     *  license terms of these independent modules, and to copy and distribute
37     *  the resulting combined work under terms of your choice, provided that
38     *  every copy of the combined work is accompanied by a complete copy of
39     *  the source code of XviD (the version of XviD used to produce the
40     *  combined work), being distributed under the terms of the GNU General
41     *  Public License plus this exception.  An independent module is a module
42     *  which is not derived from or based on XviD.
43     *
44     *  Note that people who make modified versions of XviD are not obligated
45     *  to grant this special exception for their modified versions; it is
46     *  their choice whether to do so.  The GNU General Public License gives
47     *  permission to release a modified version without this exception; this
48     *  exception also makes it possible to release a modified version which
49     *  carries forward this exception.
50     *
51     * $Id$
52     *
53     ****************************************************************************/
54    
55  #ifndef _COLORSPACE_H  #ifndef _COLORSPACE_H
56    
57  #define _COLORSPACE_H  #define _COLORSPACE_H
58    
59  #include "../portab.h"  #include "../portab.h"
# Line 11  Line 66 
66    
67  /* input color conversion functions (encoder) */  /* input color conversion functions (encoder) */
68    
69  typedef void (color_inputFunc)(uint8_t *y_out, uint8_t *u_out, uint8_t *v_out,  typedef void (color_inputFunc) (uint8_t * y_out,
70                                                          uint8_t *src, int width, int height, int stride);                                                                  uint8_t * u_out,
71                                                                    uint8_t * v_out,
72                                                                    uint8_t * src,
73                                                                    int width,
74                                                                    int height,
75                                                                    int stride);
76    
77  typedef color_inputFunc *color_inputFuncPtr;  typedef color_inputFunc *color_inputFuncPtr;
78    
# Line 46  Line 106 
106    
107  /* output color conversion functions (decoder) */  /* output color conversion functions (decoder) */
108    
109  typedef void (color_outputFunc)(uint8_t *dst, int dst_stride,  typedef void (color_outputFunc) (uint8_t * dst,
110                                                           uint8_t *y_src, uint8_t *v_src,                                                                   int dst_stride,
111                                                           uint8_t * u_src, int y_stride,                                                                   uint8_t * y_src,
112                                                           int uv_stride, int width, int height);                                                                   uint8_t * v_src,
113                                                                     uint8_t * u_src,
114                                                                     int y_stride,
115                                                                     int uv_stride,
116                                                                     int width,
117                                                                     int height);
118    
119  typedef color_outputFunc* color_outputFuncPtr;  typedef color_outputFunc* color_outputFuncPtr;
120    
# Line 79  Line 144 
144  color_outputFunc yv12_to_uyvy_mmx;  color_outputFunc yv12_to_uyvy_mmx;
145    
146    
147  void user_to_yuv_c(uint8_t *y_out, uint8_t *u_out, uint8_t *v_out, int stride,  void user_to_yuv_c(uint8_t * y_out,
148                                       uint8_t * u_out,
149                                       uint8_t * v_out,
150                                       int stride,
151                                     DEC_PICTURE * picture,                                     DEC_PICTURE * picture,
152                                     int width, int height);                                     int width,
153                                       int height);
154    
155  #endif /* _COLORSPACE_H_ */  #endif /* _COLORSPACE_H_ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

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