Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRgbDitherOpFactory.h File Reference
#include "KisDitherOpImpl.h"

Go to the source code of this file.

Functions

template<class srcCSTraits >
void addStandardDitherOps (KoColorSpace *cs)
 

Function Documentation

◆ addStandardDitherOps()

template<class srcCSTraits >
void addStandardDitherOps ( KoColorSpace * cs)
inline

Definition at line 12 of file KisRgbDitherOpFactory.h.

13{
14 static_assert(std::is_same<srcCSTraits, KoBgrU8Traits>::value || std::is_same<srcCSTraits, KoBgrU16Traits>::value ||
15#ifdef HAVE_OPENEXR
16 std::is_same<srcCSTraits, KoRgbF16Traits>::value ||
17#endif
18 std::is_same<srcCSTraits, KoRgbF32Traits>::value,
19 "Missing colorspace, add a transform case!");
20
21 addDitherOpsByDepth<srcCSTraits, KoBgrU8Traits>(cs, Integer8BitsColorDepthID);
22 addDitherOpsByDepth<srcCSTraits, KoBgrU16Traits>(cs, Integer16BitsColorDepthID);
23#ifdef HAVE_OPENEXR
24 addDitherOpsByDepth<srcCSTraits, KoRgbF16Traits>(cs, Float16BitsColorDepthID);
25#endif
26 addDitherOpsByDepth<srcCSTraits, KoRgbF32Traits>(cs, Float32BitsColorDepthID);
27}
const KoID Float32BitsColorDepthID("F32", ki18n("32-bit float/channel"))
const KoID Float16BitsColorDepthID("F16", ki18n("16-bit float/channel"))
const KoID Integer8BitsColorDepthID("U8", ki18n("8-bit integer/channel"))
const KoID Integer16BitsColorDepthID("U16", ki18n("16-bit integer/channel"))

References Float16BitsColorDepthID, Float32BitsColorDepthID, Integer16BitsColorDepthID, and Integer8BitsColorDepthID.