Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Describes an ID3D12VideoEncoderHeap1. Extends D3D12_VIDEO_ENCODER_HEAP_DESC with a power-of-two downscale factor for lower resolution frame analysis.
Syntax
typedef struct D3D12_VIDEO_ENCODER_HEAP_DESC1 {
UINT NodeMask;
D3D12_VIDEO_ENCODER_HEAP_FLAGS Flags;
D3D12_VIDEO_ENCODER_CODEC EncodeCodec;
D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile;
D3D12_VIDEO_ENCODER_LEVEL_SETTING EncodeLevel;
UINT ResolutionsListCount;
const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList;
UINT Pow2DownscaleFactor;
} D3D12_VIDEO_ENCODER_HEAP_DESC1;
Members
NodeMask
The node mask specifying the physical adapter on which the video processor will be used. For single GPU operation, set this to zero. If there are multiple GPU nodes, set a bit to identify the node, i.e. the device's physical adapter, to which the command queue applies. Each bit in the mask corresponds to a single node. Only 1 bit may be set.
Flags
A bitwise or combination of values from the D3D12_VIDEO_ENCODER_HEAP_FLAGS enumeration specifying encoder heap creation options.
EncodeCodec
A D3D12_VIDEO_ENCODER_CODEC specifying the codec of the associated encoder object.
EncodeProfile
A D3D12_VIDEO_ENCODER_PROFILE_DESC specifying the profile for the selected codec in the associated encoder object.
EncodeLevel
A D3D12_VIDEO_ENCODER_LEVEL_SETTING specifying the level for the selected codec in the associated encoder object.
ResolutionsListCount
The count of resolutions requested to be supported present in the pResolutionList field.
pResolutionList
Pointer to an array of D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC specifying the list of resolutions requested to be supported.
Pow2DownscaleFactor
When D3D12_VIDEO_ENCODER_HEAP_FLAG_ALLOW_RATE_CONTROL_FRAME_ANALYSIS is set, indicates to the driver the downscaling factor for the 1st pass. The downscaled dimensions are calculated as InputWidth / 2^Pow2DownscaleFactor and InputHeight / 2^Pow2DownscaleFactor. When Pow2DownscaleFactor is 0 and the flag is set, the 1st pass is performed at full resolution.
Remarks
If D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RESOLUTION_RECONFIGURATION_AVAILABLE is supported, Pow2DownscaleFactor applies to all possible resolutions that can be dynamically switched between or used with this ID3D12VideoEncoderHeap1, listed in pResolutionList. When dynamically switching between resolutions, the 1st pass lower resolution is also adjusted accordingly.
Requirements
| Requirement | Value |
|---|---|
| Header | d3d12video.h |