Giovanni,
You are correct the intraRefresh parameter is the latency and you can control the I-frames and P-frames in the EncOpenParam structure, modifing the Gobsize
typedef struct {
CodStd bitstreamFormat;
PhysicalAddress bitstreamBuffer;
Uint32 bitstreamBufferSize;
Uint8 *virt_bitstreamBuffer;
int streamBufResetEnable;
int picWidth;
int picHeight;
Uint32 frameRateInfo;
int bitRate;
int initialDelay;
int vbvBufferSize;
int enableAutoSkip;
int gopSize;
int sliceMode;
int sliceSizeMode;
int sliceSize;
int intraRefresh;
int sliceReport;
int mbReport;
int mbQpReport;
union {
EncMp4Param mp4Param;
EncH263Param h263Param;
EncAvcParam avcParam;
} EncStdParam;
} EncOpenParam;
Gobsize
0 – Only first picture is I, 1 – all I pictures, 2 – IPIP…, 3 – IPPIPP…
The maximum value is limited by 60.