|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <array>#include <cstdint>#include <functional>#include <optional>#include <libavutil/hwcontext_drm.h>Classes | |
| struct | DRMPRIME::DmaBufIdentity |
| Identifies a frame's memory and layout across file descriptor reuse. More... | |
Namespaces | |
| namespace | DRMPRIME |
Typedefs | |
| using | DRMPRIME::StatInodeFn = std::function<bool(int fd, uint64_t& inode)> |
| Writes the dma-buf inode for fd; false on failure. | |
Functions | |
| bool | DRMPRIME::StatInode (int fd, uint64_t &inode) |
| std::optional< DmaBufIdentity > | DRMPRIME::GetDmaBufIdentity (const AVDRMFrameDescriptor *descriptor, uint32_t width, uint32_t height) |
| Identity of descriptor layer[0] only; nbLayers is keyed, layers 1+ are not inspected: a consumer that reads layers 1+ must not key on this identity. Returns nullopt for a missing or malformed descriptor or an unreadable inode. | |
| std::optional< DmaBufIdentity > | DRMPRIME::GetDmaBufIdentity (const AVDRMFrameDescriptor *descriptor, uint32_t width, uint32_t height, const StatInodeFn &statInode) |
| Test seam: same, with an injectable stat function. | |