Fix minor errors in frame difference modules
This commit is contained in:
1 parent
d7e54c059c
commit
eaec5c22ab
2 files changed
+4
-4
No files matched your search
@@ -65,9 +65,9 @@ PlaYUVerFrame* FrameDifference9Bits::process( std::vector<PlaYUVerFrame*> apcFra
|
||||
aux_pel_1 = *pInput1PelYUV++;
|
||||
aux_pel_2 = *pInput2PelYUV++;
|
||||
diff = aux_pel_1 - aux_pel_2;
|
||||
diff = std::min( diff, m_iMaxDiffValue );
|
||||
diff = std::min( diff, m_iMaxDiffValue - 1 );
|
||||
diff = std::max( diff, -m_iMaxDiffValue );
|
||||
diff += m_iMaxDiffValue + 1;
|
||||
diff += m_iMaxDiffValue;
|
||||
*pOutputPelYUV++ = diff;
|
||||
}
|
||||
return m_pcFrameDifference9Bits;
|
||||
|
||||
Reference in new issue
Block a user