aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorDavid Wood <d01.devel@gmail.com>2026-09-18 18:07:42 -0400
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-10-01 12:45:50 +0200
commitfb14bf6eaf13e15bf6e539c869351a8d5fe61f68 (patch)
tree1ac0b60c9f07754d8ac25dd1c687423bb568eac5 /scripts/Makefile.thinlto
parentmedia: em28xx: add StarTech.com SVID2USB23 with working audio capture (diff)
media: em28xx: complete frames from non-interlaced sources
Non-interlaced 60 Hz sources, such as the 240p output of classic game consoles, produce 262 lines per field with no half-line offset, so every field has the same parity. The TVP5150 tracks such a signal without trouble (locked, 60 Hz, vertical line count 524 instead of 525) but reports the same field ID for every field, and the em2860 forwards that in its field-start header. On an EM2860/TVP5150 reference design (eb1a:5051) fed by a NES, 112 of 113 consecutive headers in a 6 s stream carry field ID 1 (bottom); the lone top-field header is the first one. finish_field_prepare_next() only completes a buffer and starts the next one when a top field arrives, so with such a source no frame is ever delivered: streaming starts, the first buffer never finishes, and the application sits in select() until it times out. Disturbing the cable briefly loses sync, yields a stray top-field header and lets a single frame through -- the "one frame, then it freezes" symptom. Track the previous field ID. When a header repeats the ID of the field before it, give the new field the opposite parity instead of taking the ID literally, so consecutive fields are woven into a frame the same way a genuine top/bottom pair is. Interlaced streams alternate IDs and are unaffected. A dropped field in one now lands two bottom fields in the same buffer, which the copy path already tolerates, and the following top field starts a new frame as before. With this the NES streams at 29.9 fps with a stable, correctly woven picture. Each frame holds two consecutive progressive source frames, so an application that wants the source's 60 fps back can bob-deinterlace. Signed-off-by: David Wood <d01.devel@gmail.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions