[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.6 - (view) (download)

1 : Isibaar 1.1 #ifndef _IMAGE_H_
2 :     #define _IMAGE_H_
3 :    
4 :     #include "../portab.h"
5 :     #include "colorspace.h"
6 :    
7 :     #define EDGE_SIZE 32
8 :    
9 :    
10 :     typedef struct
11 :     {
12 : edgomez 1.6 uint8_t *y;
13 :     uint8_t *u;
14 :     uint8_t *v;
15 :     }
16 :     IMAGE;
17 : Isibaar 1.1
18 :     void init_image(uint32_t cpu_flags);
19 :    
20 : edgomez 1.6 int32_t image_create(IMAGE * image,
21 :     uint32_t edged_width,
22 :     uint32_t edged_height);
23 :     void image_destroy(IMAGE * image,
24 :     uint32_t edged_width,
25 :     uint32_t edged_height);
26 :    
27 :     void image_swap(IMAGE * image1,
28 :     IMAGE * image2);
29 :     void image_copy(IMAGE * image1,
30 :     IMAGE * image2,
31 :     uint32_t edged_width,
32 :     uint32_t height);
33 :     void image_setedges(IMAGE * image,
34 :     uint32_t edged_width,
35 :     uint32_t edged_height,
36 :     uint32_t width,
37 :     uint32_t height,
38 :     uint32_t interlacing);
39 :     void image_interpolate(const IMAGE * refn,
40 :     IMAGE * refh,
41 :     IMAGE * refv,
42 :     IMAGE * refhv,
43 :     uint32_t edged_width,
44 :     uint32_t edged_height,
45 :     uint32_t rounding);
46 :    
47 :     float image_psnr(IMAGE * orig_image,
48 :     IMAGE * recon_image,
49 :     uint16_t stride,
50 :     uint16_t width,
51 :     uint16_t height);
52 :    
53 :    
54 :     int image_input(IMAGE * image,
55 :     uint32_t width,
56 :     int height,
57 :     uint32_t edged_width,
58 :     uint8_t * src,
59 :     int csp);
60 :    
61 :     int image_output(IMAGE * image,
62 :     uint32_t width,
63 :     int height,
64 :     uint32_t edged_width,
65 :     uint8_t * dst,
66 :     uint32_t dst_stride,
67 :     int csp);
68 :    
69 :    
70 :    
71 :     int image_dump_yuvpgm(const IMAGE * image,
72 :     const uint32_t edged_width,
73 :     const uint32_t width,
74 :     const uint32_t height,
75 :     char *filename);
76 :    
77 :     float image_mad(const IMAGE * img1,
78 :     const IMAGE * img2,
79 :     uint32_t stride,
80 :     uint32_t width,
81 :     uint32_t height);
82 : Isibaar 1.1
83 : edgomez 1.6 #endif /* _IMAGE_H_ */

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