--- image.h 2004/02/16 03:40:07 1.11.2.4 +++ image.h 2010/11/28 15:18:21 1.18 @@ -3,7 +3,7 @@ * XVID MPEG-4 VIDEO CODEC * - Image related header - * - * Copyright(C) 2001-2003 Peter Ross + * Copyright(C) 2001-2010 Peter Ross * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: image.h,v 1.11.2.4 2004/02/16 03:40:07 syskin Exp $ + * $Id: image.h,v 1.18 2010/11/28 15:18:21 Isibaar Exp $ * ****************************************************************************/ @@ -66,10 +66,10 @@ uint32_t height, int bs_version); -void image_interpolate(const IMAGE * refn, - IMAGE * refh, - IMAGE * refv, - IMAGE * refhv, +void image_interpolate(const uint8_t * refn, + uint8_t * refh, + uint8_t * refv, + uint8_t * refhv, uint32_t edged_width, uint32_t edged_height, uint32_t quarterpel, @@ -108,7 +108,7 @@ int height, uint32_t edged_width, uint8_t * dst[4], - uint32_t dst_stride[4], + int dst_stride[4], int csp, int interlaced); @@ -127,7 +127,7 @@ uint32_t height); void -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); void @@ -135,10 +135,19 @@ int y, int u, int v); +void image_block_variance(IMAGE * orig_image, uint16_t stride, MACROBLOCK *mbs, + uint16_t mb_width, uint16_t mb_height); + void -image_deblock_rrv(IMAGE * img, int edgeg_width, +image_deblock_rrv(IMAGE * img, int edged_width, const MACROBLOCK * mbs, int mb_width, int mb_height, int mb_stride, int block, int flags); + /* helper function: deinterlace image. + Only for YUV 4:2:0 planar format. Use bottom_first!=0 if main + field is the bottom one. + returns 1 if everything went ok, 0 otherwise. */ +extern int xvid_image_deinterlace(xvid_image_t* img, int width, int height, int bottom_first); + #endif /* _IMAGE_H_ */