Commit graph

11 commits

Author SHA1 Message Date
Wonsik Kim
1e1bf6f80d Merge "libhevcenc: Add support for dynamic change in bitrate" into qt-dev 2019-05-28 18:41:54 +00:00
TreeHugger Robot
74e2f92937 Merge "libhevcenc: fix few isan and usan issues" into qt-dev 2019-05-22 21:24:32 +00:00
Akshata Jadhav
5c55da9913 libhevcenc: Add support for dynamic change in bitrate
Test: hevcenc -c vid_enc_cfg.txt
Bug: 125938526

Change-Id: I3c45cf5ebf6348024a5632025f042b1a3c2544d9
2019-05-20 16:58:32 -07:00
Ram Mohan
c6b8260fc9 libhevcenc: clip frame qp to configured bounds
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)
2019-05-15 22:03:54 +00:00
Ram Mohan
0bd715ca06 libhevcenc: fix few isan and usan issues
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)
2019-05-15 21:45:55 +00:00
TreeHugger Robot
aa9b5a11f1 Merge "encoder: Allow minimum frame rate of 1" into qt-dev 2019-05-11 01:44:17 +00:00
TreeHugger Robot
3dc3e414dc Merge "libhevcenc: reduce min resolution from 320x240 to 2x2" into qt-dev 2019-05-10 22:55:00 +00:00
Harish Mahendrakar
6147147cdf encoder: Allow minimum frame rate of 1
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
2019-05-10 15:43:36 -07:00
Ram Mohan
c0745f1209 libhevcenc: reduce min resolution from 320x240 to 2x2
Test: hevcenc -c vid_enc_cfg.txt
Bug: 129763447

Change-Id: If4dbaba1086694fd2030b05c232988d8c1807fea
2019-05-03 21:36:21 +00:00
Ram Mohan
c7fa48a5c3 libhevcenc: integrate missing neon function in preset P0
C/neon behaviour earlier differed (Neon was correct).  This is corrected.

Test: hevcenc -c vid_enc_cfg.txt
Bug: 129762743
Change-Id: I0e59ee371a3d3b9902bcce1d1188856fb169fb8a
2019-05-03 21:35:01 +00:00
Ram Mohan
69da5e22f6 libhevcenc: Initial commit
Test: hevcenc -c vid_enc_cfg.txt

Bug: 110456253
Test: CtsMediaTests/VideoEncoder
Change-Id: I9df8143709c3fe5d2c8398974a16529a3f8b8ebc
2019-02-18 07:43:11 -08:00