v4l: vsp1: bru: Support premultiplied alpha at the BRU inputs
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 27 May 2014 23:35:36 +0000 (20:35 -0300)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:32 +0000 (09:24 +0900)
commitae78c0b7b7647f82de91cad3eb9199ac8756cdd0
tree0b2cfb204e23b26327f36569a0bc82a353d27ec8
parent1523d06beec01d2a8f8b1614d54578fcebe1bb81
v4l: vsp1: bru: Support premultiplied alpha at the BRU inputs

Adjust the BRU blending formula to avoid the multiplication by alpha
when the corresponding input format is premultiplied. As this requires
access to the RPFs connected to the BRU inputs from the BRU module,
store pointers to the RPFs in the BRU structure when validating the
pipeline.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
(cherry picked from commit 6418b4d6e1f1d70199a93eeeed948be2229b9c1a)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/media/platform/vsp1/vsp1_bru.c
drivers/media/platform/vsp1/vsp1_bru.h
drivers/media/platform/vsp1/vsp1_video.c