D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC 结构是用于配置 Direct3D 12 视频编码器的结构,专门用于 HEVC (H.265) 编码。这个结构定义了 HEVC 编码器的一些配置参数。以下是该结构的基本信息:
typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC {
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS Flags;
  UINT8                                               MainTier;
  UINT8                                               MainProfile;
  UINT8                                               MainLevel;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CONSTRAINED MainConstained;
  UINT8                                               StereoFormat;
  UINT8                                               MainTierInfo;
  UINT8                                               MainLevelInfo;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CABAC Cabac;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LOOP_FILTER_MODE LoopFilterMode;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_ENTROPY_CODING_MODE EntropyCodingMode;
  UINT8                                                       EnableAUD;
  UINT8                                                       EnableFillerData;
  UINT8                                                       EnablePrefixSEI;
  UINT8                                                       EnableSuffixSEI;
  UINT8                                                       EnableRedundantPicture;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_INTRA_REFRESH_MODE IntraRefreshMode;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_INTRA_REFRESH_MODE IntraRefreshModeHint;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LF_BETA_OFFSET LoopFilterBetaOffset;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LF_TC_OFFSET LoopFilterTcOffset;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LF_CUSTOM_CONTROL_LOOP_FILTER_MODE LoopFilterCustomControlMode;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LF_CUSTOM_CONTROL_MODE LoopFilterCustomControlFlag;
  UINT8                                                                              EnableReferencePictureSelection;
  UINT8                                                                              EnableIndependentSliceControl;
  UINT8                                                                              EnableROI;
  UINT8                                                                              EnableAUDTiming;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_ROI_CODEC_DATA              RoiData;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_RATE_CONTROL_MODE      RateControlMode;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_RATE_CONTROL_LAYOUT Layout;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_RATE_CONTROL_FLAG_FLAGS RateControlFlags;
  UINT32                                                                                   MaxNumReferenceFrames;
  UINT32                                                                                   EnableLTR;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LTR_MODE LTRMode;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LTR_MODE LTRModeHint;
  UINT32                                                                                   MaxLTRFrames;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_LTR_MARKING_MODE LTRMarkingMode;
  UINT32                                                                                   FrameSizeToleranceMode;
  UINT32                                                                                   VideoUsabilityInfoFlags;
  UINT32                                                                                   MaxDecodedPictureBufferCount;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_SLICE_MODE SliceMode;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_INTRA_SLICE_MODE IntraSliceMode;
  UINT32                                                                                   MaxBytesPerSlice;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FRAME_CONSTRAINT_FLAGS FrameConstraints;
} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC;

该结构的字段包含了许多 HEVC 编码器的配置选项,比如编码模式、Profile、Level、Loop Filter Mode、Entropy Coding Mode 等等。这些参数用于定义视频编码的特性和性能。


转载请注明出处:http://www.zyzy.cn/article/detail/26202/Win32 API/D3d12video.h/D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC