Add the state machine for overlay configuration. When connected,
check whether the TV on HDMI is 3D capable or not using the EDID
info. Show L channel on primary panel; and R channel on 2D TV if
non 3DTV is connected via HDMI, else switch TV to 3D mode.
Change-Id: I3109f8b0b81a8f5ad542db038262fd668e225e96
The MDP kernel interprets the CRCB enum opposite to what Android
interprets it. Set the correct MDP enum value.
Change-Id: Iba9744fadadc42467dbf8979d6ed7d896c00ca10
When front camera is in use, overlay is created with 90 degree
rotation and vertical flip. This change considers 90 degree
rotation with flip, and updates the crop rectangle accordingly.
CRs-Fixed : 283348, 284193
Change-Id: Ia0d7830f12d607ae698b019396cd0e2bef168a6a
- The ioctl call from getOrientation is removed.
- In gralloc use getOrientation instead of storing the
orientation.
Change-Id: Idb08568ff5d46ce99e0a9a8c6f492b90bb666f0c
Whenever there is a change in the buffer geometry, set a flag in the
gralloc handle stating that the buffer geometry has changed.
In the HWC, whenever we encounter an update in the geometry, if the
channel is already open, we just call the necessary ioctls to update
the overlay information and not unnecessarily open/close channels.
Change-Id: I27db8fc497ebc514e262d6b7854739f312644714
When the layer flags are marked to maintain the original surface
resolution, draw the layer using the overlay.
Store the HDMI status in the overlay object instead of the HWC
context.
Add the exported sanitized kernel headers to include path in C2D/
copybit, gralloc and overlay HAL libraries.
(cherry picked from commit a70f426e8695cc5bbf8a45b987b5715784f7e924)
Change-Id: I1dbb79a086e9cb062e1264c1c354ac5ce1a05f27
When getting the MDP format in the setSource api, separate the
color format from the interlace information.
Change-Id: I6a92d2d6d2c9f70b0c0bd6486227032716f70914
CRs-fixed: 282157
- Use rotator buffer for UI mirroring on HDMI
- Avoid ioctl calls on getPosition
CRs-fixed: 278858
Change-Id: Id390e2b85fe939d8388ed17f5f9c7fcd30499755
The MSMFB_OVERLAY_SET ioctl gets called everytime there is a setSource called.
This is an expensive call and should not be done unnecessarily.
Change-Id: I2d9be394f48b9dea31b9f4f39b1b576c4ad42b47
startChannel function prototype has changed.
One of the places it uses old signature,
update it with new signature.
Change-Id: Id0510187ffa13d7d750ad101030649134353b14b
This change calculates x and y values based on setcrop parameters and current overlay values on 180 degree rotation.
CRs-Fixed: 274707
Change-Id: Ibfe20c1a53e832424a880d99e73bd4a1c7b95173
When the FLIP_H is passed, the overlay needs to flip the image along the vertical axis and similarly
when the FLIP_V is passed, the flip needs to happen along the horizontal axis
Change-Id: Iae31a1ca266e7e0bb9e598c88cb0728f35028052
This change adds following to Overlay class
- is_fg, client could pass whether, FB need not be scaned.
- RGBX_8888 format is now supported.
- number of rotator buffers also could be passed which could be up to 3
Change-Id: I85519abc21e34642ef8f728948f1bd61f09a18cb
Add support for source horizonal and vertical flipping in the overlay.
Based on the final orientation and the flip information, set the correct
rotation value for the MDP.
Change-Id: Ie20022a8bf8f9725f01b4213b814cbe0af44625e
Add support in the overlayLib to enable/disable and queue the buffers
to the primary or secondary based on the hdmi connected parameter.
Change-Id: Ie6c780e4076b0b84e6457a0503ec511ff2b8c452
Add support for Side-by-Side full, Side-By-Side-half formats in the overlay.
The Side by Side half formats could either be in Left-Right or Right-Left mode.
Change-Id: Ie1f0ccb5b1a8254f7256aafdd3f0ce9a3faa0df4
Add support in the overlay to display 3D content on the HDMI.
The 3D input and out formats are passed along with the regular color format.
Change-Id: I4e0338e8b2c07eca0f211c50a17bf7d82c35279b