#include <kis_tiff_reader.h>
|
| uint32_t | copyDataToChannels (quint32 x, quint32 y, quint32 dataWidth, QSharedPointer< KisBufferStreamBase > tiffstream) override |
| |
| | KisTIFFReaderFromPalette (KisPaintDeviceSP device, uint16_t *red, uint16_t *green, uint16_t *blue, const std::array< quint8, 5 > &poses, int32_t alphapos, uint16_t sourceDepth, uint16_t sample_format, uint16_t nbcolorssamples, bool premultipliedAlpha, uint8_t extrasamplescount, KoColorTransformation *transformProfile, QSharedPointer< KisTIFFPostProcessor > postprocessor) |
| |
| 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 |
| |
Definition at line 454 of file kis_tiff_reader.h.
◆ type
◆ KisTIFFReaderFromPalette()
| KisTIFFReaderFromPalette::KisTIFFReaderFromPalette |
( |
KisPaintDeviceSP | device, |
|
|
uint16_t * | red, |
|
|
uint16_t * | green, |
|
|
uint16_t * | blue, |
|
|
const std::array< quint8, 5 > & | poses, |
|
|
int32_t | alphapos, |
|
|
uint16_t | sourceDepth, |
|
|
uint16_t | sample_format, |
|
|
uint16_t | nbcolorssamples, |
|
|
bool | premultipliedAlpha, |
|
|
uint8_t | extrasamplescount, |
|
|
KoColorTransformation * | transformProfile, |
|
|
QSharedPointer< KisTIFFPostProcessor > | postprocessor ) |
|
inline |
Definition at line 459 of file kis_tiff_reader.h.
474 alphapos,
476 sample_format,
477 nbcolorssamples,
478 extrasamplescount,
479 premultipliedAlpha,
480 transformProfile,
481 postprocessor)
485 {
486 }
const std::array< quint8, 5 > & poses() const
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)
quint16 sourceDepth() const
◆ copyDataToChannels()
This function copy data from the tiff stream to the paint device starting at the given position.
- Parameters
-
| x | horizontal start position |
| y | vertical start position |
| dataWidth | width of the data to copy |
| tiffstream | source of data |
- Returns
- the number of line which were copied
Implements KisTIFFReaderBase.
Definition at line 489 of file kis_tiff_reader.h.
493 {
495 do {
498 it->rawData());
499 uint32_t index = tiffstream->nextValue();
503 d[3] = std::numeric_limits<KisTIFFReaderFromPalette::type>::max();
504
505 } while (it->nextPixel());
506 return 1;
507 }
KisHLineIteratorSP createHLineIteratorNG(qint32 x, qint32 y, qint32 w)
KisPaintDeviceSP paintDevice() const
References KisPaintDevice::createHLineIteratorNG(), m_blue, m_green, m_red, and KisTIFFReaderBase::paintDevice().
◆ m_blue
| uint16_t * KisTIFFReaderFromPalette::m_blue |
|
private |
◆ m_green
| uint16_t * KisTIFFReaderFromPalette::m_green |
|
private |
◆ m_red
| uint16_t* KisTIFFReaderFromPalette::m_red |
|
private |
The documentation for this class was generated from the following file: