mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
media: videodev2.h: V4L2_DV_BT_BLANKING_HEIGHT should check 'interlaced'
If it is a progressive (non-interlaced) format, then ignore the
interlaced timing values.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 7f68127fa1
([media] videodev2.h: defines to calculate blanking and frame sizes)
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
4b6d66a45e
commit
8da7f0976b
1 changed files with 2 additions and 1 deletions
|
@ -1601,7 +1601,8 @@ struct v4l2_bt_timings {
|
||||||
((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
|
((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
|
||||||
#define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
|
#define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
|
||||||
((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
|
((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
|
||||||
(bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
|
((bt)->interlaced ? \
|
||||||
|
((bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch) : 0))
|
||||||
#define V4L2_DV_BT_FRAME_HEIGHT(bt) \
|
#define V4L2_DV_BT_FRAME_HEIGHT(bt) \
|
||||||
((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
|
((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue