3 |
|
|
4 |
#include "../portab.h" |
#include "../portab.h" |
5 |
#include "colorspace.h" |
#include "colorspace.h" |
6 |
|
#include "../xvid.h" |
7 |
|
|
8 |
#define EDGE_SIZE 32 |
#define EDGE_SIZE 64 |
9 |
|
|
10 |
|
|
11 |
typedef struct |
typedef struct |
18 |
|
|
19 |
void init_image(uint32_t cpu_flags); |
void init_image(uint32_t cpu_flags); |
20 |
|
|
21 |
|
|
22 |
|
static void __inline |
23 |
|
image_null(IMAGE * image) |
24 |
|
{ |
25 |
|
image->y = image->u = image->v = NULL; |
26 |
|
} |
27 |
|
|
28 |
int32_t image_create(IMAGE * image, |
int32_t image_create(IMAGE * image, |
29 |
uint32_t edged_width, |
uint32_t edged_width, |
30 |
uint32_t edged_height); |
uint32_t edged_height); |
42 |
uint32_t edged_width, |
uint32_t edged_width, |
43 |
uint32_t edged_height, |
uint32_t edged_height, |
44 |
uint32_t width, |
uint32_t width, |
45 |
uint32_t height, |
uint32_t height); |
|
uint32_t interlacing); |
|
46 |
void image_interpolate(const IMAGE * refn, |
void image_interpolate(const IMAGE * refn, |
47 |
IMAGE * refh, |
IMAGE * refh, |
48 |
IMAGE * refv, |
IMAGE * refv, |
49 |
IMAGE * refhv, |
IMAGE * refhv, |
50 |
uint32_t edged_width, |
uint32_t edged_width, |
51 |
uint32_t edged_height, |
uint32_t edged_height, |
52 |
|
uint32_t quarterpel, |
53 |
uint32_t rounding); |
uint32_t rounding); |
54 |
|
|
55 |
float image_psnr(IMAGE * orig_image, |
float image_psnr(IMAGE * orig_image, |
64 |
int height, |
int height, |
65 |
uint32_t edged_width, |
uint32_t edged_width, |
66 |
uint8_t * src, |
uint8_t * src, |
67 |
int csp); |
int src_stride, |
68 |
|
int csp, |
69 |
|
int interlaced); |
70 |
|
|
71 |
int image_output(IMAGE * image, |
int image_output(IMAGE * image, |
72 |
uint32_t width, |
uint32_t width, |
74 |
uint32_t edged_width, |
uint32_t edged_width, |
75 |
uint8_t * dst, |
uint8_t * dst, |
76 |
uint32_t dst_stride, |
uint32_t dst_stride, |
77 |
int csp); |
int csp, |
78 |
|
int interlaced); |
79 |
|
|
80 |
|
|
81 |
|
|
91 |
uint32_t width, |
uint32_t width, |
92 |
uint32_t height); |
uint32_t height); |
93 |
|
|
94 |
|
void |
95 |
|
output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl); |
96 |
|
|
97 |
#endif /* _IMAGE_H_ */ |
#endif /* _IMAGE_H_ */ |