Video tests plan for VK_KHR_video_queue
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / video / vktVideoPictureUtils.hpp
1 #ifndef _VKTVIDEOPICTUREUTILS_HPP
2 #define _VKTVIDEOPICTUREUTILS_HPP
3 /*------------------------------------------------------------------------
4  * Vulkan Conformance Tests
5  * ------------------------
6  *
7  * Copyright (c) 2021 The Khronos Group Inc.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  *//*!
22  * \file
23  * \brief Video Encoding and Decoding Picture Utility Functions
24  *//*--------------------------------------------------------------------*/
25
26 #include "vkDefs.hpp"
27 #include "extNvidiaVideoParserIf.hpp"
28
29 namespace vkt
30 {
31 namespace video
32 {
33
34 class VulkanPicture: public INvidiaVulkanPicture
35 {
36 public:
37                                                         VulkanPicture   ();
38                                                         ~VulkanPicture  ();
39
40         virtual void                    AddRef                  () override;
41         virtual void                    Release                 () override;
42         void                                    Reset                   ();
43
44 protected:
45         void                                    Clear                   ();
46
47         std::atomic<int32_t>    m_refCount;
48 };
49
50
51 } // video
52 } // vkt
53
54 #endif // _VKTVIDEOPICTUREUTILS_HPP