libuvm: add libuvm code [2/2]
PD#SWPL-104040
Problem:
move libuvm from android-hwc to common lib
Solution:
add libuvm code in meson_display
Verify:
t3x
Change-Id: Ia4df8e75487e73d674058a6026680ddbf4930b72
Signed-off-by: leng.fang <leng.fang@amlogic.com>
diff --git a/libuvm/Uvm.cpp b/libuvm/Uvm.cpp
new file mode 100644
index 0000000..88e3ab0
--- /dev/null
+++ b/libuvm/Uvm.cpp
@@ -0,0 +1,26 @@
+#include <UvmDev.h>
+
+int setPid(int pid)
+{
+ return UvmDev::getInstance().setPid(pid);
+}
+
+int commitDisplay(const int fd, const int commit)
+{
+ return UvmDev::getInstance().commitDisplay(fd, commit);
+}
+
+int32_t attachUvmBuffer(int bufferFd)
+{
+ return UvmDev::getInstance().attachBuffer(bufferFd);
+}
+
+int32_t dettachUvmBuffer(int bufferFd)
+{
+ return UvmDev::getInstance().dettachBuffer(bufferFd);
+}
+
+int32_t getVideoType(int bufferFd)
+{
+ return UvmDev::getInstance().getVideoType(bufferFd);
+}