nvenc: ability to set bitrate at runtime
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user