--- estimation.h 2004/12/05 04:53:01 1.7 +++ estimation.h 2004/12/17 15:42:35 1.11 @@ -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.7 2004/12/05 04:53:01 syskin Exp $ + * $Id: estimation.h,v 1.11 2004/12/17 15:42:35 syskin Exp $ * ****************************************************************************/ @@ -30,7 +30,6 @@ #include "../portab.h" #include "../global.h" -#include "../image/reduced.h" /* hard coded motion search parameters */ @@ -69,6 +68,8 @@ typedef struct { + int max_dx, min_dx, max_dy, min_dy; /* maximum search range */ + /* data modified by CheckCandidates */ int32_t iMinSAD[5]; /* smallest SADs found so far */ VECTOR currentMV[5]; /* best vectors found so far */ @@ -78,7 +79,6 @@ int chromaX, chromaY, chromaSAD; /* info to make ChromaSAD faster */ /* general fields */ - int max_dx, min_dx, max_dy, min_dy; /* maximum range */ uint32_t rounding; /* rounding type in use */ VECTOR predMV; /* vector which predicts current vector */ const uint8_t * RefP[6]; /* reference pictures - N, V, H, HV, cU, cV */ @@ -114,6 +114,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 +192,10 @@ 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); #endif /* _ESTIMATION_H_ */