Unified · Split
| @@ -610,6 +610,9 @@ int main(int argc, char **argv) { · 609 unmodified lines | ||
| 610 | 610 | cfg.rc_buf_optimal_sz = 600; |
| 611 | 611 | cfg.rc_buf_sz = 1000; |
| 612 | 612 | |
| 613 | + // Use 1 thread as default. | |
| 614 | + cfg.g_threads = 1; | |
| 615 | + | |
| 613 | 616 | // Enable error resilient mode. |
| 614 | 617 | cfg.g_error_resilient = 1; |
| 615 | 618 | cfg.g_lag_in_frames = 0; |
| @@ -675,6 +678,7 @@ int main(int argc, char **argv) { · 59 unmodified lines | ||
| 675 | 678 | vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0); |
| 676 | 679 | vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0); |
| 677 | 680 | vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0); |
| 681 | + vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (cfg.g_threads >> 1)); | |
| 678 | 682 | if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) { |
| 679 | 683 | die_codec(&codec, "Failed to set SVC"); |
| 680 | 684 | } |