diff --git a/source/Lib/CommonLib/NNSuperResolution.cpp b/source/Lib/CommonLib/NNSuperResolution.cpp index 1e202e231c5bfb11af2c028cb76b687befff8a48..11528ebe8cbfc7c0ab830ab2e502f8e9ba581bb8 100644 --- a/source/Lib/CommonLib/NNSuperResolution.cpp +++ b/source/Lib/CommonLib/NNSuperResolution.cpp @@ -253,11 +253,10 @@ void NNSuperResolution::CNNSRProcess(const CPelUnitBuf &recBuf, const PelUnitBuf { int id_x = ((pix_x + xx) << 1) + kk % 2; int id_y = ((pix_y + yy) << 1) + kk / 2; +#if NN_FIXED_POINT_IMPLEMENTATION int pos_x = pix_x - st_w + xx; int pos_y = pix_y - st_h + yy; - -#if NN_FIXED_POINT_IMPLEMENTATION cnnBuf.get(COMPONENT_Y).at(id_x, id_y) = Pel(Clip3<int>(0, maxValue, int(m_SRYModel[sliceType == I_SLICE ? 0 : 1].result(0)(0, pos_y, pos_x, kk) + (rprBuf.get(COMPONENT_Y).at(id_x, id_y) << in_left_shift)) >> out_left_shift)); #else cnnBuf.get(COMPONENT_Y).at(id_x, id_y) = Pel(Clip3<int>(0, maxValue, int((m_SRYModel[sliceType == I_SLICE ? 0 : 1].result(0)(0, (id_y - st_h) >> 1, (id_x - st_w) >> 1, kk) + (rprBuf.get(COMPONENT_Y).at(id_x, id_y) / maxValue)) * maxValue + 0.5)));