libopenraw
metadata.h
1 /*
2  * libopenraw - metadata.h
3  *
4  * Copyright (C) 2007-2016 Hubert Figuiere
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_METADATA_H_
23 #define LIBOPENRAW_METADATA_H_
24 
25 #include <stdint.h>
26 
27 #define INCLUDE_EXIF_
28 #include <libopenraw/exif.h>
29 #undef INCLUDE_EXIF_
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 typedef struct _MetaValue *ORMetaValueRef;
36 typedef const struct _MetaValue *ORConstMetaValueRef;
37 
39 enum {
40  META_NS_EXIF = (1 << 16),
41  META_NS_TIFF = (2 << 16)
42 };
43 
44 #define META_NS_MASKOUT(x) (x & 0xffff)
45 #define META_INDEX_MASKOUT(x) (x & (0xffff<<16))
46 
47 const char* or_metavalue_get_string(ORConstMetaValueRef value, uint32_t idx);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif