Class responsible for resolving render target data for a specific viewport in an efficient manner Internally, the class uses a fixed array of resolution surfaces, and dispatches rendering commands to resolve the viewport render target into a specific index into this array. 更多...
#include <FrameGrabber.h>
Public 成员函数 | |
| void | CaptureThisFrame (FFramePayloadPtr Payload) |
| Instruct the frame grabber capture this frame, when it receives an event from slate | |
| FFrameGrabber (TSharedRef< FSceneViewport > Viewport, FIntPoint DesiredBufferSize, EPixelFormat InPixelFormat=PF_B8G8R8A8, uint32 NumSurfaces=3) | |
| Construct this frame grabber 更多... | |
| TArray< FCapturedFrameData > | GetCapturedFrames () |
| Retrieve any frames we may have captured | |
| bool | HasOutstandingFrames () const |
| Check whether we have any outstanding frames or not | |
| bool | IsCapturingFrames () const |
| Check whether we're capturing frames or not | |
| void | Shutdown () |
| Shut down this grabber, ensuring that any threaded operations are finished | |
| void | StartCapturingFrames () |
| Instruct the frame grabber to start capturing frames | |
| void | StopCapturingFrames () |
| Stop capturing frames | |
| ~FFrameGrabber () | |
| Destructor | |
Protected 成员函数 | |
| void | OnBackBufferReadyToPresentCallback (SWindow &SlateWindow, const FTexture2DRHIRef &BackBuffer) |
| Callback for when a backbuffer is ready for reading (called on render thread) | |
| void | OnFrameReady (int32 SurfaceIndex, FColor *ColorBuffer, int32 Width, int32 Height) |
| Called when the specified surface index has been locked for reading with the render target data (called on render thread) | |
Class responsible for resolving render target data for a specific viewport in an efficient manner Internally, the class uses a fixed array of resolution surfaces, and dispatches rendering commands to resolve the viewport render target into a specific index into this array.
This means we can resolve the render target data without having to wait, or flush rendering commands.
| FFrameGrabber::FFrameGrabber | ( | TSharedRef< FSceneViewport > | Viewport, |
| FIntPoint | DesiredBufferSize, | ||
| EPixelFormat | InPixelFormat = PF_B8G8R8A8, |
||
| uint32 | NumSurfaces = 3 |
||
| ) |
Construct this frame grabber
| InViewport | The viewport we are to grab frames for |
| DesiredBufferSize | The desired size of captured frames |
| InPixelFormat | The desired pixel format to store captured frames as |
| InNumSurfaces | The number of destination surfaces contained in our buffer |