Ticket #38: fix_38.cpp

File fix_38.cpp, 826 bytes (added by skanumuri@…, 14 years ago)

Suggested fix indicated with macro BUGFIX_38

Line 
1class DistParam
2{
3public:
4  Pel*  pOrg;
5  Pel*  pCur;
6  Int   iStrideOrg;
7  Int   iStrideCur;
8  Int   iRows;
9  Int   iCols;
10  Int   iStep;
11  FpDistFunc DistFunc;
12#ifdef ROUNDING_CONTROL
13  FpDistFuncRnd DistFuncRnd;
14#endif
15
16#ifndef BUGFIX_38
17  // for DF_YUV_SAD
18  Pel*  pCbOrg;
19  Pel*  pCbCur;
20  Pel*  pCrOrg;
21  Pel*  pCrCur;
22#endif
23
24  // (vertical) subsampling shift (for reducing complexity)
25  // - 0 = no subsampling, 1 = even rows, 2 = every 4th, etc.
26  Int   iSubShift;
27
28#ifdef BUGFIX_38
29  DistParam()
30  {
31    pOrg        = NULL;
32    pCur        = NULL;
33    iStrideOrg  = 0;
34    iStrideCur  = 0;
35    iRows       = 0;
36    iCols       = 0;
37    iStep       = 1;
38    iSubShift   = 0;
39
40    DistFunc    = NULL;
41#ifdef ROUNDING_CONTROL
42    DistFuncRnd = NULL;
43#endif
44  }
45#endif
46};
47