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

Annotation of /xvidcore/src/image/image.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11.2.3 - (view) (download)

1 : edgomez 1.11.2.2 /*****************************************************************************
2 :     *
3 :     * XVID MPEG-4 VIDEO CODEC
4 :     * - Image related header -
5 :     *
6 :     * Copyright(C) 2001-2003 Peter Ross <pross@xvid.org>
7 :     *
8 :     * This program is free software ; you can redistribute it and/or modify
9 :     * it 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 :     * $Id$
23 :     *
24 :     ****************************************************************************/
25 :    
26 : Isibaar 1.1 #ifndef _IMAGE_H_
27 :     #define _IMAGE_H_
28 :    
29 : edgomez 1.11 #include <stdlib.h>
30 :    
31 : Isibaar 1.1 #include "../portab.h"
32 : edgomez 1.11 #include "../global.h"
33 : Isibaar 1.1 #include "colorspace.h"
34 : albeu 1.7 #include "../xvid.h"
35 : Isibaar 1.1
36 : edgomez 1.11 #define EDGE_SIZE 64
37 : Isibaar 1.1
38 : edgomez 1.11 void init_image(uint32_t cpu_flags);
39 : Isibaar 1.1
40 : edgomez 1.11
41 :     static void __inline
42 :     image_null(IMAGE * image)
43 : Isibaar 1.1 {
44 : edgomez 1.11 image->y = image->u = image->v = NULL;
45 : edgomez 1.6 }
46 : Isibaar 1.1
47 : edgomez 1.6 int32_t image_create(IMAGE * image,
48 :     uint32_t edged_width,
49 :     uint32_t edged_height);
50 :     void image_destroy(IMAGE * image,
51 :     uint32_t edged_width,
52 :     uint32_t edged_height);
53 :    
54 :     void image_swap(IMAGE * image1,
55 :     IMAGE * image2);
56 : edgomez 1.11.2.3
57 : edgomez 1.6 void image_copy(IMAGE * image1,
58 :     IMAGE * image2,
59 :     uint32_t edged_width,
60 :     uint32_t height);
61 : edgomez 1.11.2.3
62 : edgomez 1.6 void image_setedges(IMAGE * image,
63 :     uint32_t edged_width,
64 :     uint32_t edged_height,
65 :     uint32_t width,
66 : h 1.9 uint32_t height);
67 : edgomez 1.11.2.3
68 : edgomez 1.6 void image_interpolate(const IMAGE * refn,
69 :     IMAGE * refh,
70 :     IMAGE * refv,
71 :     IMAGE * refhv,
72 :     uint32_t edged_width,
73 :     uint32_t edged_height,
74 : edgomez 1.11 uint32_t quarterpel,
75 : edgomez 1.6 uint32_t rounding);
76 :    
77 :     float image_psnr(IMAGE * orig_image,
78 :     IMAGE * recon_image,
79 :     uint16_t stride,
80 :     uint16_t width,
81 :     uint16_t height);
82 :    
83 :    
84 : edgomez 1.11 float sse_to_PSNR(long sse, int pixels);
85 :    
86 :     long plane_sse(uint8_t * orig,
87 :     uint8_t * recon,
88 :     uint16_t stride,
89 :     uint16_t width,
90 :     uint16_t height);
91 :    
92 :     void
93 :     image_chroma_optimize(IMAGE * img, int width, int height, int edged_width);
94 :    
95 :    
96 : edgomez 1.6 int image_input(IMAGE * image,
97 :     uint32_t width,
98 :     int height,
99 :     uint32_t edged_width,
100 : suxen_drol 1.11.2.1 uint8_t * src[4],
101 :     int src_stride[4],
102 : edgomez 1.11 int csp,
103 :     int interlaced);
104 : edgomez 1.6
105 :     int image_output(IMAGE * image,
106 :     uint32_t width,
107 :     int height,
108 :     uint32_t edged_width,
109 : suxen_drol 1.11.2.1 uint8_t * dst[4],
110 :     uint32_t dst_stride[4],
111 : edgomez 1.11 int csp,
112 :     int interlaced);
113 : edgomez 1.6
114 :    
115 :    
116 :     int image_dump_yuvpgm(const IMAGE * image,
117 :     const uint32_t edged_width,
118 :     const uint32_t width,
119 :     const uint32_t height,
120 :     char *filename);
121 :    
122 :     float image_mad(const IMAGE * img1,
123 :     const IMAGE * img2,
124 :     uint32_t stride,
125 :     uint32_t width,
126 :     uint32_t height);
127 : albeu 1.7
128 : suxen_drol 1.8 void
129 : suxen_drol 1.11.2.1 output_slice(IMAGE * cur, int edged_width, int width, xvid_image_t* out_frm, int mbx, int mby,int mbl);
130 : edgomez 1.11
131 :    
132 :     void
133 :     image_clear(IMAGE * img, int width, int height, int edged_width,
134 :     int y, int u, int v);
135 :    
136 :    
137 :     void
138 :     image_deblock_rrv(IMAGE * img, int edgeg_width,
139 :     const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride,
140 :     int block, int flags);
141 :    
142 : Isibaar 1.1
143 : edgomez 1.6 #endif /* _IMAGE_H_ */

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