SDK-neutral standalone NVENC encoder interface.
More...
#include <src/nvenc/nvenc_encoder.h>
SDK-neutral standalone NVENC encoder interface.
◆ create_encoder()
Create the encoder.
- Parameters
-
| config | NVENC encoder configuration. |
| client_config | Stream configuration requested by the client. |
| colorspace | Sunshine colorspace metadata. |
| buffer_format | Platform-agnostic input surface format. |
- Returns
true on success, false on error.
◆ destroy_encoder()
| virtual void nvenc::nvenc_encoder::destroy_encoder |
( |
| ) |
|
|
pure virtual |
◆ encode_frame()
| virtual nvenc_encoded_frame nvenc::nvenc_encoder::encode_frame |
( |
std::uint64_t | frame_index, |
|
|
bool | force_idr ) |
|
pure virtual |
Encode the next frame using the platform-specific input surface.
- Parameters
-
| frame_index | Frame index that uniquely identifies the frame. |
| force_idr | Whether to encode the frame as a forced IDR. |
- Returns
- Encoded frame.
◆ invalidate_ref_frames()
| virtual bool nvenc::nvenc_encoder::invalidate_ref_frames |
( |
std::uint64_t | first_frame, |
|
|
std::uint64_t | last_frame ) |
|
pure virtual |
Invalidate reference frames in the requested range.
- Parameters
-
| first_frame | First frame index of the invalidation range. |
| last_frame | Last frame index of the invalidation range. |
- Returns
true on success, false on error.
The documentation for this class was generated from the following file: