nvenc: ability to set bitrate at runtime

This commit is contained in:
aomiki
2025-10-29 19:19:22 +01:00
committed by xytovl
parent 1696512385
commit 13ff9231f0
2 changed files with 70 additions and 31 deletions
+4
View File
@@ -41,6 +41,8 @@ private:
void * session_handle = nullptr;
NV_ENC_OUTPUT_PTR bitstreamBuffer;
NV_ENC_CONFIG config;
NV_ENC_INITIALIZE_PARAMS init_params;
struct in_t
{
@@ -54,6 +56,8 @@ private:
int bitrate;
int bytesPerPixel = 1;
NV_ENC_RC_PARAMS get_rc_params();
public:
video_encoder_nvenc(wivrn_vk_bundle & vk, encoder_settings & settings, float fps, uint8_t stream_idx);
~video_encoder_nvenc();