2 |
#define _IMAGE_H_ |
#define _IMAGE_H_ |
3 |
|
|
4 |
#include "../portab.h" |
#include "../portab.h" |
5 |
|
#include "../global.h" |
6 |
#include "colorspace.h" |
#include "colorspace.h" |
7 |
#include "../xvid.h" |
#include "../xvid.h" |
8 |
|
|
9 |
#define EDGE_SIZE 32 |
#define EDGE_SIZE 64 |
10 |
|
|
11 |
|
void init_image(uint32_t cpu_flags); |
12 |
|
|
13 |
|
|
14 |
typedef struct |
static void __inline |
15 |
|
image_null(IMAGE * image) |
16 |
{ |
{ |
17 |
uint8_t *y; |
image->y = image->u = image->v = NULL; |
|
uint8_t *u; |
|
|
uint8_t *v; |
|
18 |
} |
} |
|
IMAGE; |
|
|
|
|
|
void init_image(uint32_t cpu_flags); |
|
19 |
|
|
20 |
int32_t image_create(IMAGE * image, |
int32_t image_create(IMAGE * image, |
21 |
uint32_t edged_width, |
uint32_t edged_width, |
34 |
uint32_t edged_width, |
uint32_t edged_width, |
35 |
uint32_t edged_height, |
uint32_t edged_height, |
36 |
uint32_t width, |
uint32_t width, |
37 |
uint32_t height, |
uint32_t height); |
|
uint32_t interlacing); |
|
38 |
void image_interpolate(const IMAGE * refn, |
void image_interpolate(const IMAGE * refn, |
39 |
IMAGE * refh, |
IMAGE * refh, |
40 |
IMAGE * refv, |
IMAGE * refv, |
41 |
IMAGE * refhv, |
IMAGE * refhv, |
42 |
uint32_t edged_width, |
uint32_t edged_width, |
43 |
uint32_t edged_height, |
uint32_t edged_height, |
44 |
|
uint32_t quarterpel, |
45 |
uint32_t rounding); |
uint32_t rounding); |
46 |
|
|
47 |
float image_psnr(IMAGE * orig_image, |
float image_psnr(IMAGE * orig_image, |
56 |
int height, |
int height, |
57 |
uint32_t edged_width, |
uint32_t edged_width, |
58 |
uint8_t * src, |
uint8_t * src, |
59 |
int csp); |
int src_stride, |
60 |
|
int csp, |
61 |
|
int interlaced); |
62 |
|
|
63 |
int image_output(IMAGE * image, |
int image_output(IMAGE * image, |
64 |
uint32_t width, |
uint32_t width, |
66 |
uint32_t edged_width, |
uint32_t edged_width, |
67 |
uint8_t * dst, |
uint8_t * dst, |
68 |
uint32_t dst_stride, |
uint32_t dst_stride, |
69 |
int csp); |
int csp, |
70 |
|
int interlaced); |
71 |
|
|
72 |
|
|
73 |
|
|
86 |
void |
void |
87 |
output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl); |
output_slice(IMAGE * cur, int edged_width, int width, XVID_DEC_PICTURE* out_frm, int mbx, int mby,int mbl); |
88 |
|
|
89 |
|
|
90 |
|
void |
91 |
|
image_deblock_rrv(IMAGE * img, int edgeg_width, |
92 |
|
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride); |
93 |
|
|
94 |
|
|
95 |
#endif /* _IMAGE_H_ */ |
#endif /* _IMAGE_H_ */ |