liboverlay: Add support for MDSS Bandwidth Compression

- This adds support for Bandwidth Compression.
- If MDSS supports BWC, then we set BWC flags
  to both Rotator(encode) and overlay(decode)

Change-Id: I6f7800716a2ce2ab855f4c0b1a53cd96f7d06d74
This commit is contained in:
Sushil Chauhan
2013-01-30 17:44:15 -08:00
parent d092e660ad
commit bab187a53e
6 changed files with 40 additions and 1 deletions

View File

@@ -628,6 +628,12 @@ void setMdpFlags(hwc_layer_1_t *layer,
if(transform & HWC_TRANSFORM_ROT_90) {
ovutils::setMdpFlags(mdpFlags,
ovutils::OV_MDP_SOURCE_ROTATED_90);
// enable bandwidth compression only if src width < 2048
if(qdutils::MDPVersion::getInstance().supportsBWC() &&
hnd->width < qdutils::MAX_DISPLAY_DIM) {
ovutils::setMdpFlags(mdpFlags,
ovutils::OV_MDSS_MDP_BWC_EN);
}
}
}