kodi
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CRenderBuffer Class Reference
Inheritance diagram for CRenderBuffer:
Inheritance graph
[legend]
Collaboration diagram for CRenderBuffer:
Collaboration graph
[legend]

Public Member Functions

unsigned GetWidth () const
 
unsigned GetHeight () const
 
bool IsLoaded ()
 
virtual void AppendPicture (const VideoPicture &picture)
 
virtual void ReleasePicture ()
 
virtual bool UploadBuffer ()
 
virtual HRESULT GetResource (ID3D11Resource **ppResource, unsigned *index) const
 
virtual bool GetDataPlanes (uint8_t *(&planes)[3], int(&strides)[3])
 
virtual unsigned GetViewCount () const
 
virtual ID3D11View * GetView (unsigned viewIdx)
 

Public Attributes

AVPixelFormat av_format
 
CVideoBuffervideoBuffer = nullptr
 
unsigned int pictureFlags = 0
 
AVColorPrimaries m_originalPrimaries = AVCOL_PRI_BT709
 
AVColorPrimaries primaries = AVCOL_PRI_BT709
 
AVColorSpace color_space = AVCOL_SPC_BT709
 
AVColorTransferCharacteristic color_transfer = AVCOL_TRC_BT709
 
bool full_range = false
 
int bits = 8
 
uint8_t texBits = 8
 
AVPixelFormat pixelFormat = AV_PIX_FMT_NONE
 
bool hasDisplayMetadata = false
 
bool hasLightMetadata = false
 
AVMasteringDisplayMetadata displayMetadata = {}
 
AVContentLightMetadata lightMetadata = {}
 
std::string stereoMode
 
uint64_t frameIdx = 0
 

Protected Member Functions

 CRenderBuffer (AVPixelFormat av_pix_format, unsigned width, unsigned height)
 
void QueueCopyFromGPU ()
 

Protected Attributes

unsigned int m_width
 
unsigned int m_height
 
unsigned int m_widthTex
 
unsigned int m_heightTex
 
Microsoft::WRL::ComPtr< ID3D11Texture2D > m_staging
 
D3D11_TEXTURE2D_DESC m_sDesc {}
 
bool m_bPending = false
 
bool m_bLoaded = false
 

The documentation for this class was generated from the following files: