From 03c9cccfa03b999874f794c02ddce7e7dfb04c93 Mon Sep 17 00:00:00 2001 From: Tobias Jakobi Date: Wed, 11 Mar 2015 20:38:41 +0100 Subject: exynos: add g2d_scale_and_blend This is a combination of g2d_copy_with_scale and g2d_scale. It is a pretty common operation to scale one buffer and then blend it on top of another, so provide a direct way to that operation. Signed-off-by: Tobias Jakobi Reviewed-by: Inki Dae Tested-by: Joonyoung Shim --- exynos/fimg2d.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'exynos/fimg2d.h') diff --git a/exynos/fimg2d.h b/exynos/fimg2d.h index c6d67caf..f76f2a9f 100644 --- a/exynos/fimg2d.h +++ b/exynos/fimg2d.h @@ -314,4 +314,9 @@ int g2d_blend(struct g2d_context *ctx, struct g2d_image *src, struct g2d_image *dst, unsigned int src_x, unsigned int src_y, unsigned int dst_x, unsigned int dst_y, unsigned int w, unsigned int h, enum e_g2d_op op); +int g2d_scale_and_blend(struct g2d_context *ctx, struct g2d_image *src, + struct g2d_image *dst, unsigned int src_x, unsigned int src_y, + unsigned int src_w, unsigned int src_h, unsigned int dst_x, + unsigned int dst_y, unsigned int dst_w, unsigned int dst_h, + enum e_g2d_op op); #endif /* _FIMG2D_H_ */ -- cgit v1.2.3