MythTV master
mythvideodrmbuffer.h
Go to the documentation of this file.
1#ifndef MYTHVIDEODRMBUFFER_H
2#define MYTHVIDEODRMBUFFER_H
3
4// MythTV
6
7// Std
8#include <memory>
9
10// FFmpeg
11extern "C" {
12#include "libavutil/hwcontext_drm.h"
13#include "libavutil/mem.h"
14}
15
16using DRMHandle = std::shared_ptr<class MythVideoDRMBuffer>;
17
19{
20 public:
21 static DRMHandle Create(MythDRMPtr Device, AVDRMFrameDescriptor* DRMDesc, QSize Size);
23 uint32_t GetFB() const;
24
25 protected:
26 MythVideoDRMBuffer(MythDRMPtr Device, AVDRMFrameDescriptor* DRMDesc, QSize Size);
27
28 bool m_valid { false };
29 MythDRMPtr m_device { nullptr };
30 uint32_t m_fb { 0 };
32};
33
34#endif
A device containing images (ie. USB stick, CD, storage group etc)
MythVideoDRMBuffer(MythDRMPtr Device, AVDRMFrameDescriptor *DRMDesc, QSize Size)
static DRMHandle Create(MythDRMPtr Device, AVDRMFrameDescriptor *DRMDesc, QSize Size)
uint32_t GetFB() const
std::shared_ptr< class MythDRMDevice > MythDRMPtr
Definition: mythdrmdevice.h:19
std::array< uint32_t, 4 > DRMArray
std::shared_ptr< class MythVideoDRMBuffer > DRMHandle