2 #define _VA_DISPLAY _H1
11 struct VADisplayWithCleanup {
12 ~VADisplayWithCleanup();
15 Display *x11_display = nullptr;
16 bool can_use_zerocopy = true; // For H.264 encoding in Nageru.
20 struct ConfigRequest {
21 std::string name; // For error texts only.
22 uint32_t rt_format, fourcc;
25 VAConfigID *config_id;
26 VAImageFormat *image_format;
28 std::unique_ptr<VADisplayWithCleanup> try_open_va(
29 const std::string &va_display, const std::vector<VAProfile> &desired_profiles, VAEntrypoint entrypoint,
30 const std::vector<ConfigRequest> &desired_configs, VAProfile *chosen_profile, std::string *error); // Can return nullptr on failure.
32 #endif // !defined(_VA_DISPLAY_H)