D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC enumeration (d3d12video.h)
Specifies the type of an HEVC video frame.
Syntax
typedef enum D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC {
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_I_FRAME,
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME,
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_B_FRAME,
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_IDR_FRAME
} ;
Constants
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_I_FRAME I-Frame. Completely intra-coded frame. |
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME P-Frame. Allows references to past frames. |
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_B_FRAME B-Frame. Allows references to both past and future (in display order) frames. |
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_IDR_FRAME Instantaneous decode refresh frame. A special type of I-frame where no frame after it can reference any frame before it. |
Remarks
The following table lists the expected HEVC header frame type for each HEVC frame type value.
Syntax element | Expected default value |
---|---|
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_I_FRAME | nal_unit_type = CRA_NUT |
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME | nal_unit_type = TRAIL_R |
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_B_FRAME | nal_unit_type = TRAIL_R |
D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_IDR_FRAME | nal_unit_type = IDR_W_RADL |
If D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_P_FRAMES_IMPLEMENTED_AS_LOW_DELAY_B_FRAMES is set, it informs the caller that when encoding frames with type D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME, they will be written as low delay B-Frames in the compressed bitstream. If bit is not set, it informs the caller P frames will be written in the compressed bitstream. Note that When operating under this mode, is the caller's responsibility to code the correct frame type in AUD_NUT and other parts of the HEVC bitstream, taking into account that P frames will be treated as generalized B frames with only references to past frames in POC order.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Build 22000 |
Minimum supported server | Windows Build 22000 |
Header | d3d12video.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for