Navigation
API > API/Plugins > API/Plugins/PixelCapture > API/Plugins/PixelCapture/FPixelCaptureCapturerMultiFormat
References
| Module | PixelCapture |
| Header | /Engine/Plugins/Media/PixelCapture/Source/PixelCapture/Public/PixelCaptureCapturerMultiFormat.h |
| Include | #include "PixelCaptureCapturerMultiFormat.h" |
| Source | /Engine/Plugins/Media/PixelCapture/Source/PixelCapture/Private/PixelCaptureCapturerMultiFormat.cpp |
TSharedPtr< IPixelCaptureOutputFrame > WaitForFormat
&40;
int32 Format,
int32 LayerIndex,
uint32 MaxWaitTime
&41;
Remarks
Like RequestFormat except if the format does not exist it will add it and then wait for the format to have output. NOTE: This will block the calling thread so it is important that the capture process is not dependent on this calling thread or we will deadlock. The final buffer of a given format or null in case of timeout or the capturer has been disconnected.
Parameters
| Name | Description |
|---|---|
| Format | The format we want the output in. |
| LayerIndex | The layer we want to get the output of. |
| MaxWaitTime | The max number of milliseconds to wait for a frame. Default is 5 seconds. |