diff --git a/examples/gif2webp.c b/examples/gif2webp.c index 6c7f4638..49059c56 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -230,6 +230,8 @@ static void Help(void) { printf("copy from the input to the output if present.\n"); printf(" " "Valid values: all, none, icc, xmp (default)\n"); + printf(" -mt .................... use multi-threading if available\n"); + printf("\n"); printf(" -version ............... print version number and exit.\n"); printf(" -v ..................... verbose.\n"); printf(" -quiet ................. don't print anything.\n"); @@ -347,6 +349,8 @@ int main(int argc, const char *argv[]) { } start = token + 1; } + } else if (!strcmp(argv[c], "-mt")) { + ++config.thread_level; } else if (!strcmp(argv[c], "-version")) { const int enc_version = WebPGetEncoderVersion(); const int mux_version = WebPGetMuxVersion(); diff --git a/man/gif2webp.1 b/man/gif2webp.1 index ded05e37..597e20dc 100644 --- a/man/gif2webp.1 +++ b/man/gif2webp.1 @@ -1,5 +1,5 @@ .\" Hey, EMACS: -*- nroff -*- -.TH GIF2WEBP 1 "December 12, 2013" +.TH GIF2WEBP 1 "December 17, 2013" .SH NAME gif2webp \- Convert a GIF image to WebP .SH SYNOPSIS @@ -98,6 +98,10 @@ strength of the filtering process applied after decoding the picture. The higher the value the smoother the picture will appear. Typical values are usually in the range of 20 to 50. .TP +.B \-mt +Use multi-threading for encoding, if possible. This option is only effective +when using lossy compression. +.TP .B \-v Print extra information. .TP