Hydra 0.20
hydra.src/hydra/Exif.h
00001 
00002 /*
00003  * Copyright (c) 2009 Aleksander B. Demko
00004  * This source code is distributed under the MIT license.
00005  * See the accompanying file LICENSE.MIT.txt for details.
00006  */
00007 
00008 #ifndef __INCLUDED_HYDRA_EXIF_H__
00009 #define __INCLUDED_HYDRA_EXIF_H__
00010 
00011 #include <QString>
00012 #include <QImage>
00013 
00014 namespace hydra
00015 {
00016   /**
00017    * Detects the auto rotation information in the file, if any.
00018    * returns:
00019    * -1 error/no exif found.
00020    * 0 do not rotate
00021    * 1 rotate 90 degrees cw
00022    * 2 rotate 180 degrees cw
00023    * 3 rotate 270 degrees cw
00024    *
00025    * If exif detection support is not compiled, this function will always return 0.
00026    *
00027    * @author Aleksander Demko
00028    */ 
00029   short detectExifRotate(const QString &filename);
00030 }
00031 
00032 #endif
00033 
 All Classes Namespaces Functions Variables