No description
Find a file
Martin Storsjo 0fee94865a Use INT_MAX as i4_max_sad in ih264e_evaluate_bipred
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
2015-07-28 18:47:19 +00:00
common Mark arrays of pointers as const 2015-06-27 00:43:36 +03:00
decoder Don't declare variables after statements 2015-06-25 13:29:52 +03:00
encoder Use INT_MAX as i4_max_sad in ih264e_evaluate_bipred 2015-07-28 18:47:19 +00:00
test avcenc: Initialize avg_time 2015-07-28 18:45:02 +00:00
Android.mk fix file permissions 2015-05-05 17:34:51 +00:00
decoder.arm.mk Allow using the clang built-in arm assembler 2015-06-24 20:46:19 +00:00
decoder.arm64.mk Allow using the clang built-in arm assembler 2015-06-24 20:46:19 +00:00
decoder.mips.mk fix file permissions 2015-05-05 17:34:51 +00:00
decoder.mips64.mk Fix a variable name typo in the mips64 makefiles 2015-05-20 14:57:43 +03:00
decoder.mk Remove unnecessary defines/undefines in the makefiles 2015-06-24 20:37:31 +00:00
decoder.x86.mk Don't set -mno-avx 2015-06-27 00:44:27 +03:00
decoder.x86_64.mk Don't set -mno-avx 2015-06-27 00:44:27 +03:00
encoder.arm.mk Allow using the clang built-in arm assembler 2015-06-24 20:46:19 +00:00
encoder.arm64.mk Allow using the clang built-in arm assembler 2015-06-24 20:46:19 +00:00
encoder.mips.mk fix file permissions 2015-05-05 17:34:51 +00:00
encoder.mips64.mk Fix a variable name typo in the mips64 makefiles 2015-05-20 14:57:43 +03:00
encoder.mk Remove unnecessary defines/undefines in the makefiles 2015-06-24 20:37:31 +00:00
encoder.x86.mk Don't set -mno-avx 2015-06-27 00:44:27 +03:00
encoder.x86_64.mk Don't set -mno-avx 2015-06-27 00:44:27 +03:00