liboverlay: Set overlay src format for tiled input
Rotator always outputs non-tiled formats. For tiled inputs,if rotation occurs, set overlay's input to non-tiled format. CRs-fixed: 278408 Change-Id: I20e8a4109903f3162aa80f94a8c90ecd70e15772
This commit is contained in:
parent
95c239e6be
commit
16b703db64
@ -1052,8 +1052,15 @@ bool OverlayControlChannel::setParameter(int param, int value, bool fetch) {
|
||||
mOVInfo.user_data[0] = mdp_rotation;
|
||||
mRotInfo.rotations = mOVInfo.user_data[0];
|
||||
|
||||
if (mOVInfo.user_data[0])
|
||||
/* Rotator always outputs non-tiled formats.
|
||||
If rotator is used, set Overlay input to non-tiled
|
||||
Else, overlay input remains tiled */
|
||||
|
||||
if (mOVInfo.user_data[0]) {
|
||||
if (mRotInfo.src.format == MDP_Y_CRCB_H2V2_TILE)
|
||||
mOVInfo.src.format = MDP_Y_CRCB_H2V2;
|
||||
mRotInfo.enable = 1;
|
||||
}
|
||||
else {
|
||||
if(mRotInfo.src.format == MDP_Y_CRCB_H2V2_TILE)
|
||||
mOVInfo.src.format = MDP_Y_CRCB_H2V2_TILE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user