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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1631 - (view) (download)

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

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