No description
The stored i4_mb_distortion that was used as i4_max_sad previously might come from a different coding mode - even if pf_ime_compute_sad_16x16 returns early when i4_mb_distortion is larger than ps_mb_ctxt_bi->i4_mb_distortion, the calculated i4_mb_cost can still end up smaller than ps_mb_ctxt_bi->i4_mb_cost. Therefore, set i4_max_sad to INT_MAX to avoid the early exit in pf_ime_compute_sad_16x16 here, since it can't be used reliably (and returning early can end up choosing a suboptimal mode). This makes sure that the encoded output is identical when the SIMD optimized routines are disabled, when using B-frames. Change-Id: I9b8d524f88020e557541700133c7a0b48fe6a3b8 |
||
|---|---|---|
| common | ||
| decoder | ||
| encoder | ||
| test | ||
| Android.mk | ||
| decoder.arm.mk | ||
| decoder.arm64.mk | ||
| decoder.mips.mk | ||
| decoder.mips64.mk | ||
| decoder.mk | ||
| decoder.x86.mk | ||
| decoder.x86_64.mk | ||
| encoder.arm.mk | ||
| encoder.arm64.mk | ||
| encoder.mips.mk | ||
| encoder.mips64.mk | ||
| encoder.mk | ||
| encoder.x86.mk | ||
| encoder.x86_64.mk | ||