liboverlay: Set mdp src format as rotator output format.
* Set mdp source format as rotator output format
rather than determine it from a fixed mapping of
input/output formats.
* This is needed since for the same input format
to rotator, fastyuv mode if enabled may result in
a different output format than the one if the mode
is not enabled.
* Do the inline optimization for rotator where possible
CRs-fixed: 451064
Change-Id: If0bb2f3a44df10968383ab3f5c3625257518934d
diff --git a/liboverlay/overlayCtrlData.h b/liboverlay/overlayCtrlData.h
index c0d4c6d..0c49bdd 100644
--- a/liboverlay/overlayCtrlData.h
+++ b/liboverlay/overlayCtrlData.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2012, The Linux Foundation. All rights reserved.
+* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -93,6 +93,8 @@
/* Get downscale factor */
int getDownscalefactor();
+ /* Update the src format */
+ void updateSrcformat(const uint32_t& inputsrcFormat);
private:
/* Retrieve screen info from underlying mdp */
@@ -187,6 +189,10 @@
return mMdp.getFd();
}
+inline void Ctrl::updateSrcformat(const uint32_t& inputsrcFormat) {
+ mMdp.updateSrcformat(inputsrcFormat);
+}
+
inline utils::ScreenInfo Ctrl::getScreenInfo() const {
return mInfo;
}