]> git.sesse.net Git - ffmpeg/commit
kmsgrab: Use GetFB2 if available
authorMark Thompson <sw@jkqxz.net>
Sun, 5 Jul 2020 15:49:44 +0000 (16:49 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 9 Aug 2020 19:18:48 +0000 (20:18 +0100)
commitef934dba2d0caab7ab778c99c6005b8b9720eb27
treea12840b1732d528234a36f287d6db311735b952b
parentfa0b064cf2ff267feaa9405ffd0ca74280f274d9
kmsgrab: Use GetFB2 if available

The most useful feature here is the ability to automatically extract the
framebuffer format and modifiers.  It also makes support for multi-plane
framebuffers possible, though none are added to the format table in this
patch.

This requires libdrm 2.4.101 (from April 2020) to build, so it includes a
configure check to allow compatibility with existing distributions.  Even
with libdrm support, it still won't do anything at runtime if you are
running Linux < 5.7 (before June 2020).
configure
libavdevice/kmsgrab.c