Parent Directory | Revision Log
Revision 112 - (view) (download)
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 : | Isibaar | 3 | int image_input(IMAGE * image, uint32_t width, int height, uint32_t edged_width, |
33 : | uint8_t * src, int csp); | ||
34 : | |||
35 : | int image_output(IMAGE * image, uint32_t width, int height, uint32_t edged_width, | ||
36 : | uint8_t * dst, uint32_t dst_stride, int csp); | ||
37 : | |||
38 : | #endif /* _IMAGE_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |