Partager via


ISurfaceManager::get_IdealVideoSize method

The get_IdealVideoSize method retrieves the ideal video size for the surface.

Syntax

HRESULT get_IdealVideoSize(
  [out] VIDEO_SIZE *pSize
);

Parameters

pSize [out]

Pointer to a VIDEO_SIZE structure that specifies the ideal video size for the surface in this device.

Return value

The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.

Remarks

This method is used to determine non-square pixel aspect ratios when rendering to a 16:9 screen. The returned value is compared to the actual output buffer size to determine the ratio.

You can call this method to determine what size to allocate for a new surface before calling AllocSurfaceSize.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
GPUPipelineTime.h
Library
GPUPipelineVC8.lib (Visual Studio 2005);
GPUPipelineVC7.lib (Visual Studio .NET)

See also

ISurfaceManager Interface