sde: resource: rotator yuv downscaling output alignment
For YUV 420 format, align the source crop with rotator
downscale factor * 2 so that the rotator output width and
height are even. This is the requirement of the rotator.
For simplification, apply this to all non RGB format.
Change-Id: I15e27bfba782873e7a6e6c378845df04eeaadccd
diff --git a/displayengine/include/utils/constants.h b/displayengine/include/utils/constants.h
index 8630d45..5dfcc59 100644
--- a/displayengine/include/utils/constants.h
+++ b/displayengine/include/utils/constants.h
@@ -59,6 +59,8 @@
#define IDLE_TIMEOUT_DEFAULT_MS 70
+#define IS_RGB_FORMAT(format) (((format) < kFormatYCbCr420Planar) ? true: false)
+
template <class T>
inline void Swap(T &a, T &b) {
T c(a);