Only send I frames when necessary
This commit is contained in:
committed by
Guillaume Meunier
parent
6e14bac589
commit
df786362e7
@@ -266,7 +266,7 @@ void VideoEncoderNvenc::Encode(int index, bool idr, std::chrono::steady_clock::t
|
||||
param.inputWidth = width;
|
||||
param.inputHeight = height;
|
||||
param.inputPitch = width;
|
||||
param.encodePicFlags = idr ? (uint32_t)NV_ENC_PIC_TYPE_IDR : 0;
|
||||
param.encodePicFlags = (uint32_t)(idr ? NV_ENC_PIC_TYPE_IDR : NV_ENC_PIC_TYPE_P);
|
||||
param.frameIdx = 0;
|
||||
param.inputTimeStamp = 0;
|
||||
param.inputBuffer = param4.mappedResource;
|
||||
|
||||
Reference in New Issue
Block a user