The encoder uses lambda factors per QP value as bitrate as opposed to
quality trade-off. By default, the encoder IP use internal lambda factors but it can
also use user specified lambda factors. This feature is enabled when LambdaCtrlMode
is set to LOAD_LDA and when a Lambdas.hex file is available in the working
directory. Each line of Lambdas.hex contains one
32-bit hexadecimal value per QP values (that is 52 lines for QP in range
[0...51]).
Each 32 bits word is split as follows:
- Bit 7 to 0
- Lambda factor for slice B
- Bit 15 to 8
- Lambda factor for slice P
- Bit 23 to 16
- Lambda factor for slice I
- Bit 31 to 24
- Lambda factor for the motion estimation block (this value shall be a power of two)
Note: Usually, the lambdas
factors follow the equation: λ(QP)= N−2(QP6−2),
where N is different for I, P and B factors.