-
Notifications
You must be signed in to change notification settings - Fork 1
/
exif.h
52 lines (44 loc) · 1.14 KB
/
exif.h
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
/*
* Image plugin to VDR (C++)
*
* (C) 2006-2011 Andreas Brachold <vdr07 at deltab.de>
*
* This code is distributed under the terms and conditions of the
* GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
*
*/
#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