Commit Graph

10 Commits

Author SHA1 Message Date
Pullakavi Srinivas
1494a93fc8 sdm: Update layer parameters based on panel orientation
Update layer rotation parameters with panel orientation.
Recalculate destination rect for all layers.

CRs-fixed: 1112326
Change-Id: I95f6428c77b23cf2437c319f6ab519aa3ad245e9
2017-01-18 21:29:24 -08:00
Prabhanjan Kandula
6064cad7a0 sdm: Fix Map rect for offset in source domain
If source domain has an offset move input rect
accordingly in source domain before calculating
it's equivalent rect in dst domain

Change-Id: I52b86d3cedf6f2256017b0c4d98efa9e3f031ffc
CRs-fixed: 1085287
2016-11-20 22:35:14 -08:00
Ramkumar Radhakrishnan
b27735ff94 sdm: Add rect mapping and interface to store actual resolution
1. Add rectangle mapping function to map a rectangle from one
   coordinate system to another coordinate system.
2. Add unaligned_width and unaligned_height in layer buffer to store
   the actual buffer resolution without alignment.
3. Populate unaligned width and height information of SDM layer
   buffer from private handle

Change-Id: Ic4c03cc5779418959732332d26b8ecb59c2483b5
CRs-Fixed: 1040942
2016-09-28 11:14:48 -07:00
Dileep Marchya
7290bd2839 sdm: Use std version for basic operations.
- Remove custom implementation of swap, MIN, MAX and BIT operations.
- Use empty initializer list of memset to 0.

CRs-Fixed: 1029997
Change-Id: I8a8ee05df804d1f27d79c7d6f2fd66cfd29d70ff
2016-06-16 19:50:03 +05:30
Ramkumar Radhakrishnan
6884047ac1 sdm: Add support for dynamic layer mixer resolution change.
1. Define binder API to change layer mixer resolution.
2. Honor layer mixer resolution change request only if the hardware
   supports destination scaler.
3. Give preference to panel scaling over destination scaling, as panel
   scaling requires less bandwidth.
4. Disable partial update for a frame on mixer resolution change.

CRs-Fixed: 1005180
Change-Id: I3d4e48c8853a941f12703915b33c3a0a4df09af2
2016-06-03 10:59:09 -07:00
Manoj Kumar AVM
ddca4e7dfd sdm: Remove unused function in rect utility
Remove unused function Union of regions in rect utility.

CRs-Fixed: 935432
Change-Id: I6bbe65342d3d3b132668334d334d2225a4d7b7e2
2015-11-11 14:23:32 -08:00
Tatenda Chipeperekwa
a8668641ba sdm: Adjust the split if a horizontal flip is present
1. Split from right to left on the source to ensure that the
   width of the right split is aligned to the expected width
   alignment.
2. Split from bottom to top on the destination to ensure that the
   resultant y-offset is aligned correctly after the swap
   operation happens.

Change-Id: I7ddcc068e0ec14b66294b15e641b3e1c58f14a1b
2015-08-18 21:34:05 -07:00
Dileep Marchya
ee93e50467 sdm: Add a method to calculate union of a rectangle array.
- Add a method in rect utility which aggregates all rectangles
  contained in a rectangle array and unionizes them.

Change-Id: Ic825cafe644f00623af15711bd7f54a48d5cc66e
2015-08-05 11:43:28 -07:00
Ramkumar Radhakrishnan
345081196a sdm: Add split rectangle support for split rotation.
1. Add support to split rectangle vertically and horizontally.
2. Add debug property to enable/disable split rotation.

Change-Id: I4070e7e754c2a3a3a9ca4f4eab91037f7f9c88b7
2015-06-24 12:06:17 -07:00
Dileep Marchya
73d002e57c sdm: Align to new SDM design.
- Align code base to new SDM design.

Change-Id: I38d7d138ae704cf036e2b96c16453aea63bc333f
2015-05-21 11:58:10 -07:00