mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 07:22:52 +01:00
gif2webp: Add a multi-threaded encode option
Change-Id: If16a5f434e0ab2965a7ac9392633ecaf8c4aff46
This commit is contained in:
parent
495bef413d
commit
a9a20acfa6
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user