Use & 0xff instead of WELS_CLIP3(, 0, 255)
This speeds up the whole EncoderInterfaceTest to about double the speed from before.
This commit is contained in:
parent
45c322a8ae
commit
deefdcee10
@ -90,7 +90,7 @@ void EncoderInterfaceTest::PrepareOneSrcFrame() {
|
||||
if ((i % 256) == 0)
|
||||
pYUV[i] = rand() % 256;
|
||||
else
|
||||
pYUV[i] = WELS_CLIP3 (pYUV[i - 1] + (rand() % 3) - 1, 0, 255);
|
||||
pYUV[i] = (pYUV[i - 1] + (rand() % 3) - 1) & 0xff;
|
||||
}
|
||||
pSrcPic->iStride[0] = m_iWidth;
|
||||
pSrcPic->iStride[1] = pSrcPic->iStride[2] = pSrcPic->iStride[0] >> 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user