|
Krita Source Code Documentation
|
Converts an RGB-like color space between U8 and U16 formats. More...
#include <KoOptimizedPixelDataScalerU8ToU16Base.h>
Inheritance diagram for KoOptimizedPixelDataScalerU8ToU16Base:Public Member Functions | |
| int | channelsPerPixel () const |
| virtual void | convertU16ToU8 (const quint8 *src, int srcRowStride, quint8 *dst, int dstRowStride, int numRows, int numColumns) const =0 |
| virtual void | convertU8ToU16 (const quint8 *src, int srcRowStride, quint8 *dst, int dstRowStride, int numRows, int numColumns) const =0 |
| KoOptimizedPixelDataScalerU8ToU16Base (int channelsPerPixel) | |
| virtual | ~KoOptimizedPixelDataScalerU8ToU16Base () |
Protected Attributes | |
| int | m_channelsPerPixel |
Converts an RGB-like color space between U8 and U16 formats.
In some places we need to extend precision of the color space in a very efficient way. It is specifically needed in the colorsmudge engine, because it operates at an extremely low levels of opacity. The conversion should also happen very efficiently, because colorsmudge requests it on the fly right when the user is painting on the canvas.
The actual implementation is placed in class KoOptimizedPixelDataScalerU8ToU16.
To create a scaler, just call a factory. It will create a version of the scaler optimized for your CPU architecture.
Definition at line 49 of file KoOptimizedPixelDataScalerU8ToU16Base.h.
| KoOptimizedPixelDataScalerU8ToU16Base::KoOptimizedPixelDataScalerU8ToU16Base | ( | int | channelsPerPixel | ) |
Definition at line 9 of file KoOptimizedPixelDataScalerU8ToU16Base.cpp.
|
virtual |
Definition at line 15 of file KoOptimizedPixelDataScalerU8ToU16Base.cpp.
| int KoOptimizedPixelDataScalerU8ToU16Base::channelsPerPixel | ( | ) | const |
Definition at line 19 of file KoOptimizedPixelDataScalerU8ToU16Base.cpp.
References m_channelsPerPixel.
|
pure virtual |
Implemented in KoOptimizedPixelDataScalerU8ToU16< _impl >.
|
pure virtual |
Implemented in KoOptimizedPixelDataScalerU8ToU16< _impl >.
|
protected |
Definition at line 67 of file KoOptimizedPixelDataScalerU8ToU16Base.h.