Commit 303c3dad authored by Tucker DiNapoli's avatar Tucker DiNapoli Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0a731e45
...@@ -3529,16 +3529,12 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[ ...@@ -3529,16 +3529,12 @@ 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;
QP = QPptr[x>>qpHShift];
if(isColor){ c.nonBQP = nonBQPptr[x>>qpHShift];
QP= QPptr[x>>qpHShift]; if(!isColor){
c.nonBQP= nonBQPptr[x>>qpHShift];
}else{
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]]++;
} }
c.QP= QP; c.QP= QP;
#if TEMPLATE_PP_MMX #if TEMPLATE_PP_MMX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment