Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTIFFReaderBase Class Referenceabstract

#include <kis_tiff_reader.h>

+ Inheritance diagram for KisTIFFReaderBase:

Public Member Functions

virtual uint32_t copyDataToChannels (quint32 x, quint32 y, quint32 dataWidth, QSharedPointer< KisBufferStreamBase > tiffstream)=0
 
virtual void finalize ()
 
 KisTIFFReaderBase (KisPaintDeviceSP device, const std::array< quint8, 5 > &poses, int32_t alphapos, uint16_t sourceDepth, uint16_t sample_format, uint16_t nbcolorssamples, uint16_t extrasamplescount, bool premultipliedAlpha, KoColorTransformation *transformProfile, QSharedPointer< KisTIFFPostProcessor > postprocessor)
 
virtual ~KisTIFFReaderBase ()=default
 

Protected Member Functions

qint32 alphaPos () const
 
bool hasPremultipliedAlpha () const
 
quint16 nbColorsSamples () const
 
quint16 nbExtraSamples () const
 
KisPaintDeviceSP paintDevice () const
 
const std::array< quint8, 5 > & poses () const
 
const KisTIFFPostProcessorpostProcessor () const
 
uint16_t sampleFormat () const
 
quint16 sourceDepth () const
 
KoColorTransformationtransform () const
 

Private Attributes

qint32 m_alphapos
 
KisPaintDeviceSP m_device
 
quint16 m_nbcolorssamples
 
quint16 m_nbextrasamples
 
std::array< quint8, 5 > m_poses
 
bool m_premultipliedAlpha
 
uint16_t m_sample_format
 
quint16 m_sourceDepth
 
KoColorTransformationm_transformProfile
 
QSharedPointer< KisTIFFPostProcessormpostProcessImpl
 

Detailed Description

Definition at line 144 of file kis_tiff_reader.h.

Constructor & Destructor Documentation

◆ KisTIFFReaderBase()

KisTIFFReaderBase::KisTIFFReaderBase ( KisPaintDeviceSP device,
const std::array< quint8, 5 > & poses,
int32_t alphapos,
uint16_t sourceDepth,
uint16_t sample_format,
uint16_t nbcolorssamples,
uint16_t extrasamplescount,
bool premultipliedAlpha,
KoColorTransformation * transformProfile,
QSharedPointer< KisTIFFPostProcessor > postprocessor )
inline

Definition at line 147 of file kis_tiff_reader.h.

157 : m_device(device)
158 , m_alphapos(alphapos)
160 , m_sample_format(sample_format)
161 , m_nbcolorssamples(nbcolorssamples)
162 , m_nbextrasamples(extrasamplescount)
163 , m_premultipliedAlpha(premultipliedAlpha)
164 , m_poses(poses)
165 , m_transformProfile(transformProfile)
166 , mpostProcessImpl(std::move(postprocessor))
167 {
168
169 }
QSharedPointer< KisTIFFPostProcessor > mpostProcessImpl
const std::array< quint8, 5 > & poses() const
KisPaintDeviceSP m_device
KoColorTransformation * m_transformProfile
std::array< quint8, 5 > m_poses
quint16 sourceDepth() const

◆ ~KisTIFFReaderBase()

virtual KisTIFFReaderBase::~KisTIFFReaderBase ( )
virtualdefault

Member Function Documentation

◆ alphaPos()

qint32 KisTIFFReaderBase::alphaPos ( ) const
inlineprotected

Definition at line 200 of file kis_tiff_reader.h.

201 {
202 return m_alphapos;
203 }

References m_alphapos.

◆ copyDataToChannels()

virtual uint32_t KisTIFFReaderBase::copyDataToChannels ( quint32 x,
quint32 y,
quint32 dataWidth,
QSharedPointer< KisBufferStreamBase > tiffstream )
pure virtual

This function copy data from the tiff stream to the paint device starting at the given position.

Parameters
xhorizontal start position
yvertical start position
dataWidthwidth of the data to copy
tiffstreamsource of data
Returns
the number of line which were copied

Implemented in KisTIFFReaderTarget< T >, KisTIFFReaderFromPalette, and KisTIFFYCbCrReader< T >.

◆ finalize()

virtual void KisTIFFReaderBase::finalize ( )
inlinevirtual

This function is called when all data has been read and should be used for any postprocessing.

Reimplemented in KisTIFFYCbCrReader< T >.

Definition at line 190 of file kis_tiff_reader.h.

191 {
192 }

◆ hasPremultipliedAlpha()

bool KisTIFFReaderBase::hasPremultipliedAlpha ( ) const
inlineprotected

Definition at line 224 of file kis_tiff_reader.h.

225 {
227 }

References m_premultipliedAlpha.

◆ nbColorsSamples()

quint16 KisTIFFReaderBase::nbColorsSamples ( ) const
inlineprotected

Definition at line 214 of file kis_tiff_reader.h.

215 {
216 return m_nbcolorssamples;
217 }

References m_nbcolorssamples.

◆ nbExtraSamples()

quint16 KisTIFFReaderBase::nbExtraSamples ( ) const
inlineprotected

Definition at line 219 of file kis_tiff_reader.h.

220 {
221 return m_nbextrasamples;
222 }

References m_nbextrasamples.

◆ paintDevice()

KisPaintDeviceSP KisTIFFReaderBase::paintDevice ( ) const
inlineprotected

Definition at line 195 of file kis_tiff_reader.h.

196 {
197 return m_device;
198 }

References m_device.

◆ poses()

const std::array< quint8, 5 > & KisTIFFReaderBase::poses ( ) const
inlineprotected

Definition at line 229 of file kis_tiff_reader.h.

230 {
231 return m_poses;
232 }

References m_poses.

◆ postProcessor()

const KisTIFFPostProcessor * KisTIFFReaderBase::postProcessor ( ) const
inlineprotected

Definition at line 239 of file kis_tiff_reader.h.

240 {
241 return mpostProcessImpl.get();
242 }

References mpostProcessImpl.

◆ sampleFormat()

uint16_t KisTIFFReaderBase::sampleFormat ( ) const
inlineprotected

Definition at line 209 of file kis_tiff_reader.h.

210 {
211 return m_sample_format;
212 }

References m_sample_format.

◆ sourceDepth()

quint16 KisTIFFReaderBase::sourceDepth ( ) const
inlineprotected

Definition at line 205 of file kis_tiff_reader.h.

206 {
207 return m_sourceDepth;
208 }

References m_sourceDepth.

◆ transform()

KoColorTransformation * KisTIFFReaderBase::transform ( ) const
inlineprotected

Definition at line 234 of file kis_tiff_reader.h.

235 {
236 return m_transformProfile;
237 }

References m_transformProfile.

Member Data Documentation

◆ m_alphapos

qint32 KisTIFFReaderBase::m_alphapos
private

Definition at line 246 of file kis_tiff_reader.h.

◆ m_device

KisPaintDeviceSP KisTIFFReaderBase::m_device
private

Definition at line 245 of file kis_tiff_reader.h.

◆ m_nbcolorssamples

quint16 KisTIFFReaderBase::m_nbcolorssamples
private

Definition at line 249 of file kis_tiff_reader.h.

◆ m_nbextrasamples

quint16 KisTIFFReaderBase::m_nbextrasamples
private

Definition at line 250 of file kis_tiff_reader.h.

◆ m_poses

std::array<quint8, 5> KisTIFFReaderBase::m_poses
private

Definition at line 252 of file kis_tiff_reader.h.

◆ m_premultipliedAlpha

bool KisTIFFReaderBase::m_premultipliedAlpha
private

Definition at line 251 of file kis_tiff_reader.h.

◆ m_sample_format

uint16_t KisTIFFReaderBase::m_sample_format
private

Definition at line 248 of file kis_tiff_reader.h.

◆ m_sourceDepth

quint16 KisTIFFReaderBase::m_sourceDepth
private

Definition at line 247 of file kis_tiff_reader.h.

◆ m_transformProfile

KoColorTransformation* KisTIFFReaderBase::m_transformProfile
private

Definition at line 253 of file kis_tiff_reader.h.

◆ mpostProcessImpl

QSharedPointer<KisTIFFPostProcessor> KisTIFFReaderBase::mpostProcessImpl
private

Definition at line 254 of file kis_tiff_reader.h.


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