1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : Emboss threaded image filter.
9
* Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
* Copyright (C) 2006-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12
* Original Emboss algorithm copyrighted 2004 by
13
* Pieter Z. Voloshyn <pieter dot voloshyn at gmail dot com>.
15
* This program is free software; you can redistribute it
16
* and/or modify it under the terms of the GNU General
17
* Public License as published by the Free Software Foundation;
18
* either version 2, or (at your option)
21
* This program is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
26
* ============================================================ */
28
#ifndef EMBOSSFILTER_H
29
#define EMBOSSFILTER_H
33
#include "digikam_export.h"
34
#include "dimgthreadedfilter.h"
40
class DIGIKAM_EXPORT EmbossFilter : public DImgThreadedFilter
45
explicit EmbossFilter(DImg* orgImage, QObject* parent=0, int depth=30);
52
inline int Lim_Max (int Now, int Up, int Max);
53
inline int getOffset(int Width, int X, int Y, int bytesDepth);
60
} // namespace Digikam
62
#endif /* EMBOSSFILTER_H */