Skip to content

Commit

Permalink
am afb0630: qdutils: Parse rotator downscale feature
Browse files Browse the repository at this point in the history
* commit 'afb0630fd38b3db0e01f243d3112d0b67a93976e':
  qdutils: Parse rotator downscale feature
  • Loading branch information
Saurabh Shah authored and Android Git Automerger committed Jan 9, 2015
2 parents 47ae557 + afb0630 commit 39e2edb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions msm8226/libqdutils/mdp_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ MDPVersion::MDPVersion()
mSourceSplit = false;
mSourceSplitAlways = false;
mRGBHasNoScalar = false;
mRotDownscale = false;

updatePanelInfo();

Expand Down Expand Up @@ -282,22 +283,22 @@ bool MDPVersion::updateSysFsInfo() {
for(int i=1; i<index;i++) {
if(!strncmp(tokens[i], "bwc", strlen("bwc"))) {
mFeatures |= MDP_BWC_EN;
}
else if(!strncmp(tokens[i], "decimation",
} else if(!strncmp(tokens[i], "decimation",
strlen("decimation"))) {
mFeatures |= MDP_DECIMATION_EN;
}
else if(!strncmp(tokens[i], "tile_format",
} else if(!strncmp(tokens[i], "tile_format",
strlen("tile_format"))) {
if(enableMacroTile)
mMacroTileEnabled = true;
} else if(!strncmp(tokens[i], "src_split",
strlen("src_split"))) {
mSourceSplit = true;
}
else if(!strncmp(tokens[i], "non_scalar_rgb",
} else if(!strncmp(tokens[i], "non_scalar_rgb",
strlen("non_scalar_rgb"))) {
mRGBHasNoScalar = true;
} else if(!strncmp(tokens[i], "rotator_downscale",
strlen("rotator_downscale"))) {
mRotDownscale = true;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions msm8226/libqdutils/mdp_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class MDPVersion : public Singleton <MDPVersion>
bool needsROIMerge() { return mPanelInfo.mNeedsROIMerge; }
unsigned long getLowBw() { return mLowBw; }
unsigned long getHighBw() { return mHighBw; }
bool isRotDownscaleEnabled() { return mRotDownscale; }
bool isSrcSplit() const;
bool isSrcSplitAlways() const;
bool isRGBScalarSupported() const;
Expand Down Expand Up @@ -175,6 +176,7 @@ class MDPVersion : public Singleton <MDPVersion>
//Additional property on top of source split
bool mSourceSplitAlways;
bool mRGBHasNoScalar;
bool mRotDownscale;
};
}; //namespace qdutils
#endif //INCLUDE_LIBQCOMUTILS_MDPVER

0 comments on commit 39e2edb

Please sign in to comment.