MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / MapOutputRectToInputRects

Method MapOutputRectToInputRects

OpenGlass/AeroColorizationEffect.cpp:139–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139IFACEMETHODIMP CAeroColorizationEffect::MapOutputRectToInputRects(
140 const D2D1_RECT_L* outputRect,
141 D2D1_RECT_L* inputRects,
142 UINT32 inputRectCount
143) const
144{
145 if (inputRectCount != 1)
146 {
147 return E_INVALIDARG;
148 }
149
150 inputRects[0].left = outputRect->left;
151 inputRects[0].top = outputRect->top;
152 inputRects[0].right = outputRect->right;
153 inputRects[0].bottom = outputRect->bottom;
154
155 return S_OK;
156}
157
158IFACEMETHODIMP CAeroColorizationEffect::MapInputRectsToOutputRect(
159 CONST D2D1_RECT_L* inputRects,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected