Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a77b3819 authored by Vignesh Venkatasubramanian's avatar Vignesh Venkatasubramanian Committed by Lajos Molnar
Browse files

SoftVPXEncoder: Disable lagged vp9 encoding

VP9 encoding on realtime should not have any lag set (it is set to
the library default right now for VBR mode). Unconditionally
disable it.

Test: CtsVideoTestCases

Bug: 62274213
Change-Id: Iab1abcae4f648198cb2b9bc634f73f612025f986
parent a6263336
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -137,6 +137,8 @@ status_t SoftVPXEncoder::initEncoder() {
    mCodecConfiguration->rc_end_usage = mBitrateControlMode;
    // Disable frame drop - not allowed in MediaCodec now.
    mCodecConfiguration->rc_dropframe_thresh = 0;
    // Disable lagged encoding.
    mCodecConfiguration->g_lag_in_frames = 0;
    if (mBitrateControlMode == VPX_CBR) {
        // Disable spatial resizing.
        mCodecConfiguration->rc_resize_allowed = 0;
@@ -157,8 +159,6 @@ status_t SoftVPXEncoder::initEncoder() {
        mCodecConfiguration->rc_buf_sz = 1000;
        // Enable error resilience - needed for packet loss.
        mCodecConfiguration->g_error_resilient = 1;
        // Disable lagged encoding.
        mCodecConfiguration->g_lag_in_frames = 0;
        // Maximum key frame interval - for CBR boost to 3000
        mCodecConfiguration->kf_max_dist = 3000;
        // Encoder determines optimal key frame placement automatically.