Home
last modified time | relevance | path

Searched +full:- +full:- +full:with +full:- +full:zstd (Results 1 – 25 of 428) sorted by relevance

12345678910>>...18

/external/zstd/tests/
DplayTests.sh3 set -e # exit immediately on error
4 # set -x # print commands before execution (debug)
19 zstd() { function
20 if [ -z "$EXE_PREFIX" ]; then
28 if [ -z "$EXE_PREFIX" ]; then
36 if [ -n "$3" ]; then
43 if [ -n "$4" ]; then
49 rm -f tmp1 tmp2
50 println "roundTripTest: datagen $1 $proba | zstd -v$cLevel | zstd -d$dLevel"
52 datagen $1 $proba | zstd --ultra -v$cLevel | zstd -d$dLevel | $MD5SUM > tmp2
[all …]
DREADME.md5 - `datagen` : Synthetic and parametrable data generator, for tests
6 - `fullbench` : Precisely measure speed for each zstd inner functions
7 - `fuzzer` : Test tool, to check zstd integrity on target platform
8 - `paramgrill` : parameter tester for zstd
9 - `test-zstd-speed.py` : script for testing zstd speed difference between commits
10 - `test-zstd-versions.py` : compatibility test between zstd versions stored on Github (v0.1+)
11 - `zstreamtest` : Fuzzer test tool for zstd streaming API
12 - `legacy` : Test tool to test decoding of legacy zstd frames
13 - `decodecorpus` : Tool to generate valid Zstandard frames, for verifying decoder implementations
16 #### `test-zstd-versions.py` - script for testing zstd interoperability between versions
[all …]
Dtest-zstd-versions.py2 """Test zstd interoperability between versions"""
8 # This source code is licensed under both the BSD-style license (found in the
11 # You may select, at your option, one of the above-listed licenses.
23 repo_url = 'https://github.com/facebook/zstd.git'
26 make_args = ['-j','CFLAGS=-O0']
50 stderr_lines = stderr_lines.decode("utf-8")
51 stdout_lines = stdout_lines.decode("utf-8")
83 stdout, stderr = git(['tag', '-l', 'v[0-9].[0-9].[0-9]'])
84 tags = stdout.decode('utf-8').split()
92 cmd = ['./zstd.' + tag, '-D', dict_name]
[all …]
/external/zstd/tests/cli-tests/basic/
Dmemlimit.sh5 println "+ zstd --memory=32LB file"
6 zstd --memory=32LB file && die "Should not allow bogus suffix"
7 println "+ zstd --memory=32LiB file"
8 zstd --memory=32LiB file && die "Should not allow bogus suffix"
9 println "+ zstd --memory=32A file"
10 zstd --memory=32A file && die "Should not allow bogus suffix"
11 println "+ zstd --memory=32r82347dn83 file"
12 zstd --memory=32r82347dn83 file && die "Should not allow bogus suffix"
13 println "+ zstd --memory=32asbdf file"
14 zstd --memory=32asbdf file && die "Should not allow bogus suffix"
[all …]
/external/zstd/programs/
DMakefile5 # This source code is licensed under both the BSD-style license (found in the
8 # You may select, at your option, one of the above-listed licenses.
10 # zstd : Command Line Utility, supporting gzip-like arguments
11 # zstd32 : Same as zstd, but forced to compile in 32-bits mode
12 # zstd-nolegacy : zstd without support of decompression of legacy versions
13 # zstd-small : minimal zstd without dictionary builder and benchmark
14 # zstd-compress : compressor-only version of zstd
15 # zstd-decompress : decompressor-only version of zstd
18 # default target (when running `make` with no argument)
19 zstd-release:
[all …]
DREADME.md6 - `zstd` : default CLI supporting gzip-like arguments; includes dictionary builder, benchmark, and …
7 - `zstd_nolegacy` : Same as `zstd` but without support for legacy zstd formats
8 - `zstd-small` : CLI optimized for minimal size; no dictionary builder, no benchmark, and no suppor…
9 - `zstd-compress` : version of CLI which can only compress into zstd format
10 - `zstd-decompress` : version of CLI which can only decompress zstd format
14 `zstd` scope can be altered by modifying the following `make` variables :
16 - __HAVE_THREAD__ : multithreading is automatically enabled when `pthread` is detected.
18 Example : `make zstd HAVE_THREAD=0`
23 - __ZSTD_LEGACY_SUPPORT__ : `zstd` can decompress files compressed by older versions of `zstd`.
24 …Starting v0.8.0, all versions of `zstd` produce frames compliant with the [specification](../doc/z…
[all …]
Dzstd.11 .TH "ZSTD" "1" "October 2024" "zstd 1.5.6" "User Commands"
3 \fBzstd\fR \- zstd, zstdmt, unzstd, zstdcat \- Compress or decompress \.zst files
7 \fBzstd\fR [\fIOPTIONS\fR] [\- \fIINPUT\-FILE\fR] [\-o \fIOUTPUT\-FILE\fR]
10 \fBzstdmt\fR is equivalent to \fBzstd \-T0\fR
12 \fBunzstd\fR is equivalent to \fBzstd \-d\fR
14 \fBzstdcat\fR is equivalent to \fBzstd \-dcf\fR
16zstd\fR is a fast lossless compression algorithm and data compression tool, with command line synt…
18 \fBzstd\fR command line syntax is generally similar to gzip, but features the following few differe…
20 …eserved by default\. It's possible to remove them automatically by using the \fB\-\-rm\fR command\.
22 When compressing a single file, \fBzstd\fR displays progress notifications and result summary by de…
[all …]
Dzstd.1.md1 zstd(1) -- zstd, zstdmt, unzstd, zstdcat - Compress or decompress .zst files
5 --------
7 `zstd` [<OPTIONS>] [-|<INPUT-FILE>] [-o <OUTPUT-FILE>]
9 `zstdmt` is equivalent to `zstd -T0`
11 `unzstd` is equivalent to `zstd -d`
13 `zstdcat` is equivalent to `zstd -dcf`
17 -----------
18 `zstd` is a fast lossless compression algorithm and data compression tool,
19 with command line syntax similar to `gzip`(1) and `xz`(1).
20 It is based on the **LZ77** family, with further FSE & huff0 entropy stages.
[all …]
/external/zstd/lib/dll/example/
DREADME.md1 # ZSTD Windows binary package
5 - `zstd.exe` : Command Line Utility, supporting gzip-like arguments
6 - `dll\libzstd.dll` : The ZSTD dynamic library (DLL)
7 - `dll\libzstd.lib` : The import library of the ZSTD dynamic library (DLL) for Visual C++
8 - `example\` : The example of usage of the ZSTD library
9 - `include\` : Header files required by the ZSTD library
10 - `static\libzstd_static.lib` : The static ZSTD library (LIB)
14 Command Line Interface (CLI) supports gzip-like arguments.
17 Usage: zstd [arg] [input] [output]
19 The full list of commands for CLI can be obtained with `-h` or `-H`. The ratio can
[all …]
/external/zstd/build/
DREADME.md6 The following projects are included with the zstd distribution:
7 - `cmake` - CMake project contributed by Artyom Dymchenko
8 - `VS2005` - Visual Studio 2005 Project (this project has been moved to the contrib directory and w…
9 - `VS2008` - Visual Studio 2008 project
10 - `VS2010` - Visual Studio 2010 project (which also works well with Visual Studio 2012, 2013, 2015)
11 - `VS_scripts` - command line scripts prepared for Visual Studio compilation without IDE
14 #### How to compile zstd with Visual Studio
17 2. Download the latest version of zstd from https://github.com/facebook/zstd/releases
19 4. Go to decompressed directory then to `projects` then `VS2010` and open `zstd.sln`
21 6. Change `Debug` to `Release` and if you have 64-bit Windows change also `Win32` to `x64`.
[all …]
/external/zstd/zlibWrapper/
DREADME.md4 … main objective of creating a zstd wrapper for [zlib](https://zlib.net/) is to allow a quick and s…
8 To build the zstd wrapper for zlib the following files are required:
9 - zlib.h
10 - a static or dynamic zlib library
11 - zlibWrapper/zstd_zlibwrapper.h
12 - zlibWrapper/zstd_zlibwrapper.c
13 - zlibWrapper/gz*.c files (gzclose.c, gzlib.c, gzread.c, gzwrite.c)
14 - zlibWrapper/gz*.h files (gzcompatibility.h, gzguts.h)
15 - a static or dynamic zstd library
17 The first two files are required by all projects using zlib and they are not included with the zstd
[all …]
Dzstd_zlibwrapper.h5 * This source code is licensed under both the BSD-style license (found in the
8 * You may select, at your option, one of the above-listed licenses.
16 #define ZLIB_INTERNAL /* disables gz*64 functions but fixes zlib 1.2.4 with Z_PREFIX */
32 /* returns a string with version of zstd library */
37 /* ZWRAP_useZSTDcompression() enables/disables zstd compression during runtime.
38 … By default zstd compression is disabled. To enable zstd compression please use one of the methods:
39 - compilation with the additional option -DZWRAP_USE_ZSTD=1
40 - using '#define ZWRAP_USE_ZSTD 1' in source code before '#include "zstd_zlibwrapper.h"'
41 - calling ZWRAP_useZSTDcompression(1)
42 All above-mentioned methods will enable zstd compression for all threads.
[all …]
/external/zstd/tests/cli-tests/decompression/
Dpass-through.sh3 set -e
15 zstd file
18 zstd -dc --pass-through 1 2 3 4
25 # Test multiple files with mix of compressed & not
29 # Test --pass-through
30 zstd -dc --pass-through file
31 zstd -d --pass-through file -o pass-through-file
33 # Test legacy implicit passthrough with -fc
34 zstd -dcf file
35 zstd -dcf file file.zst
[all …]
/external/zstd/build/single_file_libs/
DREADME.md3 …reates an _amalgamated_ source file that can be used with or without `zstd.h`. This isn't a _heade…
5 All it now takes to support Zstd in your own projects is the addition of a single file, two if usin…
8 ------------
10 …n compiled WebAssembly project. Native implementations add a little more, 40-70kB depending on the…
12 Create `zstddeclib.c` from the Zstd source using:
14 cd zstd/build/single_file_libs
15 python3 combine.py -r ../../lib -x legacy/zstd_legacy.h -o zstddeclib.c zstddeclib-in.c
22 ------------
24Zstd library for ease of adding both compression and decompression to a project. The [roundtrip ex…
26 Create `zstd.c` from the Zstd source using:
[all …]
/external/zstd/
DREADME.md1 <p align="center"><img src="https://raw.githubusercontent.com/facebook/zstd/dev/doc/images/zstd_log…
3 __Zstandard__, or `zstd` as short version, is a fast lossless compression algorithm,
4 targeting real-time compression scenarios at zlib-level and better compression ratios.
8 This repository represents the reference implementation, provided as an open-source dual [BSD](LICE…
11 …and bindings is provided on [Zstandard homepage](https://facebook.github.io/zstd/#other-languages).
20 [travisDevBadge]: https://api.travis-ci.com/facebook/zstd.svg?branch=dev "Continuous Integration te…
21 [travisLink]: https://travis-ci.com/facebook/zstd
22 [CircleDevBadge]: https://circleci.com/gh/facebook/zstd/tree/dev.svg?style=shield "Short test suite"
23 [CircleLink]: https://circleci.com/gh/facebook/zstd
24 [CirrusDevBadge]: https://api.cirrus-ci.com/github/facebook/zstd.svg?branch=dev
[all …]
DCONTRIBUTING.md30 Zstd uses a branch-based workflow for making changes to the codebase. Typically, zstd
37 * Checkout your fork of zstd if you have not already
39 git checkout https://github.com/<username>/zstd
40 cd zstd
44 git pull https://github.com/facebook/zstd dev
51 git checkout -b <branch-name>
52 git push origin <branch-name>
57 git add -u && git commit -m <message>
58 git push origin <branch-name>
91 …* Note: if you have been working with a specific user and would like them to review your work, mak…
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/
DCompression.cpp1 //===--- Compression.cpp - Compression implementation ---------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
24 #include <zstd.h>
35 return "LLVM was not built with LLVM_ENABLE_ZLIB or did not find zlib at " in getReasonIfUnsupported()
37 case compression::Format::Zstd: in getReasonIfUnsupported()
38 if (zstd::isAvailable()) in getReasonIfUnsupported()
40 return "LLVM was not built with LLVM_ENABLE_ZSTD or did not find zstd at " in getReasonIfUnsupported()
[all …]
/external/zstd/doc/
Ddecompressor_errata.md4 This document captures known decompressor bugs, where the decompressor rejects a valid zstd frame.
12 The document is in reverse chronological order, with the bugs that affect the most recent zstd deco…
15 No sequence using the 2-bytes format
16 ------------------------------------------------
24 **Example Frame**: see zstd/tests/golden-decompression/zeroSeq_2B.zst
26 The zstd decoder incorrectly expects FSE tables when there are 0 sequences present in the block
27 if the value 0 is encoded using the 2-bytes format.
31 because representing 0 sequences with the 2-bytes format is inefficient
32 (the 1-byte format is always used in this case).
35 Compressed block with a size of exactly 128 KB
[all …]
/external/zstd/tests/cli-tests/compression/
Dlevels.sh3 set -e
4 set -v
11 version_info=$(zstd -V)
12 set -v
14 # Compress with various levels and ensure that their sizes are ordered
15 zstd --fast=10 file -o file-f10.zst -q
16 zstd --fast=1 file -o file-f1.zst -q
17 zstd -1 file -o file-1.zst -q
18 zstd -19 file -o file-19.zst -q
19 if echo "$version_info" | grep -q '32-bit'; then
[all …]
Dlevels.sh.stderr.exact8 # Compress with various levels and ensure that their sizes are ordered
9 zstd --fast=10 file -o file-f10.zst -q
10 zstd --fast=1 file -o file-f1.zst -q
11 zstd -1 file -o file-1.zst -q
12 zstd -19 file -o file-19.zst -q
13 if echo "$version_info" | grep -q '32-bit'; then
14 # skip --max test: not enough address space
15 cp file-19.zst file-max.zst
17 zstd --max file -o file-max.zst -q
20 zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-max.zst
[all …]
/external/zstd/build/meson/tests/
DvalgrindTest.py3 # Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
6 # This source code is licensed under both the BSD-style license (found in the
15 def valgrindTest(valgrind, datagen, fuzzer, zstd, fullbench): argument
16 VALGRIND_ARGS = [valgrind, '--leak-check=full', '--show-leak-kinds=all', '--error-exitcode=1']
18 print('\n ---- valgrind tests : memory analyzer ----')
20 subprocess.check_call([*VALGRIND_ARGS, datagen, '-g50M'], stdout=subprocess.DEVNULL)
22 if subprocess.call([*VALGRIND_ARGS, zstd],
24 raise subprocess.SubprocessError('zstd without argument should have failed')
26 with subprocess.Popen([datagen, '-g80'], stdout=subprocess.PIPE) as p1, \
27 subprocess.Popen([*VALGRIND_ARGS, zstd, '-', '-c'],
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/zstandard/
DZstdCompressorOutputStream.java3 * contributor license agreements. See the NOTICE file distributed with
6 * (the "License"); you may not use this file except in compliance with
9 * http://www.apache.org/licenses/LICENSE-2.0
24 import com.github.luben.zstd.ZstdOutputStream;
29 * Library relies on <a href="https://github.com/luben/zstd-jni/">Zstandard JNI</a>
38 * Wraps the given stream into a zstd-jni ZstdOutputStream.
40 * @param level value for zstd-jni's level argument
41 * @param closeFrameOnFlush value for zstd-jni's closeFrameOnFlush argument
42 * @param useChecksum value for zstd-jni's useChecksum argument
43 * @throws IOException if zstd-jni does
[all …]
/external/zstd/lib/
DREADME.md4 The __lib__ directory is split into several sub-directories,
10 …ventions](https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html#Makefile-Conventi…
12 - `make` : generates both static and dynamic libraries
13 - `make install` : install libraries and headers in target system directories
22 When building with `make`, by default the dynamic library is multithreaded and static library is si…
25 - set build macro `ZSTD_MULTITHREAD` (`-DZSTD_MULTITHREAD` for `gcc`)
26 - for POSIX systems : compile with pthread (`-pthread` compilation flag for `gcc`)
29 - Force enable multithreading on both dynamic and static libraries by appending `-mt` to the target…
30 …Note that the `.pc` generated on calling `make lib-mt` will already include the require Libs and C…
31 - Force disable multithreading on both dynamic and static libraries by appending `-nomt` to the tar…
[all …]
/external/zstd/tests/cli-tests/
DREADME.md3 The CLI tests are focused on testing the zstd CLI.
10 …er `run.py` will run tests against the in-tree build of `zstd` and `datagen` by default. Which mea…
12 The `zstd` binary used can be passed with `--zstd /path/to/zstd`.
13 Additionally, to run `zstd` through a tool like `valgrind` or `qemu`, set the `--exec-prefix 'valgr…
15 Similarly, the `--datagen`, and `--zstdgrep` flags can be set to specify
19 …mally these directories are removed after the test executes. However, the `--preserve` flag will p…
29 ./run.py --preserve
30 ./run.py --zstd ../../build/programs/zstd --datagen ../../build/tests/datagen
36 This can be useful for writing or debugging a test, especially with `--preserve`.
44 ./run.py --preserve basic/help.sh basic/version.sh
[all …]
/external/zstd/contrib/linux-kernel/
Dlinux_zstd.h1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
6 * This source code is licensed under both the BSD-style license (found in the
7 * LICENSE file in the root directory of https://github.com/facebook/zstd) and
9 * https://github.com/facebook/zstd). You may select, at your option, one of the
10 * above-listed licenses.
17 * This is a kernel-style API that wraps the upstream zstd API, which cannot be
19 * functionality which is currently required by users of zstd in the kernel.
20 * Expose extra functions from lib/zstd/zstd.h as needed.
30 * zstd_compress_bound() - maximum compressed size in worst case scenario
38 * zstd_is_error() - tells if a size_t function result is an error code
[all …]

12345678910>>...18