[FFmpeg-devel] [PATCH] lavc/libvpxenc: add -row-mt option

Moritz Barsnick barsnick at gmx.net
Fri Mar 3 00:16:03 EET 2017


On Thu, Mar 02, 2017 at 22:00:36 +0300, Kagami Hiiragi wrote:
> +    {"row-mt", "Row based multi-threading", OFFSET(row_mt), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 1, VE},
                                                                           ^
Woudn't a _BOOL type accept exactly the same ranges and defaults, with
the same behavior, but document itself more nicely?

It would result in
 -row-mt  <boolean>    E....... Row based multi-threading (default auto)
instead of
 -row-mt  <int>        E....... Row based multi-threading (from -1 to 1) (default -1)

(Guessing, untested.)

Moritz


More information about the ffmpeg-devel mailing list