Commit 3383144
committed
vp9: Fixes for CONFIG_REALTIME_ONLY
For CONFIG_REALTIME_ONLY build the speed setting
is clamped to 5 (done in both the default config
and in the control for setting the speed/cpu_used),
but for !CONFIG_REALTIME_ONLY and realtime encoding
(VPX_DL_REALTIME) the speed is not clamped and can
be set down to speeds < 5.
Fix this by adding the clamp in pick_quickcompress_mode()
where the REALTIME mode is set.
Fix the kCpuUsedVectors[] in vp9_end_to_end_test.cc,
as the psnr thresholds (kPsnrThreshold[cpu_used_][encoding_mode_])
for the tests are set based on these cpu_used settings, and this
was causing failures for CONFIG_REALTIME_ONLY (which was encoding
with speed 5 but using psnr-thresholds set for speed < 5).
And fix the threshold for the ResizeCspWorks test to make it pass
at speed 5.
Bug: 454987857
Change-Id: I1669da872ac42b65b8a2fc3a6e2d795e54e33d8a1 parent b0be221 commit 3383144
3 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
776 | 779 | | |
777 | 780 | | |
778 | 781 | | |
| |||
787 | 790 | | |
788 | 791 | | |
789 | 792 | | |
790 | | - | |
| 793 | + | |
791 | 794 | | |
792 | 795 | | |
793 | 796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
| 1223 | + | |
1223 | 1224 | | |
1224 | 1225 | | |
1225 | 1226 | | |
| |||
0 commit comments