/* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "CL/cl_va_api_media_sharing_intel.h" #include namespace NEO { class ClDevice; class Platform; class VADevice { public: VADevice(); virtual ~VADevice(); ClDevice *getRootDeviceFromVaDisplay(Platform *pPlatform, VADisplay vaDisplay); ClDevice *getDeviceFromVA(Platform *pPlatform, VADisplay vaDisplay); static std::function fdlopen; static std::function fdlsym; static std::function fdlclose; protected: void *vaLibHandle = nullptr; void *vaGetDevice = nullptr; }; } // namespace NEO