Skip to content
Snippets Groups Projects
Commit 2d9b9a3d2cdf authored by Aleksandr Bakhshiev's avatar Aleksandr Bakhshiev
Browse files

Fixed some bugs & performance warinigs

--HG--
branch : Debug
parent befe822bc615
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ bool UBADifferenceFrameSimple::BCalculate(UBitmap &input, UBitmap &deduction, UB
for(j=0; j<Width; j++)
{
bdif = *reinterpret_cast<unsigned*>(bufdata)
- *reinterpret_cast<unsigned*>(*bufded);
- *reinterpret_cast<unsigned*>(bufded);
*reinterpret_cast<unsigned*>(buf) = (bdif<0)?-bdif:bdif;
buf+=4; bufdata+=4; bufded+=4;
}
......
......@@ -198,8 +198,6 @@ bool UBALoopingSimple::BCalculate(UBitmap &input, UBitmap &output)
for(i=0;i<Length;i++,pData+=4,ptData+=4)
{
unsigned int &tc=*reinterpret_cast<unsigned*>(ptData);
tc=0;
b=*reinterpret_cast<unsigned*>(pData);
tc=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment