leng.fang | 07ca08d | 2023-05-08 07:33:53 +0000 | [diff] [blame] | 1 | #include <UvmDev.h> |
| 2 | |
| 3 | int setPid(int pid) |
| 4 | { |
| 5 | return UvmDev::getInstance().setPid(pid); |
| 6 | } |
| 7 | |
| 8 | int commitDisplay(const int fd, const int commit) |
| 9 | { |
| 10 | return UvmDev::getInstance().commitDisplay(fd, commit); |
| 11 | } |
| 12 | |
| 13 | int32_t attachUvmBuffer(int bufferFd) |
| 14 | { |
| 15 | return UvmDev::getInstance().attachBuffer(bufferFd); |
| 16 | } |
| 17 | |
| 18 | int32_t dettachUvmBuffer(int bufferFd) |
| 19 | { |
| 20 | return UvmDev::getInstance().dettachBuffer(bufferFd); |
| 21 | } |
| 22 | |
| 23 | int32_t getVideoType(int bufferFd) |
| 24 | { |
| 25 | return UvmDev::getInstance().getVideoType(bufferFd); |
| 26 | } |