sendstate can refer to different Windows APIs in the provided material. The parameter meanings are:
For the video miniport driver callback DxSetState:
DWORD PdxSetstate(
PVOID unnamedParam1,
PDDSETSTATEININFO unnamedParam2,
PDDSETSTATEOUTINFO unnamedParam3
)
-
unnamedParam1: points to the miniport driver’s device extension.
-
unnamedParam2: points to a DDSETSTATEININFO structure containing the surface and VPE object information.
-
unnamedParam3: points to a DDSETSTATEOUTINFO structure containing the state information for the hardware video port.
This callback is used when a client wants to switch between bob mode and weave mode. If the new state is unsupported, the driver should fail the call.
For the video compression message ICM_SETSTATE:
ICM_SETSTATE
wParam = (DWORD_PTR) (LPVOID) pv;
lParam = (DWORD_PTR) cb;
-
pv: pointer to a block of memory containing configuration data. If NULL, the compressor resets to its default state.
-
cb: size, in bytes, of that memory block.
This state data is private to the specific compressor and is typically used to restore state previously obtained with ICM_GETSTATE.
If the intended API is a different SetState or SendState function, the exact DLL or function name is needed.