libopenraw  0.3.7
mosaicinfo.h
1 /*
2  * libopenraw - mosaicinfo.h
3  *
4  * Copyright (C) 2016-2020 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 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
40 typedef const struct _MosaicInfo *ORMosaicInfoRef;
41 
43 void or_mosaicinfo_set_size(ORMosaicInfoRef pattern, uint16_t x, uint16_t y);
45 void or_mosaicinfo_get_size(ORMosaicInfoRef pattern, uint16_t *x, uint16_t *y);
46 
49 
59 const uint8_t* or_mosaicinfo_get_pattern(ORMosaicInfoRef pattern, uint16_t* count);
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
67 #endif
68 
69 
70 
void or_mosaicinfo_get_size(ORMosaicInfoRef pattern, uint16_t *x, uint16_t *y)
Get the size of the mosaic.
or_cfa_pattern or_mosaicinfo_get_type(ORMosaicInfoRef)
Get the type of the mosaic.
Definition: mosaicinfo.cpp:30
const struct _MosaicInfo * ORMosaicInfoRef
A MosaicInfo object.
Definition: mosaicinfo.h:40
const uint8_t * or_mosaicinfo_get_pattern(ORMosaicInfoRef pattern, uint16_t *count)
Get the pattern.
Definition: mosaicinfo.cpp:36
void or_mosaicinfo_set_size(ORMosaicInfoRef pattern, uint16_t x, uint16_t y)
Set the size of the mosaic.
or_cfa_pattern
CFA pattern types.
Definition: consts.h:94