vid_get_viewport_live_fb in video mode - page 2 - General Discussion and Assistance - CHDK Forum  

vid_get_viewport_live_fb in video mode

  • 10 Replies

Offline reyalp

  • ******
  • 14079
Re: vid_get_viewport_live_fb in video mode
« Reply #10 on: 16 / April / 2020, 20:37:41 »
As mentioned in the normal "fast" implementation of vid_get_viewport_live_fb causes tearing when used for live view.

It should be possible to have an additional function which uses the most recent complete frame instead. This would have slightly higher latency but should look better. There might still be risk of it being updated in PTP transfer, but that it should be fairly rare outside of USB1.0 systems, since it would have to cycle through the whole 3-8 buffers while transfer was in progress.

Annoyingly, I guess this would be active_viewport_buffer - 2  mod whatever, not the trivial viewport_buffers[active_viewport_buffer]

The tearing probably looks worse on cameras / modes with more buffers, on the 8 buffer cams old data could easily be 300+ ms behind.

Previous related discussion
Don't forget what the H stands for.


Related Topics