Loading media/codec2/components/vpx/C2SoftVpxEnc.cpp +13 −16 Original line number Diff line number Diff line Loading @@ -264,11 +264,8 @@ C2R C2SoftVpxEnc::IntfImpl::ProfileLevelSetter(bool mayBlock, // the requirements. bool needsUpdate = false; for (const LevelLimits& limit : kLimits) { if (samples > limit.samples) continue; if (samplesPerSec > limit.samplesPerSec) continue; if (bitrate.v.value > limit.bitrate) continue; if (dimension > limit.dimension) continue; if (samples <= limit.samples && samplesPerSec <= limit.samplesPerSec && bitrate.v.value <= limit.bitrate && dimension <= limit.dimension) { // This is the lowest level that meets the requirements, and if // we haven't seen the supplied level yet, that means we don't // need the update. Loading @@ -280,7 +277,7 @@ C2R C2SoftVpxEnc::IntfImpl::ProfileLevelSetter(bool mayBlock, } found = true; break; } if (me.v.level == limit.level) { // We break out of the loop when the lowest feasible level is // found. The fact that we're here means that our level doesn't Loading Loading
media/codec2/components/vpx/C2SoftVpxEnc.cpp +13 −16 Original line number Diff line number Diff line Loading @@ -264,11 +264,8 @@ C2R C2SoftVpxEnc::IntfImpl::ProfileLevelSetter(bool mayBlock, // the requirements. bool needsUpdate = false; for (const LevelLimits& limit : kLimits) { if (samples > limit.samples) continue; if (samplesPerSec > limit.samplesPerSec) continue; if (bitrate.v.value > limit.bitrate) continue; if (dimension > limit.dimension) continue; if (samples <= limit.samples && samplesPerSec <= limit.samplesPerSec && bitrate.v.value <= limit.bitrate && dimension <= limit.dimension) { // This is the lowest level that meets the requirements, and if // we haven't seen the supplied level yet, that means we don't // need the update. Loading @@ -280,7 +277,7 @@ C2R C2SoftVpxEnc::IntfImpl::ProfileLevelSetter(bool mayBlock, } found = true; break; } if (me.v.level == limit.level) { // We break out of the loop when the lowest feasible level is // found. The fact that we're here means that our level doesn't Loading