// dxva.h
typedef struct _DXVA_PicEntry_AV1 {
UINT width;
UINT height;
INT wmmat[6];
union {
struct {
UCHAR wminvalid : 1;
UCHAR wmtype : 2;
UCHAR Reserved : 5;
};
UCHAR GlobalMotionFlags;
} DUMMYUNIONNAME;
UCHAR Index;
UINT16 Reserved16Bits;
} DXVA_PicEntry_AV1, *LPDXVA_PicEntry_AV1;
View the official Windows Driver Kit DDI referenceNo description available.
The DXVA_PicEntry_AV1 structure specifies a reference to an uncompressed surface, with the additional metadata necessary for referencing that surface.
widthSpecifies the coded width of the referred frame. This field corresponds to the frame_width_minus_1 syntax element. See Remarks.
heightSpecifies the coded height of the referred frame. This field corresponds to the frame_height_minus_1 syntax element. See Remarks.
wmmatThe affine transformation matrix that applies globally to motion vectors referring to this frame.
DUMMYUNIONNAMEDUMMYUNIONNAME.wminvalidSpecifies whether the given global motion parameters are valid. If 0 then the parameters should be assumed to be invalid and not read.
DUMMYUNIONNAME.wmtypeSpecifies the global motion type of this referred frame. This value matches the reference software’s TransformationType enum:
typedef enum {
IDENTITY = 0,
TRANSLATION = 1,
ROTZOOM = 2,
AFFINE = 3,
TRANS_TYPES,
} TransformationType;
This attribute is informational, to help validate the contents of wmmat.
DUMMYUNIONNAME.ReservedReserved; do not use.
DUMMYUNIONNAME.GlobalMotionFlagsGlobal motion parameters.
IndexIdentifies the index into ref_frame_map_texture_index[] to identify the frame used as a reference for this picture. When Index does not contain an index to a valid reference, the value shall be set to 255, to indicate that the index is invalid.
Reserved16BitsReserved; do not use.
If width and height are derived for the frame (for example via the frame_size_override_flag), the host decoder will derive the appropriate values and store the result in these fields. Each AV1 frame may be coded at a different resolution than the previous frame(s).
See the Direct X Video Acceleration Specification for AV1 Video Coding for detailed information, including how to use this structure.