vaapi-utils.h 823 B

1234567891011121314151617181920212223242526
  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_display_h264_supported(VADisplay dpy, const char *device_path);
  13. bool vaapi_device_h264_supported(const char *device_path);
  14. const char *vaapi_get_h264_default_device(void);
  15. #ifdef ENABLE_HEVC
  16. bool vaapi_display_hevc_supported(VADisplay dpy, const char *device_path);
  17. bool vaapi_device_hevc_supported(const char *device_path);
  18. const char *vaapi_get_hevc_default_device(void);
  19. #endif