libopenraw
cfapattern.h
1 /*
2  * libopenraw - cfapattern.h
3  *
4  * Copyright (C) 2016 Hubert Figuière
5  *
6  * This library is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3 of
9  * the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 #ifndef LIBOPENRAW_CFAPATTERN_H_
23 #define LIBOPENRAW_CFAPATTERN_H_
24 
25 #include <stdint.h>
26 
27 #include <libopenraw/consts.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 typedef const struct _CfaPattern *ORCfaPatternRef;
34 
35 void or_cfapattern_set_size(ORCfaPatternRef pattern, uint16_t x, uint16_t y);
36 
37 or_cfa_pattern or_cfapattern_get_type(ORCfaPatternRef);
38 
39 const uint8_t *or_cfapattern_get_pattern(ORCfaPatternRef pattern, uint16_t * count);
40 
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif
47 
48 
49