![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <VideoBufferDRMPRIME.h>
Public Member Functions | |
CVideoBufferDRMPRIMEFFmpeg (IVideoBufferPool &pool, int id) | |
~CVideoBufferDRMPRIMEFFmpeg () override | |
void | SetRef (AVFrame *frame) |
void | Unref () |
AVDRMFrameDescriptor * | GetDescriptor () const override |
bool | IsValid () const override |
![]() | |
CVideoBufferDRMPRIME ()=delete | |
~CVideoBufferDRMPRIME () override=default | |
virtual void | SetPictureParams (const VideoPicture &picture) |
virtual const VideoPicture & | GetPicture () const |
virtual uint32_t | GetWidth () const |
virtual uint32_t | GetHeight () const |
virtual bool | AcquireDescriptor () |
virtual void | ReleaseDescriptor () |
![]() | |
CVideoBuffer ()=delete | |
virtual | ~CVideoBuffer ()=default |
void | Acquire () |
void | Acquire (std::shared_ptr< IVideoBufferPool > pool) |
void | Release () |
int | GetId () const |
virtual AVPixelFormat | GetFormat () |
virtual uint8_t * | GetMemPtr () |
virtual void | GetPlanes (uint8_t *(&planes)[YuvImage::MAX_PLANES]) |
virtual void | GetStrides (int(&strides)[YuvImage::MAX_PLANES]) |
virtual void | SetPixelFormat (const AVPixelFormat pixFormat) |
virtual void | SetDimensions (int width, int height, const int(&strides)[YuvImage::MAX_PLANES]) |
virtual void | SetDimensions (int width, int height, const int(&strides)[YuvImage::MAX_PLANES], const int(&planeOffsets)[YuvImage::MAX_PLANES]) |
Protected Attributes | |
AVFrame * | m_pFrame = nullptr |
![]() | |
VideoPicture | m_picture |
![]() | |
AVPixelFormat | m_pixFormat = AV_PIX_FMT_NONE |
std::atomic_int | m_refCount |
int | m_id |
std::shared_ptr< IVideoBufferPool > | m_pool |
Additional Inherited Members | |
![]() | |
static bool | CopyPicture (YuvImage *pDst, YuvImage *pSrc) |
static bool | CopyNV12Picture (YuvImage *pDst, YuvImage *pSrc) |
static bool | CopyYUV422PackedPicture (YuvImage *pDst, YuvImage *pSrc) |
![]() | |
uint32_t | m_fb_id = 0 |
uint32_t | m_handles [AV_DRM_MAX_PLANES] = {} |
![]() | |
CVideoBufferDRMPRIME (int id) | |
![]() | |
CVideoBuffer (int id) | |
CVideoBufferDRMPRIMEFFmpeg::CVideoBufferDRMPRIMEFFmpeg | ( | IVideoBufferPool & | pool, |
int | id ) |
|
override |
|
inlineoverridevirtual |
Implements CVideoBufferDRMPRIME.
|
overridevirtual |
Reimplemented from CVideoBufferDRMPRIME.
void CVideoBufferDRMPRIMEFFmpeg::SetRef | ( | AVFrame * | frame | ) |
void CVideoBufferDRMPRIMEFFmpeg::Unref | ( | ) |
|
protected |