Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTIFFPostProcessorCIELABtoICCLAB< T > Class Template Reference

#include <kis_tiff_reader.h>

+ Inheritance diagram for KisTIFFPostProcessorCIELABtoICCLAB< T >:

Public Member Functions

 KisTIFFPostProcessorCIELABtoICCLAB (uint32_t nbcolorssamples)
 
void postProcess (void *data) const override
 
 ~KisTIFFPostProcessorCIELABtoICCLAB () override=default
 
- Public Member Functions inherited from KisTIFFPostProcessor
 KisTIFFPostProcessor (uint32_t nbcolorssamples)
 
virtual ~KisTIFFPostProcessor ()=default
 

Private Member Functions

template<typename U = T, typename std::enable_if<!std::numeric_limits< U >::is_integer, void >::type * = nullptr>
void postProcessImpl (T *data) const
 
template<typename U = T, typename std::enable_if< std::numeric_limits< U >::is_integer, void >::type * = nullptr>
void postProcessImpl (T *data) const
 

Additional Inherited Members

- Protected Member Functions inherited from KisTIFFPostProcessor
uint32_t nbColorsSamples () const
 

Detailed Description

template<typename T>
class KisTIFFPostProcessorCIELABtoICCLAB< T >

Definition at line 107 of file kis_tiff_reader.h.

Constructor & Destructor Documentation

◆ KisTIFFPostProcessorCIELABtoICCLAB()

template<typename T >
KisTIFFPostProcessorCIELABtoICCLAB< T >::KisTIFFPostProcessorCIELABtoICCLAB ( uint32_t nbcolorssamples)
inline

Definition at line 110 of file kis_tiff_reader.h.

111 : KisTIFFPostProcessor(nbcolorssamples)
112 {
113 }
KisTIFFPostProcessor(uint32_t nbcolorssamples)

◆ ~KisTIFFPostProcessorCIELABtoICCLAB()

template<typename T >
KisTIFFPostProcessorCIELABtoICCLAB< T >::~KisTIFFPostProcessorCIELABtoICCLAB ( )
overridedefault

Member Function Documentation

◆ postProcess()

template<typename T >
void KisTIFFPostProcessorCIELABtoICCLAB< T >::postProcess ( void * data) const
inlineoverridevirtual

Implements KisTIFFPostProcessor.

Definition at line 117 of file kis_tiff_reader.h.

118 {
119 postProcessImpl(reinterpret_cast<T *>(data));
120 }

References KisTIFFPostProcessorCIELABtoICCLAB< T >::postProcessImpl().

◆ postProcessImpl() [1/2]

template<typename T >
template<typename U = T, typename std::enable_if<!std::numeric_limits< U >::is_integer, void >::type * = nullptr>
void KisTIFFPostProcessorCIELABtoICCLAB< T >::postProcessImpl ( T * data) const
inlineprivate

Definition at line 126 of file kis_tiff_reader.h.

127 {
128 for (uint32_t i = 1; i < this->nbColorsSamples(); i++) {
129 data[i] += 128.0f;
130 }
131 }
uint32_t nbColorsSamples() const

References KisTIFFPostProcessor::nbColorsSamples().

◆ postProcessImpl() [2/2]

template<typename T >
template<typename U = T, typename std::enable_if< std::numeric_limits< U >::is_integer, void >::type * = nullptr>
void KisTIFFPostProcessorCIELABtoICCLAB< T >::postProcessImpl ( T * data) const
inlineprivate

Definition at line 136 of file kis_tiff_reader.h.

137 {
138 for (uint32_t i = 1; i < this->nbColorsSamples(); i++) {
139 data[i] += std::numeric_limits<T>::max() / 2;
140 }
141 }

References KisTIFFPostProcessor::nbColorsSamples().


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