1e5c31af7Sopenharmony_ci#ifndef _VKTVIDEOCLIPINFO_HPP
2e5c31af7Sopenharmony_ci#define _VKTVIDEOCLIPINFO_HPP
3e5c31af7Sopenharmony_ci/*------------------------------------------------------------------------
4e5c31af7Sopenharmony_ci * Vulkan Conformance Tests
5e5c31af7Sopenharmony_ci * ------------------------
6e5c31af7Sopenharmony_ci *
7e5c31af7Sopenharmony_ci * Copyright (c) 2023 The Khronos Group Inc.
8e5c31af7Sopenharmony_ci *
9e5c31af7Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
10e5c31af7Sopenharmony_ci * you may not use this file except in compliance with the License.
11e5c31af7Sopenharmony_ci * You may obtain a copy of the License at
12e5c31af7Sopenharmony_ci *
13e5c31af7Sopenharmony_ci *	  http://www.apache.org/licenses/LICENSE-2.0
14e5c31af7Sopenharmony_ci *
15e5c31af7Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
16e5c31af7Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
17e5c31af7Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18e5c31af7Sopenharmony_ci * See the License for the specific language governing permissions and
19e5c31af7Sopenharmony_ci * limitations under the License.
20e5c31af7Sopenharmony_ci *
21e5c31af7Sopenharmony_ci *//*!
22e5c31af7Sopenharmony_ci * \file
23e5c31af7Sopenharmony_ci * \brief Reference checksums for video decode validation
24e5c31af7Sopenharmony_ci *
25e5c31af7Sopenharmony_ci * See the <vulkan_data_dir>/vulkan/video/frame_checksums.py file for
26e5c31af7Sopenharmony_ci * instructions on generating the checksums for new tests.
27e5c31af7Sopenharmony_ci *--------------------------------------------------------------------*/
28e5c31af7Sopenharmony_ci#include "deDefs.hpp"
29e5c31af7Sopenharmony_ci#include "vktVideoTestUtils.hpp"
30e5c31af7Sopenharmony_ci
31e5c31af7Sopenharmony_ci#include <array>
32e5c31af7Sopenharmony_ci#include <string>
33e5c31af7Sopenharmony_ci#include <sstream>
34e5c31af7Sopenharmony_ci
35e5c31af7Sopenharmony_ci
36e5c31af7Sopenharmony_cinamespace vkt
37e5c31af7Sopenharmony_ci{
38e5c31af7Sopenharmony_cinamespace video
39e5c31af7Sopenharmony_ci{
40e5c31af7Sopenharmony_ci
41e5c31af7Sopenharmony_cienum ClipName
42e5c31af7Sopenharmony_ci{
43e5c31af7Sopenharmony_ci	CLIP_A = 0,
44e5c31af7Sopenharmony_ci	CLIP_B,
45e5c31af7Sopenharmony_ci	CLIP_C,
46e5c31af7Sopenharmony_ci	CLIP_D,
47e5c31af7Sopenharmony_ci	CLIP_H264_4K_26_IBP_MAIN,
48e5c31af7Sopenharmony_ci	CLIP_JELLY_HEVC,
49e5c31af7Sopenharmony_ci
50e5c31af7Sopenharmony_ci	CLIP_LAST,
51e5c31af7Sopenharmony_ci};
52e5c31af7Sopenharmony_ci
53e5c31af7Sopenharmony_cistruct VideoProfileInfo
54e5c31af7Sopenharmony_ci{
55e5c31af7Sopenharmony_ci	VkVideoCodecOperationFlagBitsKHR	codecOperation;
56e5c31af7Sopenharmony_ci	VkVideoChromaSubsamplingFlagBitsKHR subsamplingFlags;
57e5c31af7Sopenharmony_ci	VkVideoComponentBitDepthFlagBitsKHR lumaBitDepth;
58e5c31af7Sopenharmony_ci	VkVideoComponentBitDepthFlagBitsKHR chromaBitDepth;
59e5c31af7Sopenharmony_ci
60e5c31af7Sopenharmony_ci	int profileIDC; // TODO: Avoid type-punning
61e5c31af7Sopenharmony_ci};
62e5c31af7Sopenharmony_ci
63e5c31af7Sopenharmony_cistruct ClipInfo
64e5c31af7Sopenharmony_ci{
65e5c31af7Sopenharmony_ci	ClipName	 name;
66e5c31af7Sopenharmony_ci	const char*	 filename;
67e5c31af7Sopenharmony_ci	VideoProfileInfo profile;
68e5c31af7Sopenharmony_ci	int			 totalFrames;
69e5c31af7Sopenharmony_ci	int			 framesInGOP;
70e5c31af7Sopenharmony_ci	int			 numGOPs;
71e5c31af7Sopenharmony_ci	const char** frameChecksums;
72e5c31af7Sopenharmony_ci};
73e5c31af7Sopenharmony_ci
74e5c31af7Sopenharmony_ciconst ClipInfo* clipInfo(ClipName c);
75e5c31af7Sopenharmony_ciconst char* checksumForClipFrame(const ClipInfo* cinfo, int frameNumber);
76e5c31af7Sopenharmony_ci
77e5c31af7Sopenharmony_ci} // namespace video
78e5c31af7Sopenharmony_ci} // namespace vkt
79e5c31af7Sopenharmony_ci#endif // _VKTVIDEOCLIPINFO_HPP
80