Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
libkexiv2
Commits
54d7aecc
Commit
54d7aecc
authored
Feb 22, 2015
by
Gilles Caulier
🗼
Browse files
backport commit #
8498b1b0
from git/master to frameworks branch
CCBUGS: 344155
parent
75d205d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rotationmatrix.cpp
View file @
54d7aecc
...
...
@@ -27,8 +27,6 @@
#include "rotationmatrix.h"
// local includes
namespace
KExiv2Iface
{
...
...
@@ -59,9 +57,9 @@ namespace KExiv2Iface
(I did not proof that mathematically, but empirically)
static const RotationMatrix identity; //( 1, 0, 0, 1)
static const RotationMatrix rotate90; //( 0,
-
1,
1, 0)
static const RotationMatrix rotate90; //( 0,
1,
-
1, 0)
static const RotationMatrix rotate180; //(-1, 0, 0, -1)
static const RotationMatrix rotate270; //( 0,
1,
-
1, 0)
static const RotationMatrix rotate270; //( 0,
-
1,
1, 0)
static const RotationMatrix flipHorizontal; //(-1, 0, 0, 1)
static const RotationMatrix flipVertical; //( 1, 0, 0, -1)
static const RotationMatrix rotate90flipHorizontal; //( 0, 1, 1, 0), first rotate, then flip
...
...
@@ -73,9 +71,9 @@ namespace Matrix
{
static
const
RotationMatrix
identity
(
1
,
0
,
0
,
1
);
static
const
RotationMatrix
rotate90
(
0
,
-
1
,
1
,
0
);
static
const
RotationMatrix
rotate90
(
0
,
1
,
-
1
,
0
);
static
const
RotationMatrix
rotate180
(
-
1
,
0
,
0
,
-
1
);
static
const
RotationMatrix
rotate270
(
0
,
1
,
-
1
,
0
);
static
const
RotationMatrix
rotate270
(
0
,
-
1
,
1
,
0
);
static
const
RotationMatrix
flipHorizontal
(
-
1
,
0
,
0
,
1
);
static
const
RotationMatrix
flipVertical
(
1
,
0
,
0
,
-
1
);
static
const
RotationMatrix
rotate90flipHorizontal
(
0
,
1
,
1
,
0
);
...
...
@@ -125,7 +123,7 @@ RotationMatrix matrix(KExiv2::ImageOrientation exifOrientation)
case
KExiv2
::
ORIENTATION_UNSPECIFIED
:
return
identity
;
}
return
identity
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment