summaryrefslogtreecommitdiff
path: root/exynos/fimg2d.h
diff options
context:
space:
mode:
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>2015-02-24 15:20:40 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-03-10 19:04:35 +0000
commit1d7e78d7877f054f7b96d6a35d50255e76aed44f (patch)
tree1f78133802b99ea91f1ac0daf3055b70c6cc6cfc /exynos/fimg2d.h
parent0ca03a4087a550646de7f26b6b53a932e8546474 (diff)
exynos: replace G2D_DOUBLE_TO_FIXED macro with function
This also avoids the floating point conversion steps and just uses pure integer arithmetic. Since the G2D hardware scaling approach is a bit unintuitive, document it in the function as well. v2: Explicitly mention the normalization constant. v3: Use common commenting style as pointed out by Emil Velikov <emil.l.velikov@gmail.com>. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Tested-by: Joonyoung Shim <jy0922.shim@samsung.com>
Diffstat (limited to 'exynos/fimg2d.h')
-rw-r--r--exynos/fimg2d.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/exynos/fimg2d.h b/exynos/fimg2d.h
index 4785e2f0..8e0321cf 100644
--- a/exynos/fimg2d.h
+++ b/exynos/fimg2d.h
@@ -25,8 +25,6 @@
#define G2D_MAX_CMD_LIST_NR 64
#define G2D_PLANE_MAX_NR 2
-#define G2D_DOUBLE_TO_FIXED(d) ((unsigned int)((d) * 65536.0))
-
enum e_g2d_color_mode {
/* COLOR FORMAT */
G2D_COLOR_FMT_XRGB8888,