Patch: Many composite/blend modes mostly compatible to Adobe Photoshop (c)
Silvio Heinrich
plassy at web.de
Sun Feb 6 23:37:27 CET 2011
On 02/06/2011 10:56 PM, Sven Langkamp wrote:
> What compiler version do you use?
>
> gcc 4.4.3
>
> And can you please try to add this include to the top of the
> libs/pigment/compositeops/KoCompositeOps.h header:
>
> #include "KoColorSpaceMaths.h"
>
> and compile again.
>
>
> Doesn't work.
>
Argg.. I hate when something like this happens :-/.
I think we have to back-trace this then.
It would be nice if you could erase the entire content of
libs/pigment/compositeops/KoCompositeOps.h and try
this two versions instead:
#ifndef _KO_COMPOSITEOPS_H_
#define _KO_COMPOSITEOPS_H_
#include "KoColorSpace.h"
#include "KoColorSpaceTraits.h"
#include "KoCompositeOp.h"
#include "compositeops/KoCompositeOpFunctions.h"
#include "compositeops/KoCompositeOpGeneric.h"
template<class Traits>
void addStandardCompositeOps(KoColorSpace* cs)
{
cs->addCompositeOp(new KoCompositeOpGenericSC<Traits,
&cfVividLight>(cs, COMPOSITE_VIVID_LIGHT, i18n("Vivid Light"),
KoCompositeOp::categoryLight(), true));
}
// _KO_COMPOSITEOPS_H_
and:
#ifndef _KO_COMPOSITEOPS_H_
#define _KO_COMPOSITEOPS_H_
#include "KoColorSpace.h"
#include "KoColorSpaceTraits.h"
#include "KoCompositeOp.h"
#include "compositeops/KoCompositeOpFunctions.h"
#include "compositeops/KoCompositeOpGeneric.h"
template<class Traits>
void addStandardCompositeOps(KoColorSpace* cs)
{
typedef typename Traits::channels_type Arg;
cs->addCompositeOp(new KoCompositeOpGenericSC< Traits,
&cfVividLight<Arg> >(cs, COMPOSITE_VIVID_LIGHT, i18n("Vivid Light"),
KoCompositeOp::categoryLight(), true));
}
// _KO_COMPOSITEOPS_H_
If you get some compiling errors instead of linking errors I made some
mistake :D but I hope it will compile.
So, please try the two versions an tell me what errors you get :D
I have gcc 4.4.5 but I can just hardly believe that 4.4.3 isn't able to
compile this :/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20110206/092a6bf8/attachment.htm
More information about the kimageshop
mailing list