vaapi-utils.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: 2022 tytan652 <[email protected]>
  2. //
  3. // SPDX-License-Identifier: GPL-2.0-or-later
  4. #pragma once
  5. #include <util/base.h>
  6. #include <va/va.h>
  7. VADisplay vaapi_open_device(int *fd, const char *device_path,
  8. const char *func_name);
  9. void vaapi_close_device(int *fd, VADisplay dpy);
  10. bool vaapi_device_rc_supported(VAProfile profile, VADisplay dpy, uint32_t rc,
  11. const char *device_path);
  12. bool vaapi_device_bframe_supported(VAProfile profile, VADisplay dpy);
  13. bool vaapi_display_h264_supported(VADisplay dpy, const char *device_path);
  14. bool vaapi_device_h264_supported(const char *device_path);
  15. const char *vaapi_get_h264_default_device(void);
  16. bool vaapi_display_av1_supported(VADisplay dpy, const char *device_path);
  17. bool vaapi_device_av1_supported(const char *device_path);
  18. const char *vaapi_get_av1_default_device(void);
  19. #ifdef ENABLE_HEVC
  20. bool vaapi_display_hevc_supported(VADisplay dpy, const char *device_path);
  21. bool vaapi_device_hevc_supported(const char *device_path);
  22. const char *vaapi_get_hevc_default_device(void);
  23. #endif