Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.5 KB

ns-d3d12umddi-d3d12ddi_video_encoder_frame_subregion_metadata_0083_0.md

File metadata and controls

67 lines (52 loc) · 2.5 KB
UID tech.root title ms.date targetos description prerelease req.construct-type req.ddi-compliance req.dll req.header req.include-header req.kmdf-ver req.lib req.max-support req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.typenames req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NS:d3d12umddi.D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0
display
D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0
02/16/2022
Windows
Learn more about the D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0 structure.
false
structure
d3d12umddi.h
Windows 11 (WDDM 3.0)
D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0
apiref
HeaderDef
d3d12umddi.h
D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0
D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0
d3d12umddi/D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0
c++

-description

The D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_METADATA_0083_0 structure represents subregion metadata of a video encoder frame.

-struct-fields

-field bSize

Output field in which to store the sizes of each sub-region, in bytes. Sub-regions sizes must include the sub-region initial padding, header, and payload.

-field bStartOffset

Output field in which to store the padding size that needs to be skipped at the beginning of every subregion, in bytes. This padding size is included in bSize.

For example, let pFrameSubregionsSizes be an array of bSize bytes for each slice. With bStartOffset and pFrameSubregionsSizes, the user can extract individual subregions from the output bitstream buffer by calculating the ith sub-region start offset as pBuffer + FrameStartOffset + sum j = (0, (i-1)){pFrameSubregionsSizes[j]} + pFrameSubregionsStartOffsets[i] and reading pFrameSubregionsSizes[i] bytes.

-field bHeaderSize

Output field in which to write the sizes in bits of each sub-region header.

With bHeaderSize, in addition to extracting the full sub-region from the bitstream as explained above, the user can extract the sub-regions payload and headers directly without needing to parse the full sub-region bitstream.

-remarks

See D3D12 video encoding for general information.

-see-also

D3D12DDI_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS_0082_0