vaapi-utils.h 1.0 KB

1234567891011121314151617181920212223242526272829
  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, const char *func_name);
  8. void vaapi_close_device(int *fd, VADisplay dpy);
  9. bool vaapi_device_rc_supported(VAProfile profile, VADisplay dpy, uint32_t rc, const char *device_path);
  10. bool vaapi_device_bframe_supported(VAProfile profile, VADisplay dpy);
  11. bool vaapi_display_h264_supported(VADisplay dpy, const char *device_path);
  12. bool vaapi_device_h264_supported(const char *device_path);
  13. const char *vaapi_get_h264_default_device(void);
  14. bool vaapi_display_av1_supported(VADisplay dpy, const char *device_path);
  15. bool vaapi_device_av1_supported(const char *device_path);
  16. const char *vaapi_get_av1_default_device(void);
  17. #ifdef ENABLE_HEVC
  18. bool vaapi_display_hevc_supported(VADisplay dpy, const char *device_path);
  19. bool vaapi_device_hevc_supported(const char *device_path);
  20. const char *vaapi_get_hevc_default_device(void);
  21. #endif