[svn] / trunk / xvidcore / src / motion / estimation.h Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/motion/estimation.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1382, Mon Mar 22 22:36:25 2004 UTC revision 1506, Sun Jul 18 11:51:44 2004 UTC
# Line 21  Line 21 
21   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
22   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
23   *   *
24   * $Id: estimation.h,v 1.2 2004-03-22 22:36:24 edgomez Exp $   * $Id: estimation.h,v 1.6 2004-07-18 11:48:08 syskin Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 47  Line 47 
47    
48  #define BITS_MULT                               16  #define BITS_MULT                               16
49    
50  #define INITIAL_SKIP_THRESH             10  #define INITIAL_SKIP_THRESH             6
51  #define FINAL_SKIP_THRESH               50  #define FINAL_SKIP_THRESH               50
52  #define MAX_SAD00_FOR_SKIP              20  #define MAX_SAD00_FOR_SKIP              20
53  #define MAX_CHROMA_SAD_FOR_SKIP 22  #define MAX_CHROMA_SAD_FOR_SKIP 22
# Line 78  Line 78 
78          int temp[4];                            /* temporary space */          int temp[4];                            /* temporary space */
79          unsigned int dir;                       /* 'direction', set when better vector is found */          unsigned int dir;                       /* 'direction', set when better vector is found */
80          int chromaX, chromaY, chromaSAD; /* info to make ChromaSAD faster */          int chromaX, chromaY, chromaSAD; /* info to make ChromaSAD faster */
         VECTOR currentQMV2;                     /* extra vector for SubpelRefine_fast */  
         int32_t iMinSAD2;                       /* extra SAD value for SubpelRefine_fast */  
81    
82          /* general fields */          /* general fields */
83          int max_dx, min_dx, max_dy, min_dy; /* maximum range */          int max_dx, min_dx, max_dy, min_dy; /* maximum range */
# Line 104  Line 102 
102          const uint8_t * b_RefP[6];      /* backward reference pictures - N, V, H, HV, cU, cV */          const uint8_t * b_RefP[6];      /* backward reference pictures - N, V, H, HV, cU, cV */
103          VECTOR bpredMV;                         /* backward prediction - used interpolate mode only */          VECTOR bpredMV;                         /* backward prediction - used interpolate mode only */
104          uint32_t bFcode;                        /* backward fcode - used as above */          uint32_t bFcode;                        /* backward fcode - used as above */
105            int b_chromaX, b_chromaY;
106    
107          /* fields for direct mode */          /* fields for direct mode */
108          VECTOR directmvF[4];            /* scaled reference vectors */          VECTOR directmvF[4];            /* scaled reference vectors */
# Line 117  Line 116 
116          unsigned int cbp[2];                                    /* CBP of the best vector found so far + cbp for inter4v search */          unsigned int cbp[2];                                    /* CBP of the best vector found so far + cbp for inter4v search */
117          const uint16_t * scan_table; /* current scan table */          const uint16_t * scan_table; /* current scan table */
118          const uint16_t * mpeg_quant_matrices;                   /* current MPEG quantization matrices */          const uint16_t * mpeg_quant_matrices;                   /* current MPEG quantization matrices */
119            int lambda[6];                          /* R-D lambdas for all 6 blocks */
120    
121  } SearchData;  } SearchData;
122    
# Line 150  Line 150 
150  MainSearchFunc xvid_me_DiamondSearch, xvid_me_AdvDiamondSearch, xvid_me_SquareSearch;  MainSearchFunc xvid_me_DiamondSearch, xvid_me_AdvDiamondSearch, xvid_me_SquareSearch;
151    
152  void  void
153  xvid_me_SubpelRefine(SearchData * const data, CheckFunc * const CheckCandidate);  xvid_me_SubpelRefine(VECTOR centerMV, SearchData * const data, CheckFunc * const CheckCandidate, int dir);
154    
155  void  void
156  SubpelRefine_Fast(SearchData * data, CheckFunc * CheckCandidate);  FullRefine_Fast(SearchData * data, CheckFunc * CheckCandidate, int direction);
157    
158  void  void
159  xvid_me_ModeDecision_RD(SearchData * const Data,  xvid_me_ModeDecision_RD(SearchData * const Data,
# Line 183  Line 183 
183                  const IMAGE * const vGMC,                  const IMAGE * const vGMC,
184                  const int coding_type);                  const int coding_type);
185    
186    void
187    ModeDecision_BVOP_RD(SearchData * const Data_d,
188                                             SearchData * const Data_b,
189                                             SearchData * const Data_f,
190                                             SearchData * const Data_i,
191                                             MACROBLOCK * const pMB,
192                                             const MACROBLOCK * const b_mb,
193                                             VECTOR * f_predMV,
194                                             VECTOR * b_predMV,
195                                             const uint32_t MotionFlags,
196                                             const MBParam * const pParam,
197                                             int x, int y);
198    
199    
200  #endif                                                  /* _ESTIMATION_H_ */  #endif                                                  /* _ESTIMATION_H_ */

Legend:
Removed from v.1382  
changed lines
  Added in v.1506

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4