postproc: Removed unecessary if/else branch when getting QP.

There's still an if, as QP needs to be modified if isColor=0, but it
still removes a unecessary branch.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Tucker DiNapoli
2015-03-27 16:51:43 -04:00
committed by Michael Niedermayer
parent 0a731e4596
commit 303c3dada2

View File

@@ -3529,14 +3529,10 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
for(x = startx; x < endx; x+=BLOCK_SIZE){ for(x = startx; x < endx; x+=BLOCK_SIZE){
const int stride= dstStride; const int stride= dstStride;
if(isColor){
QP = QPptr[x>>qpHShift]; QP = QPptr[x>>qpHShift];
c.nonBQP = nonBQPptr[x>>qpHShift]; c.nonBQP = nonBQPptr[x>>qpHShift];
}else{ if(!isColor){
QP= QPptr[x>>4];
QP= (QP* QPCorrecture + 256*128)>>16; QP= (QP* QPCorrecture + 256*128)>>16;
c.nonBQP= nonBQPptr[x>>4];
c.nonBQP= (c.nonBQP* QPCorrecture + 256*128)>>16; c.nonBQP= (c.nonBQP* QPCorrecture + 256*128)>>16;
yHistogram[srcBlock[srcStride*12 + 4]]++; yHistogram[srcBlock[srcStride*12 + 4]]++;
} }