summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörgen Nilsson <jorgen.nilsson@stericsson.com>2011-10-12 14:43:17 +0200
committerKalle Vahlman <kalle.vahlman@movial.com>2011-12-14 08:38:23 +0200
commitac71b69ec38908e3f1dba47113683ac78761f51a (patch)
treec6d4376e8ebba35463e444f2405817bf0cf40d39
parent68299e69a811a4876bd27b807e22482330dcf6b0 (diff)
Add background blend support
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 <jorgen.nilsson@stericsson.com> Change-Id: Ia34f98cfb20e2f0486049e82581dcea28b465ed4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34025 Tested-by: Jorgen NILSSON <jorgen.nilsson@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Robert LIND <robert.lind@stericsson.com>
-rwxr-xr-xinclude/blt_api.h15
1 files changed, 15 insertions, 0 deletions
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
@@ -466,6 +466,13 @@ enum blt_flag {
*/
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
* the b2r2_blt_req structure.
@@ -540,6 +547,14 @@ struct blt_req {
*/
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.
*/
struct blt_img dst_img;