I want to change the encoder frame rate for the JPEG stream to 1 frame per 3 second, instead of the default 1 fps, in order to save some loading. I know it won't make big difference, but I am trying to optimize it.
The function Venc_setDynamicParam(ch_id, 0, &ch_para, VENC_FRAMERATE) takes frame rate and multiply 1000, so I tried
EncLink_ChFpsParams enc_para;
UINT i, ch_id;
for (i=0; i<_this->num_ch; i++)
{
enc_para.chId = i + _this->venc_param.numPrimaryChn;
enc_para.targetFps = 333;
enc_para.targetBitRate = 0;
System_linkControl(_this->link.enc.id, ENC_LINK_CMD_SET_CODEC_FPS,
&enc_para, sizeof(enc_para), TRUE);
}
but it is not working. What other changes do I need?
Thanks