[cvs] / xvidcore / src / prediction / mbprediction.h Repository:
ViewVC logotype

Diff of /xvidcore/src/prediction/mbprediction.h

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

revision 1.9, Wed Jun 12 20:38:40 2002 UTC revision 1.10, Fri Jun 28 15:14:40 2002 UTC
# Line 30  Line 30 
30   *   *
31   *************************************************************************/   *************************************************************************/
32    
33     /******************************************************************************
34      *                                                                            *
35      *  Revision history:                                                         *
36      *                                                                            *
37      *  29.06.2002 get_pmvdata() bounding                                         *
38      *                                                                            *
39      ******************************************************************************/
40    
41    
42  #ifndef _MBPREDICTION_H_  #ifndef _MBPREDICTION_H_
43  #define _MBPREDICTION_H_  #define _MBPREDICTION_H_
44    
# Line 70  Line 79 
79                                    int16_t qcoeff[64],                                    int16_t qcoeff[64],
80                                    uint32_t current_quant,                                    uint32_t current_quant,
81                                    int32_t iDcScaler,                                    int32_t iDcScaler,
82                                    int16_t predictors[8]);                                    int16_t predictors[8],
83                                    const unsigned int bound_x,
84                                    const unsigned int bound_y);
85    
86    
87  /* get_pmvdata returns the median predictor and nothing else */  /* get_pmvdata returns the median predictor and nothing else */
88    
# Line 206  Line 218 
218                          const uint32_t x_dim,                          const uint32_t x_dim,
219                          const uint32_t block,                          const uint32_t block,
220                          VECTOR * const pmv,                          VECTOR * const pmv,
221                          int32_t * const psad)                          int32_t * const psad,
222                            const unsigned int bound_x,
223                            const unsigned int bound_y)
224  {  {
225    
226          /*          /*
# Line 230  Line 244 
244          const VECTOR zeroMV = { 0, 0 };          const VECTOR zeroMV = { 0, 0 };
245    
246          // first row of blocks (special case)          // first row of blocks (special case)
247          if (y == 0 && (block == 0 || block == 1)) {          /* if (y == 0 && (block == 0 || block == 1)) { */
248                  if ((x == 0) && (block == 0))   // first column, first block          if (((y == bound_y && x >= bound_x) || (y == bound_y + 1 && x < bound_x))
249                    && (block == 0 || block == 1)) {
250    
251                    /* if ((x == 0) && (block == 0)) */     // first column, first block
252                    if ((x == 0 || (y == bound_y && x == bound_x)) && (block == 0)) // first column, first block
253                  {                  {
254                          pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV;                          pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV;
255                          psad[0] = 0;                          psad[0] = 0;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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