mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Default ractool to use dchunksize not cchunksize
This commit is contained in:
1 parent
737571cef8
commit
917f028f46
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ The flags should include exactly one of -decode or -encode.
|
||||
When encoding, the input is partitioned into chunks and each chunk is
|
||||
compressed independently. You can specify the target chunk size in terms of
|
||||
either its compressed size or decompressed size. By default (if both
|
||||
-cchunksize and -dchunksize are zero), a 64KiB -cchunksize is used.
|
||||
-cchunksize and -dchunksize are zero), a 64KiB -dchunksize is used.
|
||||
|
||||
You can also specify a -cpagesize, which is similar to but not exactly the same
|
||||
concept as alignment. If non-zero, padding is inserted into the output to
|
||||
|
||||
+2
-2
@@ -31,7 +31,7 @@ The flags should include exactly one of -decode or -encode.
|
||||
When encoding, the input is partitioned into chunks and each chunk is
|
||||
compressed independently. You can specify the target chunk size in terms of
|
||||
either its compressed size or decompressed size. By default (if both
|
||||
-cchunksize and -dchunksize are zero), a 64KiB -cchunksize is used.
|
||||
-cchunksize and -dchunksize are zero), a 64KiB -dchunksize is used.
|
||||
|
||||
You can also specify a -cpagesize, which is similar to but not exactly the same
|
||||
concept as alignment. If non-zero, padding is inserted into the output to
|
||||
@@ -256,7 +256,7 @@ func encode(r io.Reader) error {
|
||||
if (*cchunksizeFlag != 0) && (*dchunksizeFlag != 0) {
|
||||
return errors.New("must specify none or one of -cchunksize or -dchunksize")
|
||||
} else if (*cchunksizeFlag == 0) && (*dchunksizeFlag == 0) {
|
||||
*cchunksizeFlag = 65536 // 64 KiB.
|
||||
*dchunksizeFlag = 65536 // 64 KiB.
|
||||
}
|
||||
|
||||
switch *codecFlag {
|
||||
|
||||
Reference in new issue
Block a user