What's the difference between intraRefreshCnt vs intraRefreshPeriod?

I see the comments in nvEncodeAPI.h but I am not entirely certain what they are still.

Hello,

This document should shed some light.

https://docs.nvidia.com/drive/archive/4.1L/nvvib_docs/NVIDIA%20Vibrante%20Linux%20DPX%20Development%20Guide/baggage/structNvMediaEncodeConfigH264.html#ac6df57958ab4df663b11e8f6047f339d

Thanks - that was helpful!

For others:

// Holds the interval between frames that trigger a new intra refresh cycle
// and this cycle lasts for intraRefreshCnt frames.
encodeConfig.encodeCodecConfig.h264Config.intraRefreshPeriod = this->fps * 10;
// Holds the number of frames over which intra refresh will happen
encodeConfig.encodeCodecConfig.h264Config.intraRefreshCnt = this->fps

Great!

Cheers,
Tom