libopenraw
thumbnails.h
1 /*
2  * libopenraw - thumbnails.h
3  *
4  * Copyright (C) 2005-2006 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  */
26 #ifndef __LIBOPENRAW_THUMBNAILS_H_
27 #define __LIBOPENRAW_THUMBNAILS_H_
28 
29 #include <libopenraw/types.h>
30 #include <libopenraw/consts.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36  typedef struct _Thumbnail *ORThumbnailRef;
37 
46  or_error or_get_extract_thumbnail(const char* filename,
47  uint32_t preferred_size,
48  ORThumbnailRef *thumb);
49 
52  extern ORThumbnailRef
53  or_thumbnail_new(void);
54 
57  extern or_error
58  or_thumbnail_release(ORThumbnailRef thumb);
59 
62  extern or_data_type
63  or_thumbnail_format(ORThumbnailRef thumb);
64 
65  extern void *
66  or_thumbnail_data(ORThumbnailRef thumb);
67 
68  extern size_t
69  or_thumbnail_data_size(ORThumbnailRef thumb);
70 
71  extern void
72  or_thumbnail_dimensions(ORThumbnailRef thumb,
73  uint32_t *x, uint32_t *y);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 
80 #endif