Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CRenderBuffer Class Reference

#include <RendererBase.h>

Inheritance diagram for CRenderBuffer:
CRendererDXVA::CRenderBufferImpl CRendererShaders::CRenderBufferImpl CRendererSoftware::CRenderBufferImpl

Public Member Functions

virtual ~CRenderBuffer ()=default
 
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
 

Constructor & Destructor Documentation

◆ ~CRenderBuffer()

virtual CRenderBuffer::~CRenderBuffer ( )
virtualdefault

◆ CRenderBuffer()

CRenderBuffer::CRenderBuffer ( AVPixelFormat av_pix_format,
unsigned width,
unsigned height )
protected

Member Function Documentation

◆ AppendPicture()

void CRenderBuffer::AppendPicture ( const VideoPicture & picture)
virtual

◆ GetDataPlanes()

virtual bool CRenderBuffer::GetDataPlanes ( uint8_t *(&) planes[3],
int(&) strides[3] )
inlinevirtual

◆ GetHeight()

unsigned CRenderBuffer::GetHeight ( ) const
inline

◆ GetResource()

HRESULT CRenderBuffer::GetResource ( ID3D11Resource ** ppResource,
unsigned * index ) const
virtual

◆ GetView()

virtual ID3D11View * CRenderBuffer::GetView ( unsigned viewIdx)
inlinevirtual

◆ GetViewCount()

virtual unsigned CRenderBuffer::GetViewCount ( ) const
inlinevirtual

◆ GetWidth()

unsigned CRenderBuffer::GetWidth ( ) const
inline

◆ IsLoaded()

bool CRenderBuffer::IsLoaded ( )
inline

◆ QueueCopyFromGPU()

void CRenderBuffer::QueueCopyFromGPU ( )
protected

◆ ReleasePicture()

void CRenderBuffer::ReleasePicture ( )
virtual

◆ UploadBuffer()

virtual bool CRenderBuffer::UploadBuffer ( )
inlinevirtual

Member Data Documentation

◆ av_format

AVPixelFormat CRenderBuffer::av_format

◆ bits

int CRenderBuffer::bits = 8

◆ color_space

AVColorSpace CRenderBuffer::color_space = AVCOL_SPC_BT709

◆ color_transfer

AVColorTransferCharacteristic CRenderBuffer::color_transfer = AVCOL_TRC_BT709

◆ displayMetadata

AVMasteringDisplayMetadata CRenderBuffer::displayMetadata = {}

◆ frameIdx

uint64_t CRenderBuffer::frameIdx = 0

◆ full_range

bool CRenderBuffer::full_range = false

◆ hasDisplayMetadata

bool CRenderBuffer::hasDisplayMetadata = false

◆ hasLightMetadata

bool CRenderBuffer::hasLightMetadata = false

◆ lightMetadata

AVContentLightMetadata CRenderBuffer::lightMetadata = {}

◆ m_bLoaded

bool CRenderBuffer::m_bLoaded = false
protected

◆ m_bPending

bool CRenderBuffer::m_bPending = false
protected

◆ m_height

unsigned int CRenderBuffer::m_height
protected

◆ m_heightTex

unsigned int CRenderBuffer::m_heightTex
protected

◆ m_originalPrimaries

AVColorPrimaries CRenderBuffer::m_originalPrimaries = AVCOL_PRI_BT709

◆ m_sDesc

D3D11_TEXTURE2D_DESC CRenderBuffer::m_sDesc {}
protected

◆ m_staging

Microsoft::WRL::ComPtr<ID3D11Texture2D> CRenderBuffer::m_staging
protected

◆ m_width

unsigned int CRenderBuffer::m_width
protected

◆ m_widthTex

unsigned int CRenderBuffer::m_widthTex
protected

◆ pictureFlags

unsigned int CRenderBuffer::pictureFlags = 0

◆ pixelFormat

AVPixelFormat CRenderBuffer::pixelFormat = AV_PIX_FMT_NONE

◆ primaries

AVColorPrimaries CRenderBuffer::primaries = AVCOL_PRI_BT709

◆ stereoMode

std::string CRenderBuffer::stereoMode

◆ texBits

uint8_t CRenderBuffer::texBits = 8

◆ videoBuffer

CVideoBuffer* CRenderBuffer::videoBuffer = nullptr

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