Ticket #495: HM-6.0-ALF.patch

File HM-6.0-ALF.patch, 1.9 KB (added by madhukar, 10 years ago)

Patch on top of HM-6.0

  • source/Lib/TLibCommon/TComAdaptiveLoopFilter.cpp

     
    35413541
    35423542      pixelInt += coef[1]* (imgPad3[j  ] + imgPad4[j  ]);
    35433543
    3544       pixelInt += coef[2]* (imgPad1[j-1] + imgPad2[j+1]);
     3544      pixelInt += coef[2]* (imgPad1[j+1] + imgPad2[j-1]);
    35453545      pixelInt += coef[3]* (imgPad1[j  ] + imgPad2[j  ]);
    3546       pixelInt += coef[4]* (imgPad1[j+1] + imgPad2[j-1]);
     3546      pixelInt += coef[4]* (imgPad1[j-1] + imgPad2[j+1]);
    35473547
    35483548      pixelInt += coef[5]* (imgPad[j+4] + imgPad[j-4]);
    35493549      pixelInt += coef[6]* (imgPad[j+3] + imgPad[j-3]);
  • source/Lib/TLibEncoder/TEncAdaptiveLoopFilter.cpp

     
    28132813
    28142814      ELocal[1] = (imgPad3[j] + imgPad4[j]);
    28152815
    2816       ELocal[2] = (imgPad1[j-1] + imgPad2[j+1]);
     2816      ELocal[2] = (imgPad1[j+1] + imgPad2[j-1]);
    28172817      ELocal[3] = (imgPad1[j  ] + imgPad2[j  ]);
    2818       ELocal[4] = (imgPad1[j+1] + imgPad2[j-1]);
     2818      ELocal[4] = (imgPad1[j-1] + imgPad2[j+1]);
    28192819
    28202820      ELocal[5] = (imgPad[j+4] + imgPad[j-4]);
    28212821      ELocal[6] = (imgPad[j+3] + imgPad[j-3]);
     
    29322932        ELocal[0] = (imgPad5[j] + imgPad6[j]);
    29332933        ELocal[1] = (imgPad3[j] + imgPad4[j]);
    29342934
    2935         ELocal[2] = (imgPad1[j-1] + imgPad2[j+1]);
     2935        ELocal[2] = (imgPad1[j+1] + imgPad2[j-1]);
    29362936        ELocal[3] = (imgPad1[j  ] + imgPad2[j  ]);
    2937         ELocal[4] = (imgPad1[j+1] + imgPad2[j-1]);
     2937        ELocal[4] = (imgPad1[j-1] + imgPad2[j+1]);
    29382938
    29392939        ELocal[5] = (imgPad[j+4] + imgPad[j-4]);
    29402940        ELocal[6] = (imgPad[j+3] + imgPad[j-3]);