Navigation
API > API/Runtime > API/Runtime/AVEncoder
References
| Module | AVEncoder |
| Header | /Engine/Source/Runtime/AVEncoder/Public/VideoEncoderInput.h |
| Include | #include "VideoEncoderInput.h" |
Syntax
class FVideoEncoderInput
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsResizable | ||
| EVideoFrameFormat | FrameFormat | ||
| uint32 | MaxNumBuffers | ||
| uint32 | NextFrameID | ||
| uint32 | NumBuffers |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FVideoEncoderInput
(
const FVideoEncoderInput& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVideoEncoderInputFrame * | CreateBuffer
(
OnFrameReleasedCallback InOnFrameReleased |
Create a user managed buffer | |
| TSharedPtr< FVideoEncoderInput > | CreateDummy
(
bool isResizable |
Construct video encoder input based on expected input frame format | |
| TSharedPtr< FVideoEncoderInput > | CreateForCUDA
(
void* InApplicationCudaContext, |
Create input for an encoder that encodes a CUarray | |
| TSharedPtr< FVideoEncoderInput > | CreateForD3D11
(
void* InApplicationD3D11Device, |
Create input for an encoder that encodes a D3D11 texture | |
| TSharedPtr< FVideoEncoderInput > | CreateForD3D12
(
void* InApplicationD3D12Device, |
Create input for an encoder that encodes a D3D12 texture | |
| TSharedPtr< FVideoEncoderInput > | CreateForVulkan
(
void* InApplicationVulkanData, |
Create input for an encoder that encodes a VkImage | |
| TSharedPtr< FVideoEncoderInput > | CreateForYUV420P
(
uint32 InWidth, |
||
| void | DestroyBuffer
(
FVideoEncoderInputFrame* Buffer |
Destroy user managed buffer | |
| void | Flush () |
Destroy/release any frames that are not currently in use | |
| const TArray< FVideoEncoderInfo > & | Get a list of supported video encoders | ||
| CUcontext | |||
| EVideoFrameFormat | |||
| TSharedPtr< FVideoEncoderInputFrame > | Obtain a video frame that can be used as a buffer for input to a video encoder | ||
| void | ReleaseInputFrame
(
FVideoEncoderInputFrame* InFrame |
Release (free) an input frame and make it available for future use | |
| void | SetMaxNumBuffers
(
uint32 InMaxNumBuffers |
Properties |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FVideoEncoderInput & | operator=
(
const FVideoEncoderInput& |
Typedefs
| Name | Description |
|---|---|
| OnFrameReleasedCallback | New packet callback prototype void(uint32 LayerIndex, const FCodecPacket& Packet) |