App

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

TFilter.cpp
Go to the documentation of this file.
1
6 #include "TFilter.hpp"
7
8 namespace app {
9
10 template class TFilter<px_4x8bit, px_1x8bit> ;
11 template class TFilter<px_1x8bit, px_1x8bit> ;
12
13 template<typename TPIXEL, typename TCHANNEL>
14 TFilter<TPIXEL, TCHANNEL>::~TFilter() {
15 }
16
17 template<typename TPIXEL, typename TCHANNEL>
18 int TFilter<TPIXEL, TCHANNEL>::applyTo_1ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, Rect dstArea) {
19 return 999;
20 }
21 template<typename TPIXEL, typename TCHANNEL>
22 int TFilter<TPIXEL, TCHANNEL>::applyTo_1ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, Rect dstRect, double alpha) {
23 return 999;
24 }
25 template<typename TPIXEL, typename TCHANNEL>
26 int TFilter<TPIXEL, TCHANNEL>::applyTo_1ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, TBitmap<TCHANNEL, TCHANNEL> &msk, Rect mskRect, Point mskOrig) {
27 return 999;
28 }
29 template<typename TPIXEL, typename TCHANNEL>
30 int TFilter<TPIXEL, TCHANNEL>::applyTo_1ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, TBitmap<TCHANNEL, TCHANNEL> &msk, Rect mskRect, Point mskOrig, double alpha) {
31 return 999;
32 }
33
34 template<typename TPIXEL, typename TCHANNEL>
35 int TFilter<TPIXEL, TCHANNEL>::applyTo_4ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, Rect dstRect) {
36 return 999;
37 }
38 template<typename TPIXEL, typename TCHANNEL>
39 int TFilter<TPIXEL, TCHANNEL>::applyTo_4ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, Rect dstRect, double alpha) {
40 return 999;
41 }
42 template<typename TPIXEL, typename TCHANNEL>
43 int TFilter<TPIXEL, TCHANNEL>::applyTo_4ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, TBitmap<TCHANNEL, TCHANNEL> &msk, Rect mskRect, Point mskOrig) {
44 return 999;
45 }
46 template<typename TPIXEL, typename TCHANNEL>
47 int TFilter<TPIXEL, TCHANNEL>::applyTo_4ch(TBitmap<TPIXEL, TCHANNEL> &bitmap, TBitmap<TCHANNEL, TCHANNEL> &msk, Rect mskRect, Point mskOrig, double alpha) {
48 return 999;
49 }
50
51 template<typename TPIXEL, typename TCHANNEL>
52 int TFilter<TPIXEL, TCHANNEL>::applyTo(TBitmap<TPIXEL, TCHANNEL> &bitmap, Rect dstRect) {
53 if (chCount == 1) {
54 return applyTo_1ch(bitmap, dstRect);
55 } else if (chCount == 4) {
56 return applyTo_4ch(bitmap, dstRect);
57 } else {
58 return 888;
59 }
60 }
61 template<typename TPIXEL, typename TCHANNEL>
62 int TFilter<TPIXEL, TCHANNEL>::applyTo(TBitmap<TPIXEL, TCHANNEL> &bitmap, Rect dstRect, double alpha) {
63 if (chCount == 1) {
64 return applyTo_1ch(bitmap, dstRect, alpha);
65 } else if (chCount == 4) {
66 return applyTo_4ch(bitmap, dstRect, alpha);
67 } else {
68 return 888;
69 }
70 }
71 template<typename TPIXEL, typename TCHANNEL>
72 int TFilter<TPIXEL, TCHANNEL>::applyTo(TBitmap<TPIXEL, TCHANNEL> &bitmap, TBitmap<TCHANNEL, TCHANNEL> &msk, Rect mskRect, Point mskOrig) {
73 if (chCount == 1) {
74 return applyTo_1ch(bitmap, msk, mskRect, mskOrig);
75 } else if (chCount == 4) {
76 return applyTo_4ch(bitmap, msk, mskRect, mskOrig);
77 } else {
78 return 888;
79 }
80 }
81 template<typename TPIXEL, typename TCHANNEL>
82 int TFilter<TPIXEL, TCHANNEL>::applyTo(TBitmap<TPIXEL, TCHANNEL> &bitmap, TBitmap<TCHANNEL, TCHANNEL> &msk, Rect mskRect, Point mskOrig, double alpha) {
83 if (chCount == 1) {
84 return applyTo_1ch(bitmap, msk, mskRect, mskOrig, alpha);
85 } else if (chCount == 4) {
86 return applyTo_4ch(bitmap, msk, mskRect, mskOrig, alpha);
87 } else {
88 return 888;
89 }
90 }
91
92 } /* namespace appdemo */