overlay: Separate the interlace information from the color format
When getting the MDP format in the setSource api, separate the color format from the interlace information. Change-Id: I6a92d2d6d2c9f70b0c0bd6486227032716f70914 CRs-fixed: 282157
This commit is contained in:
parent
ed35d42ee4
commit
3ea7a7fc38
@ -734,7 +734,9 @@ bool OverlayControlChannel::closeControlChannel() {
|
||||
}
|
||||
|
||||
bool OverlayControlChannel::setSource(uint32_t w, uint32_t h,
|
||||
int format, int orientation, bool ignoreFB) {
|
||||
int cFormat, int orientation, bool ignoreFB) {
|
||||
int format = cFormat & INTERLACE_MASK ?
|
||||
(cFormat ^ HAL_PIXEL_FORMAT_INTERLACE) : cFormat;
|
||||
format = get_mdp_format(format);
|
||||
if ((orientation == mOrientation)
|
||||
&& ((orientation == OVERLAY_TRANSFORM_ROT_90)
|
||||
|
Loading…
Reference in New Issue
Block a user