Path: blob/21.2-virgl/include/vk_video/vulkan_video_codec_h265std_decode.h
4558 views
/*1** Copyright (c) 2019-2021 The Khronos Group Inc.2**3** SPDX-License-Identifier: Apache-2.04*/56#ifndef VULKAN_VIDEO_CODEC_H265STD_DECODE_H_7#define VULKAN_VIDEO_CODEC_H265STD_DECODE_H_ 189#ifdef __cplusplus10extern "C" {11#endif1213#include "vk_video/vulkan_video_codec_h265std.h"1415// *************************************************16// Video h265 Decode related parameters:17// *************************************************1819typedef struct StdVideoDecodeH265PictureInfoFlags {20uint32_t IrapPicFlag : 1;21uint32_t IdrPicFlag : 1;22uint32_t IsReference : 1;23uint32_t short_term_ref_pic_set_sps_flag : 1;24} StdVideoDecodeH265PictureInfoFlags;2526typedef struct StdVideoDecodeH265PictureInfo {27uint8_t vps_video_parameter_set_id;28uint8_t sps_seq_parameter_set_id;29uint8_t pps_pic_parameter_set_id;30uint8_t num_short_term_ref_pic_sets;31int32_t PicOrderCntVal;32uint16_t NumBitsForSTRefPicSetInSlice; // number of bits used in st_ref_pic_set()33//when short_term_ref_pic_set_sps_flag is 0; otherwise set to 0.34uint8_t NumDeltaPocsOfRefRpsIdx; // NumDeltaPocs[ RefRpsIdx ] when short_term_ref_pic_set_sps_flag = 1, otherwise 035uint8_t RefPicSetStCurrBefore[8]; // slotIndex as used in VkVideoReferenceSlotKHR structures representing36//pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex37uint8_t RefPicSetStCurrAfter[8]; // slotIndex as used in VkVideoReferenceSlotKHR structures representing38//pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex39uint8_t RefPicSetLtCurr[8]; // slotIndex as used in VkVideoReferenceSlotKHR structures representing40//pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex41StdVideoDecodeH265PictureInfoFlags flags;42} StdVideoDecodeH265PictureInfo;4344typedef struct StdVideoDecodeH265ReferenceInfoFlags {45uint32_t is_long_term : 1;46uint32_t is_non_existing : 1;47} StdVideoDecodeH265ReferenceInfoFlags;4849typedef struct StdVideoDecodeH265ReferenceInfo {50int32_t PicOrderCntVal;51StdVideoDecodeH265ReferenceInfoFlags flags;52} StdVideoDecodeH265ReferenceInfo;5354#ifdef __cplusplus55}56#endif5758#endif // VULKAN_VIDEO_CODEC_H265STD_DECODE_H_596061