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

#include <ColorManager.h>

Public Member Functions

 CColorManager ()
 
virtual ~CColorManager ()
 
bool IsEnabled () const
 Check if user has requested color management.
 
bool IsValid () const
 Check if configuration of color management is valid.
 
bool GetVideo3dLut (AVColorPrimaries srcPrimaries, int *cmsToken, CMS_DATA_FORMAT format, int clutSize, uint16_t *clutData)
 Get a 3D LUT for video color correction.
 
bool CheckConfiguration (int cmsToken, AVColorPrimaries srcPrimaries)
 Check if a 3D LUT is still valid.
 

Static Public Member Functions

static bool Get3dLutSize (CMS_DATA_FORMAT format, int *clutSize, int *dataSize)
 Get a 3D LUT dimension and data size for video color correction.
 

Constructor & Destructor Documentation

◆ CColorManager()

CColorManager::CColorManager ( )

◆ ~CColorManager()

CColorManager::~CColorManager ( )
virtualdefault

Member Function Documentation

◆ CheckConfiguration()

bool CColorManager::CheckConfiguration ( int cmsToken,
AVColorPrimaries srcPrimaries )

Check if a 3D LUT is still valid.

Parameters
cmsTokenpointer to a color manager configuration token
srcPrimariesvideo primaries (see AVColorPrimaries)
Returns
true on valid, false if 3D LUT should be reloaded

◆ Get3dLutSize()

bool CColorManager::Get3dLutSize ( CMS_DATA_FORMAT format,
int * clutSize,
int * dataSize )
static

Get a 3D LUT dimension and data size for video color correction.

Parameters
formatrequired format of CLUT data
clutSizepointer to CLUT resolution
dataSizepointer to CLUT data size
Returns
true on success, false otherwise

◆ GetVideo3dLut()

bool CColorManager::GetVideo3dLut ( AVColorPrimaries srcPrimaries,
int * cmsToken,
CMS_DATA_FORMAT format,
int clutSize,
uint16_t * clutData )

Get a 3D LUT for video color correction.

Parameters
srcPrimariesvideo primaries (see AVColorPrimaries)
cmsTokenpointer to a color manager configuration token
formatof CLUT data
clutSizeCLUT resolution
clutDatapointer to CLUT data
Returns
true on success, false otherwise

◆ IsEnabled()

bool CColorManager::IsEnabled ( ) const

Check if user has requested color management.

Returns
true on enabled, false otherwise

◆ IsValid()

bool CColorManager::IsValid ( ) const

Check if configuration of color management is valid.

Returns
true on valid, false otherwise

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