liboverlay: Refactor, bug-fixes, upgrade.
* Fix memory leak during copying pipe objects.
* Remove unused / unnecessary code.
* setMemoryId API is merged with queueBuffer.
* setParameter API is setTransform now.
* Rotator upgraded to:
--Allow different rotator hardware types.
--Remove dependency on MDP code.
--Allocate memory only during first playback,
close when the associated pipe is closed.
* Have single commit implementation.
* Include new format types.
* Remove WAIT and CHANNEL enums and usage. Replace BypassPipe with
GenericPipe. Client expected to set alignments and parameters.
Add transform combination enums.
* Allow APIs to be called in any order. Do transform calcs in commit.
Move ext type setter and getter functions.
* Add calculations for 180 transform.
* Add secure session support in rotator
* Implement all rotations in terms of H flip, V flip and 90 rotation.
Change-Id: I34a9a2a0f1255b3467a0abbaa254d0b584e901ce
diff --git a/liboverlay/overlay.h b/liboverlay/overlay.h
index e2ee6cd..b3324eb 100644
--- a/liboverlay/overlay.h
+++ b/liboverlay/overlay.h
@@ -43,31 +43,22 @@
/* Overlay related func */
- /* We need an empty open to just open the bare minimum for
- * business. */
- bool open();
-
- /* close rotator, state, overlayimpl*/
- bool close();
-
/* Following is the same as the pure virt interface in ov impl */
- bool commit(utils::eDest dest = utils::OV_PIPE_ALL);
-
- bool queueBuffer(uint32_t offset,
+ bool setSource(const utils::PipeArgs args[utils::MAX_PIPES],
utils::eDest dest = utils::OV_PIPE_ALL);
- bool dequeueBuffer(void*& buf,
- utils::eDest dest = utils::OV_PIPE_ALL);
- bool waitForVsync(utils::eDest dest = utils::OV_PIPE1);
bool setCrop(const utils::Dim& d,
utils::eDest dest = utils::OV_PIPE_ALL);
+ bool setTransform(const int orientation,
+ utils::eDest dest = utils::OV_PIPE_ALL);
bool setPosition(const utils::Dim& dim,
utils::eDest dest = utils::OV_PIPE_ALL);
- bool setParameter(const utils::Params& param,
+ bool commit(utils::eDest dest = utils::OV_PIPE_ALL);
+
+ bool queueBuffer(int fd, uint32_t offset,
utils::eDest dest = utils::OV_PIPE_ALL);
- bool setSource(const utils::PipeArgs args[utils::MAX_PIPES],
- utils::eDest dest = utils::OV_PIPE_ALL);
- void setMemoryId(int id, utils::eDest dest = utils::OV_PIPE_ALL);
+ bool waitForVsync(utils::eDest dest = utils::OV_PIPE1);
+
void dump() const;
/* state related functions */