• Ian Armstrong's avatar
    V4L/DVB (5973): ivtv: attach yuv field order to each frame · bfd7beac
    Ian Armstrong authored
    In the current driver, the field order is global. As soon as it's changed it
    takes immediate effect. This is a problem when the video changes order mid
    stream. Although it mostly works okay, the video may judder / flicker.
    
    This patch attaches the field order to the frame, so that any buffered frames
    will not be displayed until the correct field. In the event that the field
    order is changed mid stream, the driver will ensure that the previous frame
    is displayed for a minimum of 3 fields. These are the two original fields the
    frame should have occupied, plus the one extra since the new frame still has
    to wait for the correct field.
    Signed-off-by: default avatarIan Armstrong <ian@iarmst.demon.co.uk>
    Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    bfd7beac
ivtv-irq.c 28.1 KB