Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
DmaBufIdentity.cpp File Reference
#include "DmaBufIdentity.h"
#include <sys/stat.h>

Namespaces

namespace  DRMPRIME
 

Functions

bool DRMPRIME::StatInode (int fd, uint64_t &inode)
 
std::optional< DmaBufIdentityDRMPRIME::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< DmaBufIdentityDRMPRIME::GetDmaBufIdentity (const AVDRMFrameDescriptor *descriptor, uint32_t width, uint32_t height, const StatInodeFn &statInode)
 Test seam: same, with an injectable stat function.