History

lavfi/spp: add "quality" option in runtime change path

it's stranage to use option "level" in runtime change path but used "quality" in option, add "quality" in runtime change path, it's more intuitive and keep the "level" for compatibility.

Jun Zhao committed 6 years ago

Commit 692f0511 parent 029cc982 files · +10 −1Browse files

Unified · Split

2 files
  1. doc/filters.texi +9 −0
  2. libavfilter/vf_spp.c +1 −1
doc/filters.texi+9−0
@@ -17290,6 +17290,15 @@ option may cause flicker since the B-Frames have often larger QP. Default is · 17289 unmodified lines
17290@code{0} (not enabled).17290@code{0} (not enabled).
17291@end table17291@end table
17292 17292
17293@subsection Commands
17294
17295This filter supports the following commands:
17296@table @option
17297@item level
17298@item quality
17299Same as quality option. And the command accepts the @code{max} same as the @code{6}.
17300@end table
17301
17293@section sr17302@section sr
17294 17303
17295Scale the input by applying one of the super-resolution methods based on17304Scale the input by applying one of the super-resolution methods based on
libavfilter/vf_spp.c+1−1
@@ -444,7 +444,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar · 443 unmodified lines
444{444{
445 SPPContext *s = ctx->priv;445 SPPContext *s = ctx->priv;
446 446
447 if (!strcmp(cmd, "level")) {447 if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) {
448 if (!strcmp(args, "max"))448 if (!strcmp(args, "max"))
449 s->log2_count = MAX_LEVEL;449 s->log2_count = MAX_LEVEL;
450 else450 else

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