1 #ifndef VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ 2 #define VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ 1 3 4 /* 5 ** Copyright 2015-2022 The Khronos Group Inc. 6 ** 7 ** SPDX-License-Identifier: Apache-2.0 8 */ 9 10 /* 11 ** This header is generated from the Khronos Vulkan XML API Registry. 12 ** 13 */ 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 21 22 #define vulkan_video_codec_h264std_decode 1 23 #define STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE 2 24 #define STD_VIDEO_DECODE_H264_MVC_REF_LIST_SIZE 15 25 26 typedef enum StdVideoDecodeH264FieldOrderCount { 27 STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_TOP = 0, 28 STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_BOTTOM = 1, 29 STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_INVALID = 0x7FFFFFFF, 30 STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_MAX_ENUM = 0x7FFFFFFF 31 } StdVideoDecodeH264FieldOrderCount; 32 typedef struct StdVideoDecodeH264PictureInfoFlags { 33 uint32_t field_pic_flag : 1; 34 uint32_t is_intra : 1; 35 uint32_t IdrPicFlag : 1; 36 uint32_t bottom_field_flag : 1; 37 uint32_t is_reference : 1; 38 uint32_t complementary_field_pair : 1; 39 } StdVideoDecodeH264PictureInfoFlags; 40 41 typedef struct StdVideoDecodeH264PictureInfo { 42 uint8_t seq_parameter_set_id; 43 uint8_t pic_parameter_set_id; 44 uint16_t reserved; 45 uint16_t frame_num; 46 uint16_t idr_pic_id; 47 int32_t PicOrderCnt[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE]; 48 StdVideoDecodeH264PictureInfoFlags flags; 49 } StdVideoDecodeH264PictureInfo; 50 51 typedef struct StdVideoDecodeH264ReferenceInfoFlags { 52 uint32_t top_field_flag : 1; 53 uint32_t bottom_field_flag : 1; 54 uint32_t is_long_term : 1; 55 uint32_t is_non_existing : 1; 56 } StdVideoDecodeH264ReferenceInfoFlags; 57 58 typedef struct StdVideoDecodeH264ReferenceInfo { 59 uint16_t FrameNum; 60 uint16_t reserved; 61 int32_t PicOrderCnt[2]; 62 StdVideoDecodeH264ReferenceInfoFlags flags; 63 } StdVideoDecodeH264ReferenceInfo; 64 65 typedef struct StdVideoDecodeH264MvcElementFlags { 66 uint32_t non_idr : 1; 67 uint32_t anchor_pic : 1; 68 uint32_t inter_view : 1; 69 } StdVideoDecodeH264MvcElementFlags; 70 71 typedef struct StdVideoDecodeH264MvcElement { 72 StdVideoDecodeH264MvcElementFlags flags; 73 uint16_t viewOrderIndex; 74 uint16_t viewId; 75 uint16_t temporalId; 76 uint16_t priorityId; 77 uint16_t numOfAnchorRefsInL0; 78 uint16_t viewIdOfAnchorRefsInL0[STD_VIDEO_DECODE_H264_MVC_REF_LIST_SIZE]; 79 uint16_t numOfAnchorRefsInL1; 80 uint16_t viewIdOfAnchorRefsInL1[STD_VIDEO_DECODE_H264_MVC_REF_LIST_SIZE]; 81 uint16_t numOfNonAnchorRefsInL0; 82 uint16_t viewIdOfNonAnchorRefsInL0[STD_VIDEO_DECODE_H264_MVC_REF_LIST_SIZE]; 83 uint16_t numOfNonAnchorRefsInL1; 84 uint16_t viewIdOfNonAnchorRefsInL1[STD_VIDEO_DECODE_H264_MVC_REF_LIST_SIZE]; 85 } StdVideoDecodeH264MvcElement; 86 87 typedef struct StdVideoDecodeH264Mvc { 88 uint32_t viewId0; 89 uint32_t mvcElementCount; 90 StdVideoDecodeH264MvcElement* pMvcElements; 91 } StdVideoDecodeH264Mvc; 92 93 94 #ifdef __cplusplus 95 } 96 #endif 97 98 #endif 99