staging: vc04_services: isp: Set the YUV420/YVU420 format stride to 64 bytes
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 29 Jun 2021 11:50:58 +0000 (12:50 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 29 Jun 2021 12:42:57 +0000 (13:42 +0100)
commitd50f7d9d923b60e13b50041f7ace1a272190d6a6
tree14385ce396f9e405b20ca63054dd38c1ef1a962d
parent4e55e875bad40cd9419ab76262b745d9c016057d
staging: vc04_services: isp: Set the YUV420/YVU420 format stride to 64 bytes

The bcm2835 ISP requires the base address of all input/output planes to have 32
byte alignment. Using a Y stride of 32 bytes would not guarantee that the V
plane would fulfil this, e.g. a height of 650 lines would mean the V plane
buffer is not 32 byte aligned for YUV420 formats.

Having a Y stride of 64 bytes would ensure both U and V planes have a 32 byte
alignment, as the luma height will always be an even number of lines.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-isp/bcm2835-isp-fmts.h