00001 /*! 00002 *************************************************************************** 00003 * \file 00004 * wp.h 00005 * 00006 * \author 00007 * Alexis Michael Tourapis 00008 * 00009 * \date 00010 * 22. February 2008 00011 * 00012 * \brief 00013 * Headerfile for weighted prediction support 00014 ************************************************************************** 00015 */ 00016 00017 #ifndef _WP_H_ 00018 #define _WP_H_ 00019 00020 #include "wp_lms.h" 00021 #include "wp_mcprec.h" 00022 #include "wp_mciter.h" 00023 00024 #define DEBUG_WP 0 00025 00026 void InitWP (ImageParameters *p_Img, InputParameters *p_Inp); 00027 00028 extern void EstimateWPBSliceAlg0(Slice *currSlice); 00029 extern void EstimateWPPSliceAlg0(Slice *currSlice, int offset); 00030 extern int TestWPPSliceAlg0 (ImageParameters *p_Img, InputParameters *p_Inp, int offset); 00031 extern int TestWPBSliceAlg0 (ImageParameters *p_Img, InputParameters *p_Inp, int method); 00032 00033 extern double ComputeImgSum (imgpel **CurrentImage, int height, int width); 00034 00035 #endif 00036