History

Set the threads/tile_columns in vpx_temporal_svc_encoder.

Marco committed 11 years ago

Commit c76ebff1 parent feda5d21 file · +4 −0Browse files

Unified · Split

examples/vpx_temporal_svc_encoder.c+4−0
@@ -610,6 +610,9 @@ int main(int argc, char **argv) { · 609 unmodified lines
610610 cfg.rc_buf_optimal_sz = 600;
611611 cfg.rc_buf_sz = 1000;
612612
613+ // Use 1 thread as default.
614+ cfg.g_threads = 1;
615+
613616 // Enable error resilient mode.
614617 cfg.g_error_resilient = 1;
615618 cfg.g_lag_in_frames = 0;
@@ -675,6 +678,7 @@ int main(int argc, char **argv) { · 59 unmodified lines
675678 vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0);
676679 vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0);
677680 vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0);
681+ vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (cfg.g_threads >> 1));
678682 if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) {
679683 die_codec(&codec, "Failed to set SVC");
680684 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t