mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +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
|
When encoding, the input is partitioned into chunks and each chunk is
|
||||||
compressed independently. You can specify the target chunk size in terms of
|
compressed independently. You can specify the target chunk size in terms of
|
||||||
either its compressed size or decompressed size. By default (if both
|
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
|
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
|
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
|
When encoding, the input is partitioned into chunks and each chunk is
|
||||||
compressed independently. You can specify the target chunk size in terms of
|
compressed independently. You can specify the target chunk size in terms of
|
||||||
either its compressed size or decompressed size. By default (if both
|
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
|
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
|
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) {
|
if (*cchunksizeFlag != 0) && (*dchunksizeFlag != 0) {
|
||||||
return errors.New("must specify none or one of -cchunksize or -dchunksize")
|
return errors.New("must specify none or one of -cchunksize or -dchunksize")
|
||||||
} else if (*cchunksizeFlag == 0) && (*dchunksizeFlag == 0) {
|
} else if (*cchunksizeFlag == 0) && (*dchunksizeFlag == 0) {
|
||||||
*cchunksizeFlag = 65536 // 64 KiB.
|
*dchunksizeFlag = 65536 // 64 KiB.
|
||||||
}
|
}
|
||||||
|
|
||||||
switch *codecFlag {
|
switch *codecFlag {
|
||||||
|
|||||||
Reference in new issue
Block a user