3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Image related header - |
* - Image related header - |
5 |
* |
* |
6 |
* Copyright(C) 2001-2003 Peter Ross <pross@xvid.org> |
* Copyright(C) 2001-2004 Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This program is free software ; you can redistribute it and/or modify |
* This program is free software ; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: image.h,v 1.12 2004-03-22 22:36:23 edgomez Exp $ |
* $Id: image.h,v 1.17 2006-10-13 07:38:09 Skal Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
66 |
uint32_t height, |
uint32_t height, |
67 |
int bs_version); |
int bs_version); |
68 |
|
|
69 |
void image_interpolate(const IMAGE * refn, |
void image_interpolate(const uint8_t * refn, |
70 |
IMAGE * refh, |
uint8_t * refh, |
71 |
IMAGE * refv, |
uint8_t * refv, |
72 |
IMAGE * refhv, |
uint8_t * refhv, |
73 |
uint32_t edged_width, |
uint32_t edged_width, |
74 |
uint32_t edged_height, |
uint32_t edged_height, |
75 |
uint32_t quarterpel, |
uint32_t quarterpel, |
108 |
int height, |
int height, |
109 |
uint32_t edged_width, |
uint32_t edged_width, |
110 |
uint8_t * dst[4], |
uint8_t * dst[4], |
111 |
uint32_t dst_stride[4], |
int dst_stride[4], |
112 |
int csp, |
int csp, |
113 |
int interlaced); |
int interlaced); |
114 |
|
|
127 |
uint32_t height); |
uint32_t height); |
128 |
|
|
129 |
void |
void |
130 |
output_slice(IMAGE * cur, int edged_width, int width, xvid_image_t* out_frm, int mbx, int mby,int mbl); |
output_slice(IMAGE * cur, int stride, int width, xvid_image_t* out_frm, int mbx, int mby,int mbl); |
131 |
|
|
132 |
|
|
133 |
void |
void |
141 |
int block, int flags); |
int block, int flags); |
142 |
|
|
143 |
|
|
144 |
|
/* helper function: deinterlace image. |
145 |
|
Only for YUV 4:2:0 planar format. Use bottom_first!=0 if main |
146 |
|
field is the bottom one. |
147 |
|
returns 1 if everything went ok, 0 otherwise. */ |
148 |
|
extern int xvid_image_deinterlace(xvid_image_t* img, int width, int height, int bottom_first); |
149 |
|
|
150 |
#endif /* _IMAGE_H_ */ |
#endif /* _IMAGE_H_ */ |