thumbnails.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef __LIBOPENRAW_THUMBNAILS_H_
00027 #define __LIBOPENRAW_THUMBNAILS_H_
00028
00029 #include <libopenraw/types.h>
00030 #include <libopenraw/consts.h>
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036 typedef struct _Thumbnail *ORThumbnailRef;
00037
00046 or_error or_get_extract_thumbnail(const char* filename,
00047 uint32_t preferred_size,
00048 ORThumbnailRef *thumb);
00049
00052 extern ORThumbnailRef
00053 or_thumbnail_new(void);
00054
00057 extern or_error
00058 or_thumbnail_release(ORThumbnailRef thumb);
00059
00062 extern or_data_type
00063 or_thumbnail_format(ORThumbnailRef thumb);
00064
00065 extern void *
00066 or_thumbnail_data(ORThumbnailRef thumb);
00067
00068 extern size_t
00069 or_thumbnail_data_size(ORThumbnailRef thumb);
00070
00071 extern void
00072 or_thumbnail_dimensions(ORThumbnailRef thumb,
00073 uint32_t *x, uint32_t *y);
00074
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078
00079
00080 #endif