engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FFrameGrabber类 参考

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::FFrameGrabber ( TSharedRef< FSceneViewport >  Viewport,
FIntPoint  DesiredBufferSize,
EPixelFormat  InPixelFormat = PF_B8G8R8A8,
uint32  NumSurfaces = 3 
)

Construct this frame grabber

参数
InViewportThe viewport we are to grab frames for
DesiredBufferSizeThe desired size of captured frames
InPixelFormatThe desired pixel format to store captured frames as
InNumSurfacesThe number of destination surfaces contained in our buffer

该类的文档由以下文件生成: