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
1729017290 @code{0} (not enabled).
1729117291 @end table
1729217292
17293+@subsection Commands
17294+
17295+This filter supports the following commands:
17296+@table @option
17297+@item level
17298+@item quality
17299+Same as quality option. And the command accepts the @code{max} same as the @code{6}.
17300+@end table
17301+
1729317302 @section sr
1729417303
1729517304 Scale 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
444444 {
445445 SPPContext *s = ctx->priv;
446446
447− if (!strcmp(cmd, "level")) {
447+ if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) {
448448 if (!strcmp(args, "max"))
449449 s->log2_count = MAX_LEVEL;
450450 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