Bewerken

D3D12_VIDEO_ENCODER_FRAME_ANALYSIS structure (d3d12video.h)

Describes the downscaled input frame and reference frames for two pass frame analysis in a video encode operation.

Syntax

typedef struct D3D12_VIDEO_ENCODER_FRAME_ANALYSIS {
  ID3D12Resource                      *pDownscaledFrame;
  UINT64                              Subresource;
  D3D12_VIDEO_ENCODE_REFERENCE_FRAMES DownscaledReferences;
} D3D12_VIDEO_ENCODER_FRAME_ANALYSIS;

Members

pDownscaledFrame

Pointer to an ID3D12Resource containing the downscaled input texture to perform two pass frame analysis. The downscaling factor is indicated by D3D12_VIDEO_ENCODER_HEAP_DESC1.Pow2DownscaleFactor. When the 1st pass is skipped, pDownscaledFrame is not necessary and NULL can be passed.

Subresource

Subresource index for pDownscaledFrame.

DownscaledReferences

A D3D12_VIDEO_ENCODE_REFERENCE_FRAMES containing the downscaled reference frame textures to perform two pass frame analysis. The downscaling factor is indicated by D3D12_VIDEO_ENCODER_HEAP_DESC1.Pow2DownscaleFactor.

Remarks

The DPB snapshot and reference lists must be always mirrored for the parallel streams (full and downscaled resolution passes). DownscaledReferences and the corresponding full resolution reference frames must always have entries mirroring the same frames in the DPB, just in different resolutions.

Requirements

Requirement Value
Header d3d12video.h

See also

D3D12_VIDEO_ENCODER_HEAP_DESC1