~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/orientation.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2007 Aurélien Gâteau <agateau@kde.org>
21
21
#ifndef ORIENTATION_H
22
22
#define ORIENTATION_H
23
23
 
24
 
 
25
 
namespace Gwenview {
 
24
namespace Gwenview
 
25
{
26
26
 
27
27
/* Explanation extracted from http://sylvana.net/jpegcrop/exif_orientation.html
28
28
 
29
29
   For convenience, here is what the letter F would look like if it were tagged
30
30
correctly and displayed by a program that ignores the orientation tag (thus
31
 
showing the stored image): 
 
31
showing the stored image):
32
32
 
33
33
  1        2       3      4         5            6           7          8
34
34
 
41
41
*/
42
42
 
43
43
enum Orientation {
44
 
        NOT_AVAILABLE=0,
45
 
        NORMAL=1,
46
 
        HFLIP=2,
47
 
        ROT_180=3,
48
 
        VFLIP=4,
49
 
        TRANSPOSE=5,
50
 
        ROT_90=6,
51
 
        TRANSVERSE=7,
52
 
        ROT_270=8
 
44
    NOT_AVAILABLE = 0,
 
45
    NORMAL = 1,
 
46
    HFLIP = 2,
 
47
    ROT_180 = 3,
 
48
    VFLIP = 4,
 
49
    TRANSPOSE = 5,
 
50
    ROT_90 = 6,
 
51
    TRANSVERSE = 7,
 
52
    ROT_270 = 8
53
53
};
54
54
 
55
55
}
56
56
 
57
 
 
58
57
#endif