]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-tpg: add HDMI Video Guard Band test pattern
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 13 May 2022 12:53:06 +0000 (13:53 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:30 +0000 (10:30 +0100)
commit06b751b606d9200b5b3e118de4e015a073a269f8
tree6d88a9c0366ab5c88988dae529ea57bb33673385
parent6b3de287a34a5d1f280dfe593dadbb03f6c89ddf
media: v4l2-tpg: add HDMI Video Guard Band test pattern

This inserts 4 pixels of the RGB color 0xab55ab at the left hand side of
the image. This is only done for 3 or 4 byte RGB pixel formats. The HDMI
TMDS encoding of this pixel value equals the Video Guard Band value as
defined by HDMI (see section 5.2.2.1 in the HDMI 1.3 Specification) that
preceeds the first actual pixel of a video line. If an HDMI receiver
doesn't handle this correctly, then it might keep skipping these Video
Guard Band patterns and end up with a shorter video line. So this is a
nice pattern to test with.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
include/media/tpg/v4l2-tpg.h