summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qimagescale_p.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2015-04-07 11:20:08 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-04-15 11:25:41 +0000
commit7432c7c08a6709a12a143d48fbaa9927962edae8 (patch)
tree8e4bec4c675cef7429edca53ab53477d33209ae0 /src/gui/painting/qimagescale_p.h
parent884679a7cc74b85d6c565316520304a9c73b5f04 (diff)
Cleanup and optimization of qimage smoothscale
Cleaning up smoothscale code. Upscaling is improved using existing optimized interpolation methods, and downscale is given SSE4.1 optimized versions. Change-Id: I7cdc256c26850948aef7dae26fda1622be6b8179 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/painting/qimagescale_p.h')
-rw-r--r--src/gui/painting/qimagescale_p.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/painting/qimagescale_p.h b/src/gui/painting/qimagescale_p.h
index 512ec6488e..c35aea451a 100644
--- a/src/gui/painting/qimagescale_p.h
+++ b/src/gui/painting/qimagescale_p.h
@@ -53,6 +53,15 @@ QT_BEGIN_NAMESPACE
*/
QImage qSmoothScaleImage(const QImage &img, int w, int h);
+namespace QImageScale {
+ struct QImageScaleInfo {
+ int *xpoints;
+ const unsigned int **ypoints;
+ int *xapoints, *yapoints;
+ int xup_yup;
+ };
+}
+
QT_END_NAMESPACE
#endif