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

Commit 66673578 authored by Vignesh Venkatasubramanian's avatar Vignesh Venkatasubramanian Committed by android-build-merger
Browse files

Merge "SoftVPXEncoder: Disable lagged vp9 encoding" into oc-dev am: 5783ee1c am: 6613ce65

am: 4dcf17e1

Change-Id: I87d1250c1196b1b36ceb6d19ae33c8a8f88091fb
parents fadcfa0e 4dcf17e1
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.