Loading media/codec2/components/aom/C2SoftAomEnc.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -466,6 +466,7 @@ static int MapC2ComplexityToAOMSpeed (int c2Complexity) { aom_codec_err_t C2SoftAomEnc::setupCodecParameters() { aom_codec_err_t codec_return = AOM_CODEC_OK; const int maxIntraBitratePct = mBitrateControlMode == AOM_CBR ? 300 : 450; codec_return = aom_codec_control(mCodecContext, AV1E_SET_TARGET_SEQ_LEVEL_IDX, mAV1EncLevel); if (codec_return != AOM_CODEC_OK) goto BailOut; Loading @@ -492,6 +493,10 @@ aom_codec_err_t C2SoftAomEnc::setupCodecParameters() { codec_return = aom_codec_control(mCodecContext, AV1E_SET_AQ_MODE, 3); if (codec_return != AOM_CODEC_OK) goto BailOut; codec_return = aom_codec_control(mCodecContext, AOME_SET_MAX_INTRA_BITRATE_PCT, maxIntraBitratePct); if (codec_return != AOM_CODEC_OK) goto BailOut; codec_return = aom_codec_control(mCodecContext, AV1E_SET_COEFF_COST_UPD_FREQ, 3); if (codec_return != AOM_CODEC_OK) goto BailOut; Loading Loading
media/codec2/components/aom/C2SoftAomEnc.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -466,6 +466,7 @@ static int MapC2ComplexityToAOMSpeed (int c2Complexity) { aom_codec_err_t C2SoftAomEnc::setupCodecParameters() { aom_codec_err_t codec_return = AOM_CODEC_OK; const int maxIntraBitratePct = mBitrateControlMode == AOM_CBR ? 300 : 450; codec_return = aom_codec_control(mCodecContext, AV1E_SET_TARGET_SEQ_LEVEL_IDX, mAV1EncLevel); if (codec_return != AOM_CODEC_OK) goto BailOut; Loading @@ -492,6 +493,10 @@ aom_codec_err_t C2SoftAomEnc::setupCodecParameters() { codec_return = aom_codec_control(mCodecContext, AV1E_SET_AQ_MODE, 3); if (codec_return != AOM_CODEC_OK) goto BailOut; codec_return = aom_codec_control(mCodecContext, AOME_SET_MAX_INTRA_BITRATE_PCT, maxIntraBitratePct); if (codec_return != AOM_CODEC_OK) goto BailOut; codec_return = aom_codec_control(mCodecContext, AV1E_SET_COEFF_COST_UPD_FREQ, 3); if (codec_return != AOM_CODEC_OK) goto BailOut; Loading