MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / GetAvailableSurfaceTypeByIndex

Method GetAvailableSurfaceTypeByIndex

Source/VideoRendererInputPin.cpp:168–176  ·  view source on GitHub ↗

IDirectXVideoMemoryConfiguration

Source from the content-addressed store, hash-verified

166
167// IDirectXVideoMemoryConfiguration
168STDMETHODIMP CVideoRendererInputPin::GetAvailableSurfaceTypeByIndex(DWORD dwTypeIndex, DXVA2_SurfaceType *pdwType)
169{
170 if (dwTypeIndex == 0) {
171 *pdwType = DXVA2_SurfaceType_DecoderRenderTarget;
172 return S_OK;
173 } else {
174 return MF_E_NO_MORE_TYPES;
175 }
176}
177
178STDMETHODIMP CVideoRendererInputPin::SetSurfaceType(DXVA2_SurfaceType dwType)
179{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected