overlay: Fix min decimation for width outside limits
Minimum decimation applied is a raw value, rather a log value should be used. Change-Id: Ie05dd09bddf66dbade49875ce6d903c11fe9d58c
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
453e7745a5
commit
dbbf2aa037
@@ -280,10 +280,11 @@ void getDecimationFactor(const int& src_w, const int& src_h,
|
||||
if(src_w > (int) mdpHw.getMaxPipeWidth()) {
|
||||
//If the client sends us something > what a layer mixer supports
|
||||
//then it means it doesn't want to use split-pipe but wants us to
|
||||
//decimate. A minimum decimation of 2 will ensure that the width is
|
||||
//decimate. A minimum decimation of 1 will ensure that the width is
|
||||
//always within layer mixer limits.
|
||||
if(horzDeci < 2)
|
||||
horzDeci = 2;
|
||||
const uint8_t minDeci = 1;
|
||||
if(horzDeci < minDeci)
|
||||
horzDeci = minDeci;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user