1. 09 Jun, 2019 2 commits
  2. 07 Jun, 2019 8 commits
  3. 06 Jun, 2019 2 commits
  4. 05 Jun, 2019 4 commits
  5. 04 Jun, 2019 9 commits
  6. 03 Jun, 2019 7 commits
  7. 02 Jun, 2019 1 commit
  8. 03 Jun, 2019 3 commits
  9. 02 Jun, 2019 4 commits
    • Mark Thompson's avatar
      hwcontext_qsv: Try to select a matching VAAPI device by default · 468f0038
      Mark Thompson authored
      Tries to find a device backed by the i915 kernel driver and loads the iHD
      VAAPI driver to use with it.  This reduces confusion on machines with
      multiple DRM devices and removes the surprising requirement to set the
      LIBVA_DRIVER_NAME environment variable to use libmfx at all.
      468f0038
    • Mark Thompson's avatar
      hwcontext_vaapi: Try to create devices via DRM before X11 · 0b4696fb
      Mark Thompson authored
      Opening the device via X11 (DRI2/DRI3) rather than opening a DRM render
      node directly is only useful if you intend to use the legacy X11 interop
      functions.  That's never true for the ffmpeg utility, and a library user
      who does want this will likely provide their own display instance rather
      than making a new one here.
      0b4696fb
    • Mark Thompson's avatar
      hwcontext_vaapi: Add option to set driver name · 7f3f5a24
      Mark Thompson authored
      For example: -init_hw_device vaapi:/dev/dri/renderD128,driver=foo
      
      This may be more convenient that using the environment variable, and allows
      loading different drivers for different devices in the same process.
      7f3f5a24
    • Mark Thompson's avatar
      hwcontext_vaapi: Make default DRM device selection more helpful · 6b6b8a63
      Mark Thompson authored
      Iterate over available render devices and pick the first one which looks
      usable.  Adds an option to specify the name of the kernel driver associated
      with the desired device, so that it is possible to select a specific type
      of device in a multiple-device system without knowing the card numbering.
      
      For example: -init_hw_device vaapi:,kernel_driver=amdgpu will select only
      devices using the "amdgpu" driver (as used with recent AMD graphics cards).
      
      Kernel driver selection requires libdrm to work.
      6b6b8a63