| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#pragma once |
| 21 |
|
| 22 |
#ifdef G_OS_WIN32 |
| 23 |
#include <windows.h> |
| 24 |
#else |
| 25 |
typedef int INT; |
| 26 |
typedef unsigned int UINT; |
| 27 |
typedef unsigned int UINT32; |
| 28 |
typedef unsigned char UCHAR; |
| 29 |
typedef unsigned char BYTE; |
| 30 |
typedef char CHAR; |
| 31 |
typedef unsigned short UINT16; |
| 32 |
typedef unsigned short USHORT; |
| 33 |
typedef unsigned short WORD; |
| 34 |
typedef unsigned long ULONG; |
| 35 |
typedef unsigned long DWORD; |
| 36 |
typedef short SHORT; |
| 37 |
#endif |
| 38 |
|
| 39 |
G_BEGIN_DECLS |
| 40 |
|
| 41 |
#pragma pack(push, BeforeDXVApacking, 1) |
| 42 |
typedef struct _DXVA_PicEntry_H264 |
| 43 |
{ |
| 44 |
union |
| 45 |
{ |
| 46 |
struct |
| 47 |
{ |
| 48 |
UCHAR Index7Bits:7; |
| 49 |
UCHAR AssociatedFlag:1; |
| 50 |
}; |
| 51 |
UCHAR bPicEntry; |
| 52 |
}; |
| 53 |
} DXVA_PicEntry_H264, *LPDXVA_PicEntry_H264; |
| 54 |
|
| 55 |
typedef struct _DXVA_PicParams_H264 |
| 56 |
{ |
| 57 |
USHORT wFrameWidthInMbsMinus1; |
| 58 |
USHORT wFrameHeightInMbsMinus1; |
| 59 |
DXVA_PicEntry_H264 CurrPic; |
| 60 |
UCHAR num_ref_frames; |
| 61 |
|
| 62 |
union |
| 63 |
{ |
| 64 |
struct |
| 65 |
{ |
| 66 |
USHORT field_pic_flag:1; |
| 67 |
USHORT MbaffFrameFlag:1; |
| 68 |
USHORT residual_colour_transform_flag:1; |
| 69 |
USHORT sp_for_switch_flag:1; |
| 70 |
USHORT chroma_format_idc:2; |
| 71 |
USHORT RefPicFlag:1; |
| 72 |
USHORT constrained_intra_pred_flag:1; |
| 73 |
|
| 74 |
USHORT weighted_pred_flag:1; |
| 75 |
USHORT weighted_bipred_idc:2; |
| 76 |
USHORT MbsConsecutiveFlag:1; |
| 77 |
USHORT frame_mbs_only_flag:1; |
| 78 |
USHORT transform_8x8_mode_flag:1; |
| 79 |
USHORT MinLumaBipredSize8x8Flag:1; |
| 80 |
USHORT IntraPicFlag:1; |
| 81 |
}; |
| 82 |
USHORT wBitFields; |
| 83 |
}; |
| 84 |
UCHAR bit_depth_luma_minus8; |
| 85 |
UCHAR bit_depth_chroma_minus8; |
| 86 |
|
| 87 |
USHORT Reserved16Bits; |
| 88 |
UINT StatusReportFeedbackNumber; |
| 89 |
|
| 90 |
DXVA_PicEntry_H264 RefFrameList[16]; |
| 91 |
INT CurrFieldOrderCnt[2]; |
| 92 |
INT FieldOrderCntList[16][2]; |
| 93 |
|
| 94 |
CHAR pic_init_qs_minus26; |
| 95 |
CHAR chroma_qp_index_offset; |
| 96 |
CHAR second_chroma_qp_index_offset; |
| 97 |
UCHAR ContinuationFlag; |
| 98 |
|
| 99 |
|
| 100 |
CHAR pic_init_qp_minus26; |
| 101 |
UCHAR num_ref_idx_l0_active_minus1; |
| 102 |
UCHAR num_ref_idx_l1_active_minus1; |
| 103 |
UCHAR Reserved8BitsA; |
| 104 |
|
| 105 |
USHORT FrameNumList[16]; |
| 106 |
UINT UsedForReferenceFlags; |
| 107 |
USHORT NonExistingFrameFlags; |
| 108 |
USHORT frame_num; |
| 109 |
|
| 110 |
UCHAR log2_max_frame_num_minus4; |
| 111 |
UCHAR pic_order_cnt_type; |
| 112 |
UCHAR log2_max_pic_order_cnt_lsb_minus4; |
| 113 |
UCHAR delta_pic_order_always_zero_flag; |
| 114 |
|
| 115 |
UCHAR direct_8x8_inference_flag; |
| 116 |
UCHAR entropy_coding_mode_flag; |
| 117 |
UCHAR pic_order_present_flag; |
| 118 |
UCHAR num_slice_groups_minus1; |
| 119 |
|
| 120 |
UCHAR slice_group_map_type; |
| 121 |
UCHAR deblocking_filter_control_present_flag; |
| 122 |
UCHAR redundant_pic_cnt_present_flag; |
| 123 |
UCHAR Reserved8BitsB; |
| 124 |
|
| 125 |
USHORT slice_group_change_rate_minus1; |
| 126 |
|
| 127 |
UCHAR SliceGroupMap[810]; |
| 128 |
|
| 129 |
} DXVA_PicParams_H264, *LPDXVA_PicParams_H264; |
| 130 |
|
| 131 |
typedef struct _DXVA_Qmatrix_H264 |
| 132 |
{ |
| 133 |
UCHAR bScalingLists4x4[6][16]; |
| 134 |
UCHAR bScalingLists8x8[2][64]; |
| 135 |
|
| 136 |
} DXVA_Qmatrix_H264, *LPDXVA_Qmatrix_H264; |
| 137 |
|
| 138 |
typedef struct _DXVA_Slice_H264_Short |
| 139 |
{ |
| 140 |
UINT BSNALunitDataLocation; |
| 141 |
UINT SliceBytesInBuffer; |
| 142 |
USHORT wBadSliceChopping; |
| 143 |
} DXVA_Slice_H264_Short, *LPDXVA_Slice_H264_Short; |
| 144 |
|
| 145 |
typedef struct _DXVA_PicEntry_HEVC |
| 146 |
{ |
| 147 |
union |
| 148 |
{ |
| 149 |
struct |
| 150 |
{ |
| 151 |
UCHAR Index7Bits:7; |
| 152 |
UCHAR AssociatedFlag:1; |
| 153 |
}; |
| 154 |
UCHAR bPicEntry; |
| 155 |
}; |
| 156 |
} DXVA_PicEntry_HEVC, *LPDXVA_PicEntry_HEVC; |
| 157 |
|
| 158 |
typedef struct _DXVA_PicParams_HEVC |
| 159 |
{ |
| 160 |
USHORT PicWidthInMinCbsY; |
| 161 |
USHORT PicHeightInMinCbsY; |
| 162 |
union |
| 163 |
{ |
| 164 |
struct |
| 165 |
{ |
| 166 |
USHORT chroma_format_idc:2; |
| 167 |
USHORT separate_colour_plane_flag:1; |
| 168 |
USHORT bit_depth_luma_minus8:3; |
| 169 |
USHORT bit_depth_chroma_minus8:3; |
| 170 |
USHORT log2_max_pic_order_cnt_lsb_minus4:4; |
| 171 |
USHORT NoPicReorderingFlag:1; |
| 172 |
USHORT NoBiPredFlag:1; |
| 173 |
USHORT ReservedBits1:1; |
| 174 |
}; |
| 175 |
USHORT wFormatAndSequenceInfoFlags; |
| 176 |
}; |
| 177 |
DXVA_PicEntry_HEVC CurrPic; |
| 178 |
UCHAR sps_max_dec_pic_buffering_minus1; |
| 179 |
UCHAR log2_min_luma_coding_block_size_minus3; |
| 180 |
UCHAR log2_diff_max_min_luma_coding_block_size; |
| 181 |
UCHAR log2_min_transform_block_size_minus2; |
| 182 |
UCHAR log2_diff_max_min_transform_block_size; |
| 183 |
UCHAR max_transform_hierarchy_depth_inter; |
| 184 |
UCHAR max_transform_hierarchy_depth_intra; |
| 185 |
UCHAR num_short_term_ref_pic_sets; |
| 186 |
UCHAR num_long_term_ref_pics_sps; |
| 187 |
UCHAR num_ref_idx_l0_default_active_minus1; |
| 188 |
UCHAR num_ref_idx_l1_default_active_minus1; |
| 189 |
CHAR init_qp_minus26; |
| 190 |
UCHAR ucNumDeltaPocsOfRefRpsIdx; |
| 191 |
USHORT wNumBitsForShortTermRPSInSlice; |
| 192 |
USHORT ReservedBits2; |
| 193 |
|
| 194 |
union |
| 195 |
{ |
| 196 |
struct |
| 197 |
{ |
| 198 |
UINT32 scaling_list_enabled_flag:1; |
| 199 |
UINT32 amp_enabled_flag:1; |
| 200 |
UINT32 sample_adaptive_offset_enabled_flag:1; |
| 201 |
UINT32 pcm_enabled_flag:1; |
| 202 |
UINT32 pcm_sample_bit_depth_luma_minus1:4; |
| 203 |
UINT32 pcm_sample_bit_depth_chroma_minus1:4; |
| 204 |
UINT32 log2_min_pcm_luma_coding_block_size_minus3:2; |
| 205 |
UINT32 log2_diff_max_min_pcm_luma_coding_block_size:2; |
| 206 |
UINT32 pcm_loop_filter_disabled_flag:1; |
| 207 |
UINT32 long_term_ref_pics_present_flag:1; |
| 208 |
UINT32 sps_temporal_mvp_enabled_flag:1; |
| 209 |
UINT32 strong_intra_smoothing_enabled_flag:1; |
| 210 |
UINT32 dependent_slice_segments_enabled_flag:1; |
| 211 |
UINT32 output_flag_present_flag:1; |
| 212 |
UINT32 num_extra_slice_header_bits:3; |
| 213 |
UINT32 sign_data_hiding_enabled_flag:1; |
| 214 |
UINT32 cabac_init_present_flag:1; |
| 215 |
UINT32 ReservedBits3:5; |
| 216 |
}; |
| 217 |
UINT32 dwCodingParamToolFlags; |
| 218 |
}; |
| 219 |
|
| 220 |
union |
| 221 |
{ |
| 222 |
struct |
| 223 |
{ |
| 224 |
UINT32 constrained_intra_pred_flag:1; |
| 225 |
UINT32 transform_skip_enabled_flag:1; |
| 226 |
UINT32 cu_qp_delta_enabled_flag:1; |
| 227 |
UINT32 pps_slice_chroma_qp_offsets_present_flag:1; |
| 228 |
UINT32 weighted_pred_flag:1; |
| 229 |
UINT32 weighted_bipred_flag:1; |
| 230 |
UINT32 transquant_bypass_enabled_flag:1; |
| 231 |
UINT32 tiles_enabled_flag:1; |
| 232 |
UINT32 entropy_coding_sync_enabled_flag:1; |
| 233 |
UINT32 uniform_spacing_flag:1; |
| 234 |
UINT32 loop_filter_across_tiles_enabled_flag:1; |
| 235 |
UINT32 pps_loop_filter_across_slices_enabled_flag:1; |
| 236 |
UINT32 deblocking_filter_override_enabled_flag:1; |
| 237 |
UINT32 pps_deblocking_filter_disabled_flag:1; |
| 238 |
UINT32 lists_modification_present_flag:1; |
| 239 |
UINT32 slice_segment_header_extension_present_flag:1; |
| 240 |
UINT32 IrapPicFlag:1; |
| 241 |
UINT32 IdrPicFlag:1; |
| 242 |
UINT32 IntraPicFlag:1; |
| 243 |
UINT32 ReservedBits4:13; |
| 244 |
}; |
| 245 |
UINT32 dwCodingSettingPicturePropertyFlags; |
| 246 |
}; |
| 247 |
CHAR pps_cb_qp_offset; |
| 248 |
CHAR pps_cr_qp_offset; |
| 249 |
UCHAR num_tile_columns_minus1; |
| 250 |
UCHAR num_tile_rows_minus1; |
| 251 |
USHORT column_width_minus1[19]; |
| 252 |
USHORT row_height_minus1[21]; |
| 253 |
UCHAR diff_cu_qp_delta_depth; |
| 254 |
CHAR pps_beta_offset_div2; |
| 255 |
CHAR pps_tc_offset_div2; |
| 256 |
UCHAR log2_parallel_merge_level_minus2; |
| 257 |
INT CurrPicOrderCntVal; |
| 258 |
DXVA_PicEntry_HEVC RefPicList[15]; |
| 259 |
UCHAR ReservedBits5; |
| 260 |
INT PicOrderCntValList[15]; |
| 261 |
UCHAR RefPicSetStCurrBefore[8]; |
| 262 |
UCHAR RefPicSetStCurrAfter[8]; |
| 263 |
UCHAR RefPicSetLtCurr[8]; |
| 264 |
USHORT ReservedBits6; |
| 265 |
USHORT ReservedBits7; |
| 266 |
UINT StatusReportFeedbackNumber; |
| 267 |
} DXVA_PicParams_HEVC, *LPDXVA_PicParams_HEVC; |
| 268 |
|
| 269 |
typedef struct _DXVA_Qmatrix_HEVC |
| 270 |
{ |
| 271 |
UCHAR ucScalingLists0[6][16]; |
| 272 |
UCHAR ucScalingLists1[6][64]; |
| 273 |
UCHAR ucScalingLists2[6][64]; |
| 274 |
UCHAR ucScalingLists3[2][64]; |
| 275 |
UCHAR ucScalingListDCCoefSizeID2[6]; |
| 276 |
UCHAR ucScalingListDCCoefSizeID3[2]; |
| 277 |
} DXVA_Qmatrix_HEVC, *LPDXVA_Qmatrix_HEVC; |
| 278 |
|
| 279 |
typedef struct _DXVA_Slice_HEVC_Short |
| 280 |
{ |
| 281 |
UINT BSNALunitDataLocation; |
| 282 |
UINT SliceBytesInBuffer; |
| 283 |
USHORT wBadSliceChopping; |
| 284 |
} DXVA_Slice_HEVC_Short, *LPDXVA_Slice_HEVC_Short; |
| 285 |
|
| 286 |
#define DXVA_USUAL_BLOCK_WIDTH 8 |
| 287 |
#define DXVA_USUAL_BLOCK_HEIGHT 8 |
| 288 |
#define DXVA_USUAL_BLOCK_SIZE (DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT) |
| 289 |
|
| 290 |
typedef struct _DXVA_PictureParameters |
| 291 |
{ |
| 292 |
|
| 293 |
WORD wDecodedPictureIndex; |
| 294 |
WORD wDeblockedPictureIndex; |
| 295 |
|
| 296 |
WORD wForwardRefPictureIndex; |
| 297 |
WORD wBackwardRefPictureIndex; |
| 298 |
|
| 299 |
WORD wPicWidthInMBminus1; |
| 300 |
WORD wPicHeightInMBminus1; |
| 301 |
|
| 302 |
BYTE bMacroblockWidthMinus1; |
| 303 |
BYTE bMacroblockHeightMinus1; |
| 304 |
|
| 305 |
BYTE bBlockWidthMinus1; |
| 306 |
BYTE bBlockHeightMinus1; |
| 307 |
|
| 308 |
BYTE bBPPminus1; |
| 309 |
|
| 310 |
BYTE bPicStructure; |
| 311 |
BYTE bSecondField; |
| 312 |
BYTE bPicIntra; |
| 313 |
BYTE bPicBackwardPrediction; |
| 314 |
|
| 315 |
BYTE bBidirectionalAveragingMode; |
| 316 |
BYTE bMVprecisionAndChromaRelation; |
| 317 |
BYTE bChromaFormat; |
| 318 |
|
| 319 |
BYTE bPicScanFixed; |
| 320 |
BYTE bPicScanMethod; |
| 321 |
BYTE bPicReadbackRequests; |
| 322 |
|
| 323 |
BYTE bRcontrol; |
| 324 |
BYTE bPicSpatialResid8; |
| 325 |
BYTE bPicOverflowBlocks; |
| 326 |
BYTE bPicExtrapolation; |
| 327 |
|
| 328 |
BYTE bPicDeblocked; |
| 329 |
BYTE bPicDeblockConfined; |
| 330 |
BYTE bPic4MVallowed; |
| 331 |
BYTE bPicOBMC; |
| 332 |
BYTE bPicBinPB; |
| 333 |
BYTE bMV_RPS; |
| 334 |
|
| 335 |
BYTE bReservedBits; |
| 336 |
|
| 337 |
WORD wBitstreamFcodes; |
| 338 |
WORD wBitstreamPCEelements; |
| 339 |
BYTE bBitstreamConcealmentNeed; |
| 340 |
BYTE bBitstreamConcealmentMethod; |
| 341 |
|
| 342 |
} DXVA_PictureParameters, *LPDXVA_PictureParameters; |
| 343 |
|
| 344 |
typedef struct _DXVA_QmatrixData |
| 345 |
{ |
| 346 |
BYTE bNewQmatrix[4]; |
| 347 |
WORD Qmatrix[4][DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT]; |
| 348 |
} DXVA_QmatrixData, *LPDXVA_QmatrixData; |
| 349 |
|
| 350 |
typedef struct _DXVA_SliceInfo |
| 351 |
{ |
| 352 |
WORD wHorizontalPosition; |
| 353 |
WORD wVerticalPosition; |
| 354 |
DWORD dwSliceBitsInBuffer; |
| 355 |
DWORD dwSliceDataLocation; |
| 356 |
BYTE bStartCodeBitOffset; |
| 357 |
BYTE bReservedBits; |
| 358 |
WORD wMBbitOffset; |
| 359 |
WORD wNumberMBsInSlice; |
| 360 |
WORD wQuantizerScaleCode; |
| 361 |
WORD wBadSliceChopping; |
| 362 |
} DXVA_SliceInfo, *LPDXVA_SliceInfo; |
| 363 |
|
| 364 |
typedef struct _DXVA_PicEntry_VPx |
| 365 |
{ |
| 366 |
union |
| 367 |
{ |
| 368 |
struct |
| 369 |
{ |
| 370 |
UCHAR Index7Bits:7; |
| 371 |
UCHAR AssociatedFlag:1; |
| 372 |
}; |
| 373 |
UCHAR bPicEntry; |
| 374 |
}; |
| 375 |
} DXVA_PicEntry_VPx, *LPDXVA_PicEntry_VPx; |
| 376 |
|
| 377 |
typedef struct _segmentation_VP8 |
| 378 |
{ |
| 379 |
union |
| 380 |
{ |
| 381 |
struct |
| 382 |
{ |
| 383 |
UCHAR segmentation_enabled:1; |
| 384 |
UCHAR update_mb_segmentation_map:1; |
| 385 |
UCHAR update_mb_segmentation_data:1; |
| 386 |
UCHAR mb_segement_abs_delta:1; |
| 387 |
UCHAR ReservedSegmentFlags4Bits:4; |
| 388 |
}; |
| 389 |
UCHAR wSegmentFlags; |
| 390 |
}; |
| 391 |
CHAR segment_feature_data[2][4]; |
| 392 |
UCHAR mb_segment_tree_probs[3]; |
| 393 |
} DXVA_segmentation_VP8; |
| 394 |
|
| 395 |
|
| 396 |
typedef struct _DXVA_PicParams_VP8 |
| 397 |
{ |
| 398 |
UINT first_part_size; |
| 399 |
UINT width; |
| 400 |
UINT height; |
| 401 |
DXVA_PicEntry_VPx CurrPic; |
| 402 |
union |
| 403 |
{ |
| 404 |
struct |
| 405 |
{ |
| 406 |
UCHAR frame_type:1; |
| 407 |
UCHAR version:3; |
| 408 |
UCHAR show_frame:1; |
| 409 |
UCHAR clamp_type:1; |
| 410 |
UCHAR ReservedFrameTag3Bits:2; |
| 411 |
}; |
| 412 |
UCHAR wFrameTagFlags; |
| 413 |
}; |
| 414 |
DXVA_segmentation_VP8 stVP8Segments; |
| 415 |
UCHAR filter_type; |
| 416 |
UCHAR filter_level; |
| 417 |
UCHAR sharpness_level; |
| 418 |
UCHAR mode_ref_lf_delta_enabled; |
| 419 |
UCHAR mode_ref_lf_delta_update; |
| 420 |
CHAR ref_lf_deltas[4]; |
| 421 |
CHAR mode_lf_deltas[4]; |
| 422 |
UCHAR log2_nbr_of_dct_partitions; |
| 423 |
UCHAR base_qindex; |
| 424 |
CHAR y1dc_delta_q; |
| 425 |
CHAR y2dc_delta_q; |
| 426 |
CHAR y2ac_delta_q; |
| 427 |
CHAR uvdc_delta_q; |
| 428 |
CHAR uvac_delta_q; |
| 429 |
DXVA_PicEntry_VPx alt_fb_idx; |
| 430 |
DXVA_PicEntry_VPx gld_fb_idx; |
| 431 |
DXVA_PicEntry_VPx lst_fb_idx; |
| 432 |
UCHAR ref_frame_sign_bias_golden; |
| 433 |
UCHAR ref_frame_sign_bias_altref; |
| 434 |
UCHAR refresh_entropy_probs; |
| 435 |
UCHAR vp8_coef_update_probs[4][8][3][11]; |
| 436 |
UCHAR mb_no_coeff_skip; |
| 437 |
UCHAR prob_skip_false; |
| 438 |
UCHAR prob_intra; |
| 439 |
UCHAR prob_last; |
| 440 |
UCHAR prob_golden; |
| 441 |
UCHAR intra_16x16_prob[4]; |
| 442 |
UCHAR intra_chroma_prob[3]; |
| 443 |
UCHAR vp8_mv_update_probs[2][19]; |
| 444 |
USHORT ReservedBits1; |
| 445 |
USHORT ReservedBits2; |
| 446 |
USHORT ReservedBits3; |
| 447 |
UINT StatusReportFeedbackNumber; |
| 448 |
} DXVA_PicParams_VP8, *LPDXVA_PicParams_VP8; |
| 449 |
|
| 450 |
typedef struct _DXVA_Slice_VPx_Short |
| 451 |
{ |
| 452 |
UINT BSNALunitDataLocation; |
| 453 |
UINT SliceBytesInBuffer; |
| 454 |
USHORT wBadSliceChopping; |
| 455 |
} DXVA_Slice_VPx_Short, *LPDXVA_Slice_VPx_Short; |
| 456 |
|
| 457 |
typedef struct _segmentation_VP9 |
| 458 |
{ |
| 459 |
union |
| 460 |
{ |
| 461 |
struct |
| 462 |
{ |
| 463 |
UCHAR enabled:1; |
| 464 |
UCHAR update_map:1; |
| 465 |
UCHAR temporal_update:1; |
| 466 |
UCHAR abs_delta:1; |
| 467 |
UCHAR ReservedSegmentFlags4Bits:4; |
| 468 |
}; |
| 469 |
UCHAR wSegmentInfoFlags; |
| 470 |
}; |
| 471 |
UCHAR tree_probs[7]; |
| 472 |
UCHAR pred_probs[3]; |
| 473 |
SHORT feature_data[8][4]; |
| 474 |
UCHAR feature_mask[8]; |
| 475 |
} DXVA_segmentation_VP9; |
| 476 |
|
| 477 |
typedef struct _DXVA_PicParams_VP9 |
| 478 |
{ |
| 479 |
DXVA_PicEntry_VPx CurrPic; |
| 480 |
UCHAR profile; |
| 481 |
union |
| 482 |
{ |
| 483 |
struct |
| 484 |
{ |
| 485 |
USHORT frame_type:1; |
| 486 |
USHORT show_frame:1; |
| 487 |
USHORT error_resilient_mode:1; |
| 488 |
USHORT subsampling_x:1; |
| 489 |
USHORT subsampling_y:1; |
| 490 |
USHORT extra_plane:1; |
| 491 |
USHORT refresh_frame_context:1; |
| 492 |
USHORT frame_parallel_decoding_mode:1; |
| 493 |
USHORT intra_only:1; |
| 494 |
USHORT frame_context_idx:2; |
| 495 |
USHORT reset_frame_context:2; |
| 496 |
USHORT allow_high_precision_mv:1; |
| 497 |
USHORT ReservedFormatInfo2Bits:2; |
| 498 |
}; |
| 499 |
USHORT wFormatAndPictureInfoFlags; |
| 500 |
}; |
| 501 |
UINT width; |
| 502 |
UINT height; |
| 503 |
UCHAR BitDepthMinus8Luma; |
| 504 |
UCHAR BitDepthMinus8Chroma; |
| 505 |
UCHAR interp_filter; |
| 506 |
UCHAR Reserved8Bits; |
| 507 |
DXVA_PicEntry_VPx ref_frame_map[8]; |
| 508 |
UINT ref_frame_coded_width[8]; |
| 509 |
UINT ref_frame_coded_height[8]; |
| 510 |
DXVA_PicEntry_VPx frame_refs[3]; |
| 511 |
CHAR ref_frame_sign_bias[4]; |
| 512 |
CHAR filter_level; |
| 513 |
CHAR sharpness_level; |
| 514 |
union |
| 515 |
{ |
| 516 |
struct |
| 517 |
{ |
| 518 |
UCHAR mode_ref_delta_enabled:1; |
| 519 |
UCHAR mode_ref_delta_update:1; |
| 520 |
UCHAR use_prev_in_find_mv_refs:1; |
| 521 |
UCHAR ReservedControlInfo5Bits:5; |
| 522 |
}; |
| 523 |
UCHAR wControlInfoFlags; |
| 524 |
}; |
| 525 |
CHAR ref_deltas[4]; |
| 526 |
CHAR mode_deltas[2]; |
| 527 |
SHORT base_qindex; |
| 528 |
CHAR y_dc_delta_q; |
| 529 |
CHAR uv_dc_delta_q; |
| 530 |
CHAR uv_ac_delta_q; |
| 531 |
DXVA_segmentation_VP9 stVP9Segments; |
| 532 |
UCHAR log2_tile_cols; |
| 533 |
UCHAR log2_tile_rows; |
| 534 |
USHORT uncompressed_header_size_byte_aligned; |
| 535 |
USHORT first_partition_size; |
| 536 |
USHORT Reserved16Bits; |
| 537 |
UINT Reserved32Bits; |
| 538 |
UINT StatusReportFeedbackNumber; |
| 539 |
} DXVA_PicParams_VP9, *LPDXVA_PicParams_VP9; |
| 540 |
|
| 541 |
typedef struct _DXVA_PicEntry_AV1 |
| 542 |
{ |
| 543 |
|
| 544 |
UINT width; |
| 545 |
UINT height; |
| 546 |
|
| 547 |
|
| 548 |
INT wmmat[6]; |
| 549 |
union |
| 550 |
{ |
| 551 |
struct |
| 552 |
{ |
| 553 |
UCHAR wminvalid:1; |
| 554 |
UCHAR wmtype:2; |
| 555 |
UCHAR Reserved:5; |
| 556 |
}; |
| 557 |
UCHAR GlobalMotionFlags; |
| 558 |
}; |
| 559 |
|
| 560 |
UCHAR Index; |
| 561 |
UINT16 Reserved16Bits; |
| 562 |
|
| 563 |
} DXVA_PicEntry_AV1, *LPDXVA_PicEntry_AV1; |
| 564 |
|
| 565 |
typedef struct _DXVA_PicParams_AV1 |
| 566 |
{ |
| 567 |
UINT width; |
| 568 |
UINT height; |
| 569 |
|
| 570 |
UINT max_width; |
| 571 |
UINT max_height; |
| 572 |
|
| 573 |
UCHAR CurrPicTextureIndex; |
| 574 |
UCHAR superres_denom; |
| 575 |
UCHAR bitdepth; |
| 576 |
UCHAR seq_profile; |
| 577 |
|
| 578 |
|
| 579 |
struct |
| 580 |
{ |
| 581 |
UCHAR cols; |
| 582 |
UCHAR rows; |
| 583 |
USHORT context_update_id; |
| 584 |
USHORT widths[64]; |
| 585 |
USHORT heights[64]; |
| 586 |
} tiles; |
| 587 |
|
| 588 |
|
| 589 |
union |
| 590 |
{ |
| 591 |
struct |
| 592 |
{ |
| 593 |
UINT use_128x128_superblock:1; |
| 594 |
UINT intra_edge_filter:1; |
| 595 |
UINT interintra_compound:1; |
| 596 |
UINT masked_compound:1; |
| 597 |
UINT warped_motion:1; |
| 598 |
UINT dual_filter:1; |
| 599 |
UINT jnt_comp:1; |
| 600 |
UINT screen_content_tools:1; |
| 601 |
UINT integer_mv:1; |
| 602 |
UINT cdef:1; |
| 603 |
UINT restoration:1; |
| 604 |
UINT film_grain:1; |
| 605 |
UINT intrabc:1; |
| 606 |
UINT high_precision_mv:1; |
| 607 |
UINT switchable_motion_mode:1; |
| 608 |
UINT filter_intra:1; |
| 609 |
UINT disable_frame_end_update_cdf:1; |
| 610 |
UINT disable_cdf_update:1; |
| 611 |
UINT reference_mode:1; |
| 612 |
UINT skip_mode:1; |
| 613 |
UINT reduced_tx_set:1; |
| 614 |
UINT superres:1; |
| 615 |
UINT tx_mode:2; |
| 616 |
UINT use_ref_frame_mvs:1; |
| 617 |
UINT enable_ref_frame_mvs:1; |
| 618 |
UINT reference_frame_update:1; |
| 619 |
UINT Reserved:5; |
| 620 |
}; |
| 621 |
UINT32 CodingParamToolFlags; |
| 622 |
} coding; |
| 623 |
|
| 624 |
|
| 625 |
union |
| 626 |
{ |
| 627 |
struct |
| 628 |
{ |
| 629 |
UCHAR frame_type:2; |
| 630 |
UCHAR show_frame:1; |
| 631 |
UCHAR showable_frame:1; |
| 632 |
UCHAR subsampling_x:1; |
| 633 |
UCHAR subsampling_y:1; |
| 634 |
UCHAR mono_chrome:1; |
| 635 |
UCHAR Reserved:1; |
| 636 |
}; |
| 637 |
UCHAR FormatAndPictureInfoFlags; |
| 638 |
} format; |
| 639 |
|
| 640 |
|
| 641 |
UCHAR primary_ref_frame; |
| 642 |
UCHAR order_hint; |
| 643 |
UCHAR order_hint_bits; |
| 644 |
|
| 645 |
DXVA_PicEntry_AV1 frame_refs[7]; |
| 646 |
UCHAR RefFrameMapTextureIndex[8]; |
| 647 |
|
| 648 |
|
| 649 |
struct |
| 650 |
{ |
| 651 |
UCHAR filter_level[2]; |
| 652 |
UCHAR filter_level_u; |
| 653 |
UCHAR filter_level_v; |
| 654 |
|
| 655 |
UCHAR sharpness_level; |
| 656 |
union |
| 657 |
{ |
| 658 |
struct |
| 659 |
{ |
| 660 |
UCHAR mode_ref_delta_enabled:1; |
| 661 |
UCHAR mode_ref_delta_update:1; |
| 662 |
UCHAR delta_lf_multi:1; |
| 663 |
UCHAR delta_lf_present:1; |
| 664 |
UCHAR Reserved:4; |
| 665 |
}; |
| 666 |
UCHAR ControlFlags; |
| 667 |
}; |
| 668 |
CHAR ref_deltas[8]; |
| 669 |
CHAR mode_deltas[2]; |
| 670 |
UCHAR delta_lf_res; |
| 671 |
UCHAR frame_restoration_type[3]; |
| 672 |
USHORT log2_restoration_unit_size[3]; |
| 673 |
UINT16 Reserved16Bits; |
| 674 |
} loop_filter; |
| 675 |
|
| 676 |
|
| 677 |
struct |
| 678 |
{ |
| 679 |
union |
| 680 |
{ |
| 681 |
struct |
| 682 |
{ |
| 683 |
UCHAR delta_q_present:1; |
| 684 |
UCHAR delta_q_res:2; |
| 685 |
UCHAR Reserved:5; |
| 686 |
}; |
| 687 |
UCHAR ControlFlags; |
| 688 |
}; |
| 689 |
|
| 690 |
UCHAR base_qindex; |
| 691 |
CHAR y_dc_delta_q; |
| 692 |
CHAR u_dc_delta_q; |
| 693 |
CHAR v_dc_delta_q; |
| 694 |
CHAR u_ac_delta_q; |
| 695 |
CHAR v_ac_delta_q; |
| 696 |
|
| 697 |
UCHAR qm_y; |
| 698 |
UCHAR qm_u; |
| 699 |
UCHAR qm_v; |
| 700 |
UINT16 Reserved16Bits; |
| 701 |
} quantization; |
| 702 |
|
| 703 |
|
| 704 |
struct |
| 705 |
{ |
| 706 |
union |
| 707 |
{ |
| 708 |
struct |
| 709 |
{ |
| 710 |
UCHAR damping:2; |
| 711 |
UCHAR bits:2; |
| 712 |
UCHAR Reserved:4; |
| 713 |
}; |
| 714 |
UCHAR ControlFlags; |
| 715 |
}; |
| 716 |
|
| 717 |
union |
| 718 |
{ |
| 719 |
struct |
| 720 |
{ |
| 721 |
UCHAR primary:6; |
| 722 |
UCHAR secondary:2; |
| 723 |
}; |
| 724 |
UCHAR combined; |
| 725 |
} y_strengths[8]; |
| 726 |
|
| 727 |
union |
| 728 |
{ |
| 729 |
struct |
| 730 |
{ |
| 731 |
UCHAR primary:6; |
| 732 |
UCHAR secondary:2; |
| 733 |
}; |
| 734 |
UCHAR combined; |
| 735 |
} uv_strengths[8]; |
| 736 |
|
| 737 |
} cdef; |
| 738 |
|
| 739 |
UCHAR interp_filter; |
| 740 |
|
| 741 |
|
| 742 |
struct |
| 743 |
{ |
| 744 |
union |
| 745 |
{ |
| 746 |
struct |
| 747 |
{ |
| 748 |
UCHAR enabled:1; |
| 749 |
UCHAR update_map:1; |
| 750 |
UCHAR update_data:1; |
| 751 |
UCHAR temporal_update:1; |
| 752 |
UCHAR Reserved:4; |
| 753 |
}; |
| 754 |
UCHAR ControlFlags; |
| 755 |
}; |
| 756 |
UCHAR Reserved24Bits[3]; |
| 757 |
|
| 758 |
union |
| 759 |
{ |
| 760 |
struct |
| 761 |
{ |
| 762 |
UCHAR alt_q:1; |
| 763 |
UCHAR alt_lf_y_v:1; |
| 764 |
UCHAR alt_lf_y_h:1; |
| 765 |
UCHAR alt_lf_u:1; |
| 766 |
UCHAR alt_lf_v:1; |
| 767 |
UCHAR ref_frame:1; |
| 768 |
UCHAR skip:1; |
| 769 |
UCHAR globalmv:1; |
| 770 |
}; |
| 771 |
UCHAR mask; |
| 772 |
} feature_mask[8]; |
| 773 |
|
| 774 |
SHORT feature_data[8][8]; |
| 775 |
|
| 776 |
} segmentation; |
| 777 |
|
| 778 |
struct |
| 779 |
{ |
| 780 |
union |
| 781 |
{ |
| 782 |
struct |
| 783 |
{ |
| 784 |
USHORT apply_grain:1; |
| 785 |
USHORT scaling_shift_minus8:2; |
| 786 |
USHORT chroma_scaling_from_luma:1; |
| 787 |
USHORT ar_coeff_lag:2; |
| 788 |
USHORT ar_coeff_shift_minus6:2; |
| 789 |
USHORT grain_scale_shift:2; |
| 790 |
USHORT overlap_flag:1; |
| 791 |
USHORT clip_to_restricted_range:1; |
| 792 |
USHORT matrix_coeff_is_identity:1; |
| 793 |
USHORT Reserved:3; |
| 794 |
}; |
| 795 |
USHORT ControlFlags; |
| 796 |
}; |
| 797 |
|
| 798 |
USHORT grain_seed; |
| 799 |
UCHAR scaling_points_y[14][2]; |
| 800 |
UCHAR num_y_points; |
| 801 |
UCHAR scaling_points_cb[10][2]; |
| 802 |
UCHAR num_cb_points; |
| 803 |
UCHAR scaling_points_cr[10][2]; |
| 804 |
UCHAR num_cr_points; |
| 805 |
UCHAR ar_coeffs_y[24]; |
| 806 |
UCHAR ar_coeffs_cb[25]; |
| 807 |
UCHAR ar_coeffs_cr[25]; |
| 808 |
UCHAR cb_mult; |
| 809 |
UCHAR cb_luma_mult; |
| 810 |
UCHAR cr_mult; |
| 811 |
UCHAR cr_luma_mult; |
| 812 |
UCHAR Reserved8Bits; |
| 813 |
SHORT cb_offset; |
| 814 |
SHORT cr_offset; |
| 815 |
} film_grain; |
| 816 |
|
| 817 |
UINT Reserved32Bits; |
| 818 |
UINT StatusReportFeedbackNumber; |
| 819 |
} DXVA_PicParams_AV1, *LPDXVA_PicParams_AV1; |
| 820 |
|
| 821 |
typedef struct _DXVA_Tile_AV1 |
| 822 |
{ |
| 823 |
UINT DataOffset; |
| 824 |
UINT DataSize; |
| 825 |
USHORT row; |
| 826 |
USHORT column; |
| 827 |
UINT16 Reserved16Bits; |
| 828 |
UCHAR anchor_frame; |
| 829 |
UCHAR Reserved8Bits; |
| 830 |
} DXVA_Tile_AV1, *LPDXVA_Tile_AV1; |
| 831 |
|
| 832 |
#pragma pack(pop, BeforeDXVApacking) |
| 833 |
|
| 834 |
G_END_DECLS |