thumbnails.h

00001 /*
00002  * libopenraw - thumbnails.h
00003  *
00004  * Copyright (C) 2005-2006 Hubert Figuiere
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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

Generated on Sat Jan 27 11:36:13 2007 for libopenraw by  doxygen 1.4.7