sde: resource config: rectangle alignment for video and rotator
1. Align rectangle to be even for video format input. 2. Align width and height for rotator downscaling case. 3. Validate scaling again after config is done because scaling ratio might be changed. 4. Make sure layer count doesn't exceed mixer stage number. 5. Add sde.disable_rotator_downscaling property for disabling rotator downscaling. 6. Add sde.disable_decimation property for disabling decimation 7. Disable 2 pipes on non-display_split case temporarily as z-order needs be different Change-Id: Iec20c292552b23ff1a4135a6be1695fa8fb737de
This commit is contained in:
@@ -53,6 +53,9 @@
|
||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
|
||||
#define ROUND_UP_ALIGN_DOWN(value, a) FLOAT(FloorToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
|
||||
#define ROUND_UP_ALIGN_UP(value, a) FLOAT(CeilToMultipleOf(UINT32(value + 0.5f), UINT32(a)))
|
||||
|
||||
template <class T>
|
||||
inline void Swap(T &a, T &b) {
|
||||
T c(a);
|
||||
|
||||
Reference in New Issue
Block a user