![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <DXVA.h>
Public Member Functions | |
virtual | ~CVideoBuffer () |
void | SetRef (AVFrame *frame) |
void | Unref () |
virtual void | Initialize (CDecoder *decoder) |
virtual HRESULT | GetResource (ID3D11Resource **ppResource) |
virtual unsigned | GetIdx () |
![]() | |
CVideoBuffer ()=delete | |
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]) |
Public Attributes | |
ID3D11View * | view = nullptr |
DXGI_FORMAT | format = DXGI_FORMAT_UNKNOWN |
unsigned | width = 0 |
unsigned | height = 0 |
Protected Member Functions | |
CVideoBuffer (int id) | |
![]() | |
CVideoBuffer (int id) | |
Friends | |
template<typename TBuffer> | |
class | CVideoBufferPoolTyped |
Additional Inherited Members | |
![]() | |
static bool | CopyPicture (YuvImage *pDst, YuvImage *pSrc) |
static bool | CopyNV12Picture (YuvImage *pDst, YuvImage *pSrc) |
static bool | CopyYUV422PackedPicture (YuvImage *pDst, YuvImage *pSrc) |
![]() | |
AVPixelFormat | m_pixFormat = AV_PIX_FMT_NONE |
std::atomic_int | m_refCount |
int | m_id |
std::shared_ptr< IVideoBufferPool > | m_pool |
|
virtual |
Reimplemented from CVideoBuffer.
|
explicitprotected |
|
virtual |
Reimplemented in DXVA::CVideoBufferCopy.
|
virtual |
Reimplemented in DXVA::CVideoBufferShared.
Reimplemented in DXVA::CVideoBufferCopy, and DXVA::CVideoBufferShared.
void CVideoBuffer::SetRef | ( | AVFrame * | frame | ) |
void CVideoBuffer::Unref | ( | ) |
|
friend |
DXGI_FORMAT DXVA::CVideoBuffer::format = DXGI_FORMAT_UNKNOWN |
unsigned DXVA::CVideoBuffer::height = 0 |
ID3D11View* DXVA::CVideoBuffer::view = nullptr |
unsigned DXVA::CVideoBuffer::width = 0 |