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

Public Member Functions

void UnInit ()
 
bool Open (const VideoPicture &picture, std::shared_ptr< DXVA::CEnumeratorHD > enumerator)
 
void Close ()
 
bool Render (CRect src, CRect dst, ID3D11Resource *target, CRenderBuffer **views, DWORD flags, UINT frameIdx, UINT rotation, float contrast, float brightness)
 
uint8_t PastRefs () const
 
bool SetConversion (const ProcessorConversion &conversion)
 Configure the processor for the provided conversion. More...
 
void OnCreateDevice () override
 
void OnDestroyDevice (bool) override
 
void TryEnableVideoSuperResolution ()
 
bool IsVideoSuperResolutionEnabled () const
 
bool Supports (ERENDERFEATURE feature) const
 

Static Public Member Functions

static bool IsSuperResolutionSuitable (const VideoPicture &picture)
 

Protected Member Functions

bool ReInit ()
 
bool InitProcessor ()
 
bool CheckFormats () const
 
bool OpenProcessor ()
 
void ApplyFilter (D3D11_VIDEO_PROCESSOR_FILTER filter, int value, int min, int max, int def) const
 
ComPtr< ID3D11VideoProcessorInputView > GetInputView (CRenderBuffer *view) const
 
bool CheckVideoParameters (const CRect &src, const CRect &dst, const UINT &rotation, const float &contrast, const float &brightness, const CRenderBuffer &rb)
 Apply new video settings if there was a change. Returns true if a parameter changed, false otherwise.
 
void EnableIntelVideoSuperResolution ()
 
void EnableNvidiaRTXVideoSuperResolution ()
 
- Protected Member Functions inherited from ID3DResource
void Register ()
 
void Unregister ()
 

Protected Attributes

CCriticalSection m_section
 
ComPtr< ID3D11VideoDevice > m_pVideoDevice
 
ComPtr< ID3D11VideoContext > m_pVideoContext
 
ComPtr< ID3D11VideoProcessor > m_pVideoProcessor
 
std::shared_ptr< CEnumeratorHDm_enumerator
 
AVColorPrimaries m_color_primaries {AVCOL_PRI_UNSPECIFIED}
 
AVColorTransferCharacteristic m_color_transfer {AVCOL_TRC_UNSPECIFIED}
 
ProcessorCapabilities m_procCaps
 
bool m_superResolutionEnabled {false}
 
ProcessorConversion m_conversion
 
bool m_isValidConversion {false}
 
bool m_configured {false}
 true when at least one frame has been processed successfully since init
 
UINT m_lastInputFrameOrField {0}
 
UINT m_lastOutputIndex {0}
 
CRect m_lastSrc {}
 
CRect m_lastDst {}
 
UINT m_lastRotation {0}
 
float m_lastContrast {.0f}
 
float m_lastBrightness {.0f}
 
ProcessorConversion m_lastConversion {}
 
AVColorSpace m_lastColorSpace {AVCOL_SPC_UNSPECIFIED}
 
bool m_lastFullRange {false}
 
- Protected Attributes inherited from ID3DResource
bool m_bRegistered = false
 

Member Function Documentation

◆ SetConversion()

bool CProcessorHD::SetConversion ( const ProcessorConversion conversion)

Configure the processor for the provided conversion.

Parameters
conversionthe conversion
Returns
success status, true = success, false = error

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