From ac71b69ec38908e3f1dba47113683ac78761f51a Mon Sep 17 00:00:00 2001 From: Jörgen Nilsson Date: Wed, 12 Oct 2011 14:43:17 +0200 Subject: Add background blend support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change API struct to correspond to kernel b2r2 driver updates. Instead of blending only on the destination there is now a possibility to blend on a supplied background using standard blending flags. The background blending option is enabled through setting a flag in the request. The destination blending will in this case be entirely omitted and the destination buffer is overwritten with the result of the source and background blend operation. ST-Ericsson Linux next: NA Depends-On: Ifeb8eb66c2fed97c541b09715a17251a81e493ab ST-Ericsson ID: 350337 ST-Ericsson FOSS-OUT ID: Trivial Introduce non-backward compatible changes to exposed interfaces Signed-off-by: Jörgen Nilsson Change-Id: Ia34f98cfb20e2f0486049e82581dcea28b465ed4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34025 Tested-by: Jorgen NILSSON Reviewed-by: Jimmy RUBIN Reviewed-by: QATOOLS Reviewed-by: Robert LIND --- include/blt_api.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/blt_api.h b/include/blt_api.h index df7ec8f..5d99839 100755 --- a/include/blt_api.h +++ b/include/blt_api.h @@ -465,6 +465,13 @@ enum blt_flag { * @brief Inherit process priority. */ BLT_FLAG_INHERIT_PRIO = 0x2000, + /** + * @brief Indicate that a background buffer for blend operation is supplied. + * + * B2R2_BLT_FLAG_PER_PIXEL_ALPHA_BLEND, B2R2_BLT_FLAG_SRC_IS_NOT_PREMULT, and + * B2R2_BLT_FLAG_GLOBAL_ALPHA_BLEND will control the blend operation. + */ + BLT_FLAG_BG_BLEND = 0x20000, /** * @brief Use color look-up table for color correction. * Pointer to the table must be specified in *clut field of @@ -539,6 +546,14 @@ struct blt_req { * @brief Source fill color or color key. */ uint32_t src_color; + /** + * @brief Background image. + */ + struct blt_img bg_img; + /** + * @brief Background area to be blitted. + */ + struct blt_rect bg_rect; /** * @brief Destination image. */ -- cgit v1.2.3