History

lavfi/vf_scale: pass the thread count to the scaler

Anton Khirnov committed 5 years ago

Commit 60515a61 parent d6fdc781 file · +1 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_scale.c+1−0
@@ -542,6 +542,7 @@ static int config_props(AVFilterLink *outlink) · 541 unmodified lines
542 av_opt_set_int(s, "sws_flags", scale->flags, 0);542 av_opt_set_int(s, "sws_flags", scale->flags, 0);
543 av_opt_set_int(s, "param0", scale->param[0], 0);543 av_opt_set_int(s, "param0", scale->param[0], 0);
544 av_opt_set_int(s, "param1", scale->param[1], 0);544 av_opt_set_int(s, "param1", scale->param[1], 0);
545 av_opt_set_int(s, "threads", ff_filter_get_nb_threads(ctx), 0);
545 if (scale->in_range != AVCOL_RANGE_UNSPECIFIED)546 if (scale->in_range != AVCOL_RANGE_UNSPECIFIED)
546 av_opt_set_int(s, "src_range",547 av_opt_set_int(s, "src_range",
547 scale->in_range == AVCOL_RANGE_JPEG, 0);548 scale->in_range == AVCOL_RANGE_JPEG, 0);

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