Navigation
API > API/Plugins > API/Plugins/NVENC
This class is the core of the NVENC encoder logic. It is embedded inside NVCodecEncoders using composition instead of inheritance because templates + inheritance was bit messy here where we need concrete types.
| Name | FEncoderNVENC |
| Type | class |
| Header File | /Engine/Plugins/Experimental/AVCodecs/NVCodecs/Source/NVENC/Public/Video/Encoders/VideoEncoderNVENC.h |
| Include Path | #include "Video/Encoders/VideoEncoderNVENC.h" |
Syntax
class FEncoderNVENC
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FEncoderNVENC() |
Video/Encoders/VideoEncoderNVENC.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasMaxDeviceResolution | bool | Video/Encoders/VideoEncoderNVENC.h | ||
| Buffer | NV_ENC_OUTPUT_PTR | Video/Encoders/VideoEncoderNVENC.h | ||
| Encoder | void * | Video/Encoders/VideoEncoderNVENC.h | ||
| MaxDeviceEncodeHeight | uint32 | Video/Encoders/VideoEncoderNVENC.h | ||
| MaxDeviceEncodeWidth | uint32 | Video/Encoders/VideoEncoderNVENC.h | ||
| Packets | TQueue< FVideoPacket > | Video/Encoders/VideoEncoderNVENC.h | ||
| SessionDevice | void * | Video/Encoders/VideoEncoderNVENC.h | ||
| SessionDeviceType | NV_ENC_DEVICE_TYPE | Video/Encoders/VideoEncoderNVENC.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FAVResult ApplyConfig
(
FVideoEncoderConfigNVENC const& AppliedConfig, |
Video/Encoders/VideoEncoderNVENC.h | ||
virtual void Close() |
Video/Encoders/VideoEncoderNVENC.h | ||
int GetCapability
(
GUID EncodeGUID, |
Video/Encoders/VideoEncoderNVENC.h | ||
bool IsInitialized() |
Video/Encoders/VideoEncoderNVENC.h | ||
virtual bool IsOpen() |
Video/Encoders/VideoEncoderNVENC.h | ||
virtual FAVResult Open
(
TSharedRef< FAVDevice > const& NewDevice, |
Video/Encoders/VideoEncoderNVENC.h | ||
virtual FAVResult ReceivePacket
(
FVideoPacket& OutPacket |
Video/Encoders/VideoEncoderNVENC.h | ||
FAVResult SendFrame
(
NV_ENC_PIC_PARAMS Input |
Video/Encoders/VideoEncoderNVENC.h | ||
virtual FAVResult SendFrame
(
TSharedPtr< FVideoResource > const& Resource, |
Video/Encoders/VideoEncoderNVENC.h | ||
virtual FAVResult SendFrameCUDA
(
TSharedPtr< FVideoResourceCUDA > const& Resource, |
Video/Encoders/VideoEncoderNVENC.h |