Geting specific pictureType of frame encoded by h264

I created h264 encoder and enable “IntraRefresh” like below.

m_stEncodeConfig.encodeCodecConfig.hevcConfig.enableIntraRefresh = 1;
m_stEncodeConfig.encodeCodecConfig.hevcConfig.intraRefreshPeriod = 150; // frameRate is 30.
m_stEncodeConfig.encodeCodecConfig.hevcConfig.intraRefreshCnt = 30;

I have confirmed that rendered frames gradually refreshed per 5 seconds on display.

I couldn’t get specific picturetype(NV_ENC_PIC_TYPE_INTRA_REFRESH) of frame encoded
but I could get NV_ENC_PIC_TYPE_IDR picture type from below code.

if(NV_ENC_PIC_TYPE_IDR == lockBitstreamData.pictureType)
{
nKeyFrame = 1;
XTRACE(XLOG_DBG_LEVEL1, _T(“==> Send IDR frame”));
}
else if(NV_ENC_PIC_TYPE_INTRA_REFRESH == lockBitstreamData.pictureType)
{
nKeyFrame = 1;
XTRACE(XLOG_DBG_LEVEL1, _T(“==> Send first picture in intra refresh cycle”));
}

I wonder why I can not get the picture type(NV_ENC_PIC_TYPE_INTRA_REFRESH) from encoded frame.
Is the code wrong or not supported?