1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*
* Image plugin to VDR (C++)
*
* (C) 2006 Andreas Brachold <anbr at users.berlios.de>
*
* This code is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Or, point your browser to http://www.gnu.org/copyleft/gpl.html
*/
#ifndef __MENU_EXIF_H
#define __MENU_EXIF_H
#include "image.h"
#include <vdr/menuitems.h>
#include <vdr/interface.h>
#include <string>
class cImageMenuExif : public cOsdMenu
{
bool m_bDisplayTags;
std::string m_strTextTag;
std::string m_strTextMarker;
protected:
virtual void Display(void);
public:
cImageMenuExif(const char *szFileName);
virtual eOSState ProcessKey(eKeys Key);
};
enum ImageExifOrientation {
IMAGE_EXIF_ORIENTATION_NONE = 0,
IMAGE_EXIF_ORIENTATION_TOP_LEFT,
IMAGE_EXIF_ORIENTATION_TOP_RIGHT,
IMAGE_EXIF_ORIENTATION_BOTTOM_RIGHT,
IMAGE_EXIF_ORIENTATION_BOTTOM_LEFT,
IMAGE_EXIF_ORIENTATION_LEFT_TOP,
IMAGE_EXIF_ORIENTATION_RIGHT_TOP,
IMAGE_EXIF_ORIENTATION_RIGHT_BOTTOM,
IMAGE_EXIF_ORIENTATION_LEFT_BOTTOM
};
enum ImageMirror {
NONE = 0,
MIRROR,
FLIP
};
ImageExifOrientation GetRotationFromExifData (const char *filename, int& rotate, ImageMirror& mirror);
#endif //__MENU_EXIF_H
|