|
Krita Source Code Documentation
|
#include <kis_tiff_ycbcr_reader.h>
Inheritance diagram for KisTIFFYCbCrReader< T >:Public Types | |
| using | type = T |
Public Member Functions | |
| uint32_t | copyDataToChannels (quint32 x, quint32 y, quint32 dataWidth, QSharedPointer< KisBufferStreamBase > tiffstream) override |
| void | finalize () override |
| KisTIFFYCbCrReader (KisPaintDeviceSP device, quint32 width, quint32 height, const std::array< quint8, 5 > &poses, int32_t alphapos, uint16_t sourceDepth, uint16_t sampleformat, uint16_t nbcolorssamples, uint16_t extrasamplescount, bool premultipliedAlpha, KoColorTransformation *transformProfile, QSharedPointer< KisTIFFPostProcessor > postprocessor, uint16_t hsub, uint16_t vsub) | |
| ~KisTIFFYCbCrReader () override=default | |
Public Member Functions inherited from 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) | |
| virtual | ~KisTIFFReaderBase ()=default |
Private Member Functions | |
| template<typename U = T, typename std::enable_if<!std::numeric_limits< U >::is_integer, void >::type * = nullptr> | |
| uint32_t | copyDataToChannelsImpl (quint32 x, quint32 y, quint32 dataWidth, QSharedPointer< KisBufferStreamBase > tiffstream) |
| template<typename U = T, typename std::enable_if< std::numeric_limits< U >::is_integer, void >::type * = nullptr> | |
| uint32_t | copyDataToChannelsImpl (quint32 x, quint32 y, quint32 dataWidth, QSharedPointer< KisBufferStreamBase > tiffstream) |
| template<typename U = T, typename std::enable_if<!std::numeric_limits< U >::is_integer, void >::type * = nullptr> | |
| void | finalizeImpl () |
| template<typename U = T, typename std::enable_if< std::numeric_limits< U >::is_integer, void >::type * = nullptr> | |
| void | finalizeImpl () |
Private Attributes | |
| std::unique_ptr< T[]> | m_bufferCb |
| std::unique_ptr< T[]> | m_bufferCr |
| quint32 | m_bufferHeight |
| quint32 | m_bufferWidth |
| uint16_t | m_hsub |
| quint32 | m_imageHeight |
| quint32 | m_imageWidth |
| uint16_t | m_vsub |
Additional Inherited Members | |
Protected Member Functions inherited from KisTIFFReaderBase | |
| qint32 | alphaPos () const |
| bool | hasPremultipliedAlpha () const |
| quint16 | nbColorsSamples () const |
| quint16 | nbExtraSamples () const |
| KisPaintDeviceSP | paintDevice () const |
| const std::array< quint8, 5 > & | poses () const |
| const KisTIFFPostProcessor * | postProcessor () const |
| uint16_t | sampleFormat () const |
| quint16 | sourceDepth () const |
| KoColorTransformation * | transform () const |
Definition at line 29 of file kis_tiff_ycbcr_reader.h.
| using KisTIFFYCbCrReader< T >::type = T |
Definition at line 32 of file kis_tiff_ycbcr_reader.h.
|
inline |
| hsub | horizontal subsampling of Cb and Cr |
| hsub | vertical subsampling of Cb and Cr |
Definition at line 38 of file kis_tiff_ycbcr_reader.h.
References KisTIFFYCbCrReader< T >::m_bufferCb, KisTIFFYCbCrReader< T >::m_bufferCr, KisTIFFYCbCrReader< T >::m_bufferHeight, KisTIFFYCbCrReader< T >::m_bufferWidth, KisTIFFYCbCrReader< T >::m_hsub, KisTIFFYCbCrReader< T >::m_imageHeight, KisTIFFYCbCrReader< T >::m_imageWidth, and KisTIFFYCbCrReader< T >::m_vsub.
|
overridedefault |
|
inlineoverridevirtual |
This function copy data from the tiff stream to the paint device starting at the given position.
| x | horizontal start position |
| y | vertical start position |
| dataWidth | width of the data to copy |
| tiffstream | source of data |
Implements KisTIFFReaderBase.
Definition at line 81 of file kis_tiff_ycbcr_reader.h.
References KisTIFFYCbCrReader< T >::copyDataToChannelsImpl().
|
inlineprivate |
Definition at line 99 of file kis_tiff_ycbcr_reader.h.
References KisTIFFReaderBase::alphaPos(), KisPaintDevice::createHLineIteratorNG(), KisTIFFYCbCrReader< T >::m_bufferCb, KisTIFFYCbCrReader< T >::m_bufferCr, KisTIFFYCbCrReader< T >::m_bufferWidth, KisTIFFYCbCrReader< T >::m_hsub, KisTIFFYCbCrReader< T >::m_vsub, KisTIFFReaderBase::nbExtraSamples(), and KisTIFFReaderBase::paintDevice().
|
inlineprivate |
Definition at line 133 of file kis_tiff_ycbcr_reader.h.
References KisTIFFReaderBase::alphaPos(), KisPaintDevice::createHLineIteratorNG(), KisTIFFYCbCrReader< T >::m_bufferCb, KisTIFFYCbCrReader< T >::m_bufferCr, KisTIFFYCbCrReader< T >::m_bufferWidth, KisTIFFYCbCrReader< T >::m_hsub, KisTIFFYCbCrReader< T >::m_vsub, KisTIFFReaderBase::nbExtraSamples(), KisTIFFReaderBase::paintDevice(), and KisTIFFReaderBase::sourceDepth().
|
inlineoverridevirtual |
This function is called when all data has been read and should be used for any postprocessing.
Reimplemented from KisTIFFReaderBase.
Definition at line 89 of file kis_tiff_ycbcr_reader.h.
References KisTIFFYCbCrReader< T >::finalizeImpl().
|
inlineprivate |
Definition at line 166 of file kis_tiff_ycbcr_reader.h.
References KisPaintDevice::createHLineIteratorNG(), KisTIFFReaderBase::hasPremultipliedAlpha(), KisTIFFYCbCrReader< T >::m_bufferCb, KisTIFFYCbCrReader< T >::m_bufferCr, KisTIFFYCbCrReader< T >::m_bufferWidth, KisTIFFYCbCrReader< T >::m_hsub, KisTIFFYCbCrReader< T >::m_imageHeight, KisTIFFYCbCrReader< T >::m_imageWidth, KisTIFFYCbCrReader< T >::m_vsub, KisTIFFReaderBase::nbColorsSamples(), KisTIFFReaderBase::paintDevice(), and qFuzzyCompare().
|
inlineprivate |
Definition at line 224 of file kis_tiff_ycbcr_reader.h.
References KisPaintDevice::createHLineIteratorNG(), KisTIFFReaderBase::hasPremultipliedAlpha(), KisTIFFYCbCrReader< T >::m_bufferCb, KisTIFFYCbCrReader< T >::m_bufferCr, KisTIFFYCbCrReader< T >::m_bufferWidth, KisTIFFYCbCrReader< T >::m_hsub, KisTIFFYCbCrReader< T >::m_imageHeight, KisTIFFYCbCrReader< T >::m_imageWidth, KisTIFFYCbCrReader< T >::m_vsub, KisTIFFReaderBase::nbColorsSamples(), and KisTIFFReaderBase::paintDevice().
|
private |
Definition at line 250 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 251 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 252 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 252 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 253 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 255 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 255 of file kis_tiff_ycbcr_reader.h.
|
private |
Definition at line 254 of file kis_tiff_ycbcr_reader.h.