Parent Directory
|
Revision Log
Revision 136 -
(view)
(download)
Original Path: trunk/xvidcore/src/image/image.h
1 : | Isibaar | 3 | #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 : | uint8_t * y; | ||
13 : | uint8_t * u; | ||
14 : | uint8_t * v; | ||
15 : | } IMAGE; | ||
16 : | |||
17 : | void init_image(uint32_t cpu_flags); | ||
18 : | |||
19 : | int32_t image_create(IMAGE * image, uint32_t edged_width, uint32_t edged_height); | ||
20 : | void image_destroy(IMAGE * image, uint32_t edged_width, uint32_t edged_height); | ||
21 : | |||
22 : | void image_swap(IMAGE * image1, IMAGE * image2); | ||
23 : | void image_copy(IMAGE *image1, IMAGE * image2, uint32_t edged_width, uint32_t height); | ||
24 : | h | 69 | void image_setedges(IMAGE * image, uint32_t edged_width, uint32_t edged_height, uint32_t width, uint32_t height, uint32_t interlacing); |
25 : | Isibaar | 3 | void image_interpolate(const IMAGE * refn, |
26 : | IMAGE * refh, IMAGE * refv, IMAGE * refhv, | ||
27 : | uint32_t edged_width, uint32_t edged_height, uint32_t rounding); | ||
28 : | |||
29 : | Isibaar | 112 | float image_psnr(IMAGE *orig_image, IMAGE *recon_image, |
30 : | uint16_t stride, uint16_t width, uint16_t height); | ||
31 : | |||
32 : | suxen_drol | 118 | |
33 : | Isibaar | 3 | int image_input(IMAGE * image, uint32_t width, int height, uint32_t edged_width, |
34 : | uint8_t * src, int csp); | ||
35 : | |||
36 : | int image_output(IMAGE * image, uint32_t width, int height, uint32_t edged_width, | ||
37 : | uint8_t * dst, uint32_t dst_stride, int csp); | ||
38 : | |||
39 : | suxen_drol | 118 | |
40 : | |||
41 : | suxen_drol | 136 | int image_dump_yuvpgm(const IMAGE * image, |
42 : | const uint32_t edged_width, | ||
43 : | const uint32_t width, | ||
44 : | const uint32_t height, | ||
45 : | suxen_drol | 118 | char * filename); |
46 : | |||
47 : | float image_mad(const IMAGE * img1, const IMAGE * img2, uint32_t stride, | ||
48 : | uint32_t width, uint32_t height); | ||
49 : | |||
50 : | Isibaar | 3 | #endif /* _IMAGE_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |