Commit Graph

28 Commits

Author SHA1 Message Date
Naomi Luis
de3c0ac14e overlay: Reset the rotation flag
Reset the MDP source rotation flag if there is no 90/270 degree
rotation.

Change-Id: I36ef62e52213149f7ce84677534de969d18972a4
2011-09-19 19:16:35 -05:00
Chetan Kalyan
16b703db64 liboverlay: Set overlay src format for tiled input
Rotator always outputs non-tiled formats.
For tiled inputs,if rotation occurs, set overlay's input
to non-tiled format.

CRs-fixed: 278408
Change-Id: I20e8a4109903f3162aa80f94a8c90ecd70e15772
2011-09-19 19:16:35 -05:00
Naomi Luis
9c2ba115fd Add support for dynamic resolution change with overlays
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
2011-09-19 19:16:35 -05:00
Naomi Luis
56a78ad233 libhwcomposer: Add support for maintaining original resolution
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.
2011-09-19 19:16:35 -05:00
Naomi Luis
f60705b3f4 overlay: Inform the overlay of source rotation
If there is a 90 or 270 degree rotation, inform the overlay that
the source has been rotated.

CRs-fixed: 281389
2011-09-19 19:16:35 -05:00
Kinjal Bhavsar
cc2834b226 msm7k: Use sanitized kernel headers
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
2011-09-19 19:16:34 -05:00
Naomi Luis
3ea7a7fc38 overlay: Separate the interlace information from the color format
When getting the MDP format in the setSource api, separate the
color format from the interlace information.

Change-Id: I6a92d2d6d2c9f70b0c0bd6486227032716f70914
CRs-fixed: 282157
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
ed35d42ee4 liboverlay: Always use rotator for UI mirroring on HDMI
- Use rotator buffer for UI mirroring on HDMI
- Avoid ioctl calls on getPosition

CRs-fixed: 278858
Change-Id: Id390e2b85fe939d8388ed17f5f9c7fcd30499755
2011-09-19 19:16:34 -05:00
Kobi Cohen Arazi
e825316b00 Revert "liboverlay: Use rotator during video on MDDI panel"
This reverts commit b2809b02b6dfc5111150d178135673eb535c4ff5.
CRs-fixed: 271109, 278129, 273572

Change-Id: Ie50679b6600e7151cac17136a322009b80b55871
2011-09-19 19:16:34 -05:00
Satya Durga Srinivasu Prabhala
64527a8af1 Cleanup copyrights in Makefiles
As per Copyright Markings guidelines, Makefiles shouldn't contain
any Copyright in them.

Change-Id: Iefa61b8713d2bfec21eb885dfe999b492da43681
2011-09-19 19:16:34 -05:00
Naomi Luis
73a28215fa liboverlay: Remove additional overlay SET ioctl calls.
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
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
7017323f14 liboverlay: enable rotator only for primary display
Enable rotator only for primary if the panel type is MDDI

Change-Id: I513de9c022e2a92e8bcd8f683f332903f708e6fa
2011-09-19 19:16:34 -05:00
Omprakash Dhyade
a3742036fc liboverlay: Remove RGB specific checks
liboverlay assumes RGB format comes from UI,
which is incorrect. Remove RGB format checks.

Change-Id: I001d36dcc6bdec043c29b21c072be91bd45d4999
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
1c9191bda5 liboverlay: Use rotator during video on MDDI panel
Always use rotator on the MDDI panel, irrespective
of rotation.

CRs-fixed: 271109

Change-Id: Ief0a7d3fc1bd3254ef50931cf7ee5c5bf02dfdee
2011-09-19 19:16:34 -05:00
Omprakash Dhyade
7e948c3238 overlay: Update startChannel function call
startChannel function prototype has changed.
One of the places it uses old signature,
update it with new signature.

Change-Id: Id0510187ffa13d7d750ad101030649134353b14b
2011-09-19 19:16:34 -05:00
Jeykumar Sankaran
5abeb9b1ea liboverlay: Calculate x and y values in setCrop on 180 degree rotation
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
2011-09-19 19:16:34 -05:00
Naomi Luis
c096d185f1 overlayLib: Add support for flipping the source
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
2011-09-19 19:16:34 -05:00
Naomi Luis
8bd9729c72 overlay: Add S3D support over HDMI in the overlayLib
Change-Id: I1f650237f2de414fe248d4281ce22344049d2956
2011-09-19 19:16:34 -05:00
Naomi Luis
67b9bd9154 liboverlay: Set MDP_OV_PLAY_NOWAIT flag in overlay
Set the MDP_OV_PLAY_NOWAIT flag when there is a UI update during video playback

Change-Id: I0e71087a879fceaaab204bbd3acabcaaad676fe3
2011-09-19 19:16:34 -05:00
Omprakash Dhyade
553c4b501f overlay: Composition bypass changes
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
2011-09-19 19:16:34 -05:00
Naomi Luis
71a74457f1 overlay: Add support for flipping the source image
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
2011-09-19 19:16:33 -05:00
Naomi Luis
aedeaccc6a overlayLib: Set the MDP_OV_PLAY_NOWAIT flag for non RGB buffers
Change-Id: I6e3323cbc59125e1d52883c3a41d0950b3caefef
2011-09-19 19:16:33 -05:00
Naomi Luis
9c8bc18f79 overlay: Add support for enabling/disabling HDMI
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
2011-09-19 19:16:33 -05:00
Naomi Luis
5a1bf4cb9e overlay: Add support for additional S3D formats
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
2011-09-19 19:16:32 -05:00
Naomi Luis
3a51941fe6 Add support for S3D content over HDMI
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
2011-09-19 19:16:32 -05:00
Chetan Kalyan
5fe46458a5 Overlay: Return error if crop values are invalid
Return an error to the caller if input crop rectangle values are incorrect

Change-Id: Ie1bf9ac0dbcfba0becee0864b44903abd4016873
2011-09-19 19:16:32 -05:00
Saurabh Shah
6ec5b1553f hardware/msm7k : Fix centering of low resolution clips
Change-Id: I90825fd77376325fe9427d1a739be4bec13ff1e3
CRs-fixed: 269485
2011-09-19 19:16:32 -05:00
David Ng
155d9fa5fb liboverlay: Add liboverlay and enable for MSM8660 target
liboverlay based on MSM8660-1066 release.

Change-Id: Ic9453d38c5a60b40728e2a3651f7a065d802817e
2011-09-19 19:16:32 -05:00