cyclabile.c: set a saner default x_correction value
[experiments/cyclabile.git] / projective_split.h
1 /* 
2  * Separate calculating projected coordinates and transforming the pixels.
3  *
4  * Copyright (C) 2018  Antonio Ospite <ao2@ao2.it>
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef PROJECTIVE_SPLIT_H
21 #define PROJECTIVE_SPLIT_H
22
23 #include <leptonica/allheaders.h>
24
25 struct p {
26         l_int32 x;
27         l_int32 y;
28 };
29
30 struct p *
31 _pixProjectiveSampled_precalc_map(BOX        *viewport,
32                                         l_float32  *vc);
33
34 PIX *
35 _pixProjectiveSampled_apply_map_dest_roi(PIX        *pixs,
36                                struct p   *map,
37                                l_int32     incolor,
38                                PIX        *pixd,
39                                BOX        *roi);
40
41 #ifdef USE_NEON
42 PIX *
43 _pixProjectiveSampled_apply_map_dest_roi_neon(PIX        *pixs,
44                                struct p   *map,
45                                l_int32     incolor,
46                                PIX        *pixd,
47                                BOX        *roi);
48 #endif
49
50 #endif /* PROJECTIVE_SPLIT_H */