In one of the returns paths from rc library, it is seen that frame qp is
exceeding the max value configured. At extremely low bitrates, this is
exceeding the max allowable qp and is causing access violation.
Test: hevcenc -c vid_enc_cfg.txt --tgt_bitrate 64000
Bug: 130018957
Test: poc
Change-Id: Iff64c73752d2fd795276678b0d681ab10b550750
(cherry picked from commit 79b1da48eb)
1. While encoding uniform content, it is possible to have perfect
prediction, thus yielding zero distortion. Ratio of Log(cu distortion),
Log(avg cu distortion) is used in cu level qp modulation.
So avoid log(zero) calls.
2. Limit peak-br to twice of tgt-br.
Test: hevcenc -c vid_enc_cfg.txt --input night_320x240_1.yuv --src_width 320 --src_height 240
Bug: 130019940
Change-Id: I9ec68e385b06af25f216c51bcb90910750a5b3bf
(cherry picked from commit 79d3f2a354)
Earlier min frame rate allowed was 7.5.
Encoder now supports min frame rate of 1 which is needed for image
encoding
Bug: 132450110
Test: With HeifWriter demo application for 512x512 image
Change-Id: I1c39ecef3f489d9acc3ae1e6ef8f7ad587b3f2e1