Commit 54d7aecc authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

backport commit #8498b1b0 from git/master to frameworks branch

CCBUGS: 344155
parent 75d205d2
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment