--- estimation.h 2004/12/08 12:43:48 1.9 +++ estimation.h 2005/12/09 05:07:31 1.12.2.1 @@ -21,7 +21,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: estimation.h,v 1.9 2004/12/08 12:43:48 syskin Exp $ + * $Id: estimation.h,v 1.12.2.1 2005/12/09 05:07:31 syskin Exp $ * ****************************************************************************/ @@ -40,8 +40,9 @@ #define MV16_INTER_BIAS 450 /* vector map (vlc delta size) smoother parameters ! float !*/ -#define NEIGH_TEND_16X16 10.5 -#define NEIGH_TEND_8X8 40.0 +#define NEIGH_TEND_16X16 0.6 +#define NEIGH_TEND_8X8 1.5 + #define NEIGH_8X8_BIAS 40 #define BITS_MULT 16 @@ -114,6 +115,7 @@ const uint16_t * scan_table; /* current scan table */ const uint16_t * mpeg_quant_matrices; /* current MPEG quantization matrices */ int lambda[6]; /* R-D lambdas for all 6 blocks */ + unsigned int quant_sq; /* quant squared - saves many multiplications in VHQ */ } SearchData; @@ -191,7 +193,8 @@ VECTOR * b_predMV, const uint32_t MotionFlags, const MBParam * const pParam, - int x, int y); + int x, int y, + int best_sad); unsigned int getMinFcode(const int MVmax);