bool AL_Encoder_SetFrameRate(AL_HEncoder hEnc, uint16_t uFrameRate, uint16_t uClkRatio) - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2023-05-16
Version
2023.1 English

Description

Tells the encoder to change the encoding frame rate, which is calculated as follows.

fps = iFrameRate × 1,000 ÷ iClkRatio

For example, when uFrameRate = 60 and uClkRatio = 1,001, the frame rate is 59.94 fps.

Return

If successful, returns true. If unsuccessful, returns false. Call AL_Encoder_GetLastError to get the error code.