~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/dimg/filters/fx/pixelsaliasfilter.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2010-04-09 21:30:01 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409213001-4bfyibrd359rn7o3
Tags: 2:1.2.0-0ubuntu1
* New upstream release (LP: #560576)
* Remove all patches, fixed upstream
  - Remove quilt build-depend

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2005-24-01
 
7
 * Description : pixels antialiasing filter
 
8
 *
 
9
 * Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 *
 
11
 * This program is free software; you can redistribute it
 
12
 * and/or modify it under the terms of the GNU General
 
13
 * Public License as published by the Free Software Foundation;
 
14
 * either version 2, or (at your option)
 
15
 * any later version.
 
16
 *
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * ============================================================ */
 
23
 
 
24
#ifndef PIXELSALIASFILTERS_H
 
25
#define PIXELSALIASFILTERS_H
 
26
 
 
27
// C++ includes
 
28
 
 
29
#include <cmath>
 
30
 
 
31
// Local includes
 
32
 
 
33
#include "digikam_export.h"
 
34
#include "globals.h"
 
35
 
 
36
namespace Digikam
 
37
{
 
38
 
 
39
class DIGIKAM_EXPORT PixelsAliasFilter
 
40
{
 
41
public:
 
42
 
 
43
    PixelsAliasFilter(){};
 
44
    ~PixelsAliasFilter(){};
 
45
 
 
46
public:   // Public methods.
 
47
 
 
48
    void pixelAntiAliasing(uchar* data, int Width, int Height, double X, double Y,
 
49
                           uchar* A, uchar* R, uchar* G, uchar* B);
 
50
 
 
51
    void pixelAntiAliasing16(unsigned short* data, int Width, int Height, double X, double Y,
 
52
                             unsigned short* A, unsigned short* R, unsigned short* G, unsigned short* B);
 
53
 
 
54
private:
 
55
 
 
56
    inline int setPositionAdjusted (int Width, int Height, int X, int Y);
 
57
};
 
58
 
 
59
}  // namespace Digikam
 
60
 
 
61
#endif /* PIXELSALIASFILTERS_H */