1 |
#ifndef _IMAGE_H_ |
#ifndef _IMAGE_H_ |
2 |
#define _IMAGE_H_ |
#define _IMAGE_H_ |
3 |
|
|
4 |
|
#include <stdlib.h> |
5 |
|
|
6 |
#include "../portab.h" |
#include "../portab.h" |
7 |
#include "../global.h" |
#include "../global.h" |
8 |
#include "colorspace.h" |
#include "colorspace.h" |
28 |
|
|
29 |
void image_swap(IMAGE * image1, |
void image_swap(IMAGE * image1, |
30 |
IMAGE * image2); |
IMAGE * image2); |
31 |
|
|
32 |
void image_copy(IMAGE * image1, |
void image_copy(IMAGE * image1, |
33 |
IMAGE * image2, |
IMAGE * image2, |
34 |
uint32_t edged_width, |
uint32_t edged_width, |
35 |
uint32_t height); |
uint32_t height); |
36 |
|
|
37 |
void image_setedges(IMAGE * image, |
void image_setedges(IMAGE * image, |
38 |
uint32_t edged_width, |
uint32_t edged_width, |
39 |
uint32_t edged_height, |
uint32_t edged_height, |
40 |
uint32_t width, |
uint32_t width, |
41 |
uint32_t height); |
uint32_t height); |
42 |
|
|
43 |
void image_interpolate(const IMAGE * refn, |
void image_interpolate(const IMAGE * refn, |
44 |
IMAGE * refh, |
IMAGE * refh, |
45 |
IMAGE * refv, |
IMAGE * refv, |
56 |
uint16_t height); |
uint16_t height); |
57 |
|
|
58 |
|
|
59 |
|
float sse_to_PSNR(long sse, int pixels); |
60 |
|
|
61 |
|
long plane_sse(uint8_t * orig, |
62 |
|
uint8_t * recon, |
63 |
|
uint16_t stride, |
64 |
|
uint16_t width, |
65 |
|
uint16_t height); |
66 |
|
|
67 |
void |
void |
68 |
image_chroma_optimize(IMAGE * img, int width, int height, int edged_width); |
image_chroma_optimize(IMAGE * img, int width, int height, int edged_width); |
69 |
|
|
105 |
|
|
106 |
|
|
107 |
void |
void |
108 |
|
image_clear(IMAGE * img, int width, int height, int edged_width, |
109 |
|
int y, int u, int v); |
110 |
|
|
111 |
|
|
112 |
|
void |
113 |
image_deblock_rrv(IMAGE * img, int edgeg_width, |
image_deblock_rrv(IMAGE * img, int edgeg_width, |
114 |
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride); |
const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, |
115 |
|
int block, int flags); |
116 |
|
|
117 |
|
|
118 |
#endif /* _IMAGE_H_ */ |
#endif /* _IMAGE_H_ */ |