Krita Source Code Documentation
Loading...
Searching...
No Matches
KisYCbCrDitherOpFactory.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 11 of file KisYCbCrDitherOpFactory.h.

12{
13 static_assert(std::is_same<srcCSTraits, KoYCbCrU8Traits>::value || std::is_same<srcCSTraits, KoYCbCrU16Traits>::value ||
14#ifdef HAVE_OPENEXR
15 std::is_same<srcCSTraits, KoYCbCrF16Traits>::value ||
16#endif
17 std::is_same<srcCSTraits, KoYCbCrF32Traits>::value,
18 "Missing colorspace, add a transform case!");
19
20 addDitherOpsByDepth<srcCSTraits, KoYCbCrU8Traits>(cs, Integer8BitsColorDepthID);
21 addDitherOpsByDepth<srcCSTraits, KoYCbCrU16Traits>(cs, Integer16BitsColorDepthID);
22#ifdef HAVE_OPENEXR
23 addDitherOpsByDepth<srcCSTraits, KoYCbCrF16Traits>(cs, Float16BitsColorDepthID);
24#endif
25 addDitherOpsByDepth<srcCSTraits, KoYCbCrF32Traits>(cs, Float32BitsColorDepthID);
26}
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.