![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FrameGrabber.h>
Protected Member Functions | |
| MOVIESCENECAPTURE_API void | OnBackBufferReadyToPresentCallback (SWindow &SlateWindow, const FTextureRHIRef &BackBuffer) |
| MOVIESCENECAPTURE_API void | OnFrameReady (int32 SurfaceIndex, FColor *ColorBuffer, int32 Width, int32 Height) |
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 |
| FFrameGrabber::~FFrameGrabber | ( | ) |
Destructor
| void FFrameGrabber::CaptureThisFrame | ( | FFramePayloadPtr | Payload | ) |
Instruct the frame grabber capture this frame, when it receives an event from slate
| TArray< FCapturedFrameData > FFrameGrabber::GetCapturedFrames | ( | ) |
Retrieve any frames we may have captured
| bool FFrameGrabber::HasOutstandingFrames | ( | ) | const |
Check whether we have any outstanding frames or not
| bool FFrameGrabber::IsCapturingFrames | ( | ) | const |
Check whether we're capturing frames or not
|
protected |
Callback for when a backbuffer is ready for reading (called on render thread)
|
protected |
Called when the specified surface index has been locked for reading with the render target data (called on render thread)
| void FFrameGrabber::Shutdown | ( | ) |
Shut down this grabber, ensuring that any threaded operations are finished
| void FFrameGrabber::StartCapturingFrames | ( | ) |
Instruct the frame grabber to start capturing frames
| void FFrameGrabber::StopCapturingFrames | ( | ) |
Stop capturing frames