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

Commit 8c6cbbb9 authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

codec: Enable VP9 row multithread encoding.

Bug:69864768
Test: None
Change-Id: I1bcffccac7cca0e0f11dd21b1cb666b3772b8672
parent 4f23aa95
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -69,6 +69,13 @@ vpx_codec_err_t SoftVP9Encoder::setCodecSpecificControls() {
              codecReturn);
        return codecReturn;
    }
    codecReturn = vpx_codec_control(mCodecContext, VP9E_SET_ROW_MT, 1);
    if (codecReturn != VPX_CODEC_OK) {
        ALOGE("Error setting VP9E_SET_ROW_MT to 1. vpx_codec_control() "
              "returned %d", codecReturn);
        return codecReturn;
    }

    // For VP9, we always set CPU_USED to 8 (because the realtime default is 0
    // which is too slow).
    codecReturn = vpx_codec_control(mCodecContext, VP8E_SET_CPUUSED, 8);