Home
last modified time | relevance | path

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

123456

/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 …]
Dzstd_compress_module.c1 // 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
9 * You may select, at your option, one of the above-listed licenses.
15 #include <linux/zstd.h>
35 cctx, ZSTD_c_windowLog, parameters->cParams.windowLog)); in zstd_cctx_init()
37 cctx, ZSTD_c_hashLog, parameters->cParams.hashLog)); in zstd_cctx_init()
39 cctx, ZSTD_c_chainLog, parameters->cParams.chainLog)); in zstd_cctx_init()
41 cctx, ZSTD_c_searchLog, parameters->cParams.searchLog)); in zstd_cctx_init()
43 cctx, ZSTD_c_minMatch, parameters->cParams.minMatch)); in zstd_cctx_init()
45 cctx, ZSTD_c_targetLength, parameters->cParams.targetLength)); in zstd_cctx_init()
[all …]
Dzstd_decompress_module.c1 // 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
9 * You may select, at your option, one of the above-listed licenses.
15 #include <linux/zstd.h>
56 const void *src, size_t src_size) in zstd_decompress_dctx() argument
58 return ZSTD_decompressDCtx(dctx, dst, dst_capacity, src, src_size); in zstd_decompress_dctx()
91 size_t zstd_find_frame_compressed_size(const void *src, size_t src_size) in zstd_find_frame_compressed_size() argument
93 return ZSTD_findFrameCompressedSize(src, src_size); in zstd_find_frame_compressed_size()
97 size_t zstd_get_frame_header(zstd_frame_header *header, const void *src, in zstd_get_frame_header() argument
100 return ZSTD_getFrameHeader(header, src, src_size); in zstd_get_frame_header()
[all …]
/external/zstd/
Dappveyor.yml4 -
8 - release
9 - master
10 - /appveyor*/
11 - /visual*/
14 - COMPILER: "gcc"
17 SCRIPT: "make allzstd MOREFLAGS=-static"
20 - COMPILER: "gcc"
23 SCRIPT: "make allzstd MOREFLAGS=-static"
27 - COMPILER: "clang-cl"
[all …]
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 a list of known ports and bindings is provided on [Zstandard homepage](http://www.zstd.net/#other-l…
21 [travisDevBadge]: https://api.travis-ci.com/facebook/zstd.svg?branch=dev "Continuous Integration te…
22 [travisLink]: https://travis-ci.com/facebook/zstd
24 [AppveyorLink]: https://ci.appveyor.com/project/YannCollet/zstd-p0yf0
25 [CircleDevBadge]: https://circleci.com/gh/facebook/zstd/tree/dev.svg?style=shield "Short test suite"
26 [CircleLink]: https://circleci.com/gh/facebook/zstd
[all …]
/external/squashfs-tools/squashfs-tools/
Dzstd_wrapper.c17 * Support for ZSTD compression http://zstd.net
23 #include <zstd.h>
34 * to parse any -X compressor option.
38 * -1 if the option was unrecognised, or
39 * -2 if the option was recognised, but otherwise bad in
49 if (strcmp(argv[0], "-Xcompression-level") == 0) { in zstd_options()
51 fprintf(stderr, "zstd: -Xcompression-level missing " in zstd_options()
53 fprintf(stderr, "zstd: -Xcompression-level it should " in zstd_options()
61 fprintf(stderr, "zstd: -Xcompression-level invalid, it " in zstd_options()
69 return -1; in zstd_options()
[all …]
/external/zstd/contrib/docker/
DDockerfile5 RUN apk --no-cache add make gcc libc-dev
6 COPY . /src
7 RUN mkdir /pkg && cd /src && make && make DESTDIR=/pkg install
13 COPY --from=builder /pkg /
16 RUN mkdir -p /usr/local/share/licenses/zstd
17 COPY --from=builder /src/LICENSE /usr/local/share/licences/zstd/
19 # Just run `zstd` if no other command is given
20 CMD ["/usr/local/bin/zstd"]
/external/elfutils/tests/
Drun-debuginfod-archive-groom.sh3 # Copyright (C) 2019-2021 Red Hat, Inc.
19 . $srcdir/debuginfod-subr.sh
22 set -x
24 # This variable is essential and ensures no time-race for claiming ports occurs
25 # set base to a unique multiple of 100 not used in any other 'run-debuginfod-*' test
35 -F -R -d $DB -p $PORT1 -t0 -g0 -v R ${PWD}/F > vlog$PORT1 2>&1 &
44 ps -q $PID1 -e -L -o '%p %c %a' | grep groom
45 ps -q $PID1 -e -L -o '%p %c %a' | grep scan
46 ps -q $PID1 -e -L -o '%p %c %a' | grep traverse
55 # Build a non-stripped binary
[all …]
Drun-debuginfod-archive-test.sh3 # Copyright (C) 2019-2021 Red Hat, Inc.
19 . $srcdir/debuginfod-subr.sh
22 set -x
27 # This variable is essential and ensures no time-race for claiming ports occurs
28 # set base to a unique multiple of 100 not used in any other 'run-debuginfod-*' test
35 …ATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -R -p $PORT1 -d $DB -t0 -g0 -v R > v…
48 ps -q $PID1 -e -L -o '%p %c %a' | grep groom
49 ps -q $PID1 -e -L -o '%p %c %a' | grep scan
50 ps -q $PID1 -e -L -o '%p %c %a' | grep traverse
52 cp -rvp ${abs_srcdir}/debuginfod-rpms R
[all …]
Ddebuginfod-subr.sh17 # sourced from run-debuginfod-*.sh tests (must be bash scripts)
20 set -o functrace
21 set -o errtrace
23 . $srcdir/test-subr.sh # includes set -e
29 bsdtar --version | grep -q zstd && zstd=true || zstd=false
30 echo "zstd=$zstd bsdtar=`bsdtar --version`"
35 trap - 0
37 if [ $PID1 -ne 0 ]; then kill $PID1 || : ; wait $PID1 || :; fi
38 if [ $PID2 -ne 0 ]; then kill $PID2 || : ; wait $PID2 || :; fi
39 rm -rf F R D L Z ${PWD}/foobar ${PWD}/mocktree ${PWD}/.client_cache* ${PWD}/tmp*
[all …]
Drun-readelf-compressed-zstd.sh18 . $srcdir/test-subr.sh
20 if ! grep -q -F '#define USE_ZSTD' ${abs_top_builddir}/config.h; then
21 echo "elfutils built without zstd support"
25 # See run-strip-reloc.sh
30 testrun ${abs_top_builddir}/src/readelf -a hello_i386.ko > readelf.out.1
31 zstd hello_i386.ko
32 testrun ${abs_top_builddir}/src/readelf -a hello_i386.ko.zst > readelf.out.2
34 diff -u readelf.out.1 readelf.out.2
/external/zstd/programs/
Dzstd.12 .TH "ZSTD" "1" "January 2022" "zstd 1.5.2" "User Commands"
5 \fBzstd\fR \- zstd, zstdmt, unzstd, zstdcat \- Compress or decompress \.zst files
8 \fBzstd\fR [\fIOPTIONS\fR] [\-|\fIINPUT\-FILE\fR] [\-o \fIOUTPUT\-FILE\fR]
11 \fBzstdmt\fR is equivalent to \fBzstd \-T0\fR
14 \fBunzstd\fR is equivalent to \fBzstd \-d\fR
17 \fBzstdcat\fR is equivalent to \fBzstd \-dcf\fR
20zstd\fR is a fast lossless compression algorithm and data compression tool, with command line synt…
23 \fBzstd\fR command line syntax is generally similar to gzip, but features the following differences…
26 …served by default\. It\'s possible to remove them automatically by using the \fB\-\-rm\fR command\.
29 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,
21 `zstd` offers highly configurable compression speed,
26 `zstd` command line syntax is generally similar to gzip,
[all …]
/external/zstd/build/single_file_libs/examples/
Droundtrip.c3 * In this example we include \c zstd.h and compile separately the amalgamated
4 * \c zstd.c:
6 * cc -Wall -Wextra -Werror -I. -Os -g0 zstd.c examples/roundtrip.c
18 #include "zstd.h"
28 #include "testcard-dxt1.inl"
42 size_t ZSTD_compress(void* dst, size_t dstLen, const void* src, size_t srcLen, int level) { in ZSTD_compress() argument
43 return (memcmp(dst, src, (srcLen < dstLen) ? srcLen : dstLen)) ? level : dstLen; in ZSTD_compress()
48 size_t ZSTD_decompress(void* dst, size_t dstLen, const void* src, size_t srcLen) { in ZSTD_decompress() argument
49 return (memcmp(dst, src, (srcLen < dstLen) ? srcLen : dstLen)) ? 0 : dstLen; in ZSTD_decompress()
56 * Simple single-file test to compress \c rawData, decompress the result, then
[all …]
Dsimple.c3 * Simple standalone example of using the single-file \c zstddeclib.
7 * include \c zstd.h and compile both this file and \c zstddeclib.c (the
29 #include "testcard-dxt1.inl"
33 * Zstd compressed version of \c #rawDxt1.
38 #include "testcard-zstd.inl"
51 size_t ZSTD_decompress(void* dst, size_t dstLen, const void* src, size_t srcLen) { in ZSTD_decompress() argument
52 return (memcmp(dst, src, (srcLen < dstLen) ? srcLen : dstLen)) ? 0 : dstLen; in ZSTD_decompress()
59 * Simple single-file test to decompress \c #srcZstd into \c # dstDxt1 then
62 * As a (naive) comparison, removing Zstd and building with "-Os -g0 simple.c"
63 * results in a 44kB binary (macOS 10.14, Clang 10); re-adding Zstd increases
Demscripten.c3 * Emscripten example of using the single-file \c zstddeclib. Draws a rotating
4 * textured quad with data from the in-line Zstd compressed DXT1 texture (DXT1
5 * being hardware compression, further compressed with Zstd).
9 * export CC_FLAGS="-Wall -Wextra -Werror -Os -g0 -flto --llvm-lto 3 -lGL -DNDEBUG=1"
10 * export EM_FLAGS="-s WASM=1 -s ENVIRONMENT=web --shell-file shell.html --closure 1"
11 * emcc $CC_FLAGS $EM_FLAGS -o out.html emscripten.c
33 * Zstd compressed DXT1 256x256 texture source.
38 #include "testcard-zstd.inl"
56 size_t ZSTD_decompress(void* dst, size_t dstLen, const void* src, size_t srcLen) { in ZSTD_decompress() argument
57 return (memcmp(dst, src, (srcLen < dstLen) ? srcLen : dstLen)) ? dstLen : 0; in ZSTD_decompress()
[all …]
/external/zstd/lib/
Dzstd.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.
44 zstd, short for Zstandard, is a fast lossless compression algorithm, targeting
45 real-time compression scenarios at zlib-level and better compression ratios.
46 The zstd compression library provides in-memory compression and decompression
50 which is currently 22. Levels >= 20, labeled `--ultra`, should be used with
56 - a single step (described as Simple API)
57 - a single step, reusing a context (described as Explicit context)
58 - unbounded multiple steps (described as Streaming compression)
62 - a single step (described as Simple dictionary API)
[all …]
/external/zstd/tests/fuzz/
Dfuzz.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.
22 * This is a parameter for the zstd library. Defining `DEBUGLEVEL=1`
23 * enables assert() statements in the zstd library. Higher levels enable
27 * This flag controls how the zstd library accesses unaligned memory.
33 * Changes to zstd for fuzzing are gated behind this define.
34 * It is recommended to define this when building zstd for fuzzing.
47 int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size);
Dblock_round_trip.c5 * 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.
12 * This fuzz target performs a zstd round-trip test (compress & decompress),
23 #include "zstd.h"
35 const void *src, size_t srcSize, in roundTripTest() argument
42 ret = ZSTD_compressBlock(cctx, compressed, compressedCapacity, src, srcSize); in roundTripTest()
47 memcpy(result, src, srcSize); in roundTripTest()
55 int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size) in LLVMFuzzerTestOneInput() argument
57 /* Give a random portion of src data to the producer, to use for in LLVMFuzzerTestOneInput()
59 FUZZ_dataProducer_t *producer = FUZZ_dataProducer_create(src, size); in LLVMFuzzerTestOneInput()
[all …]
/external/zstd/contrib/pzstd/
DBUCK21 '//lib:zstd',
33 '//lib:zstd',
52 'googletest/googletest/src/gtest-all.cc',
53 'googletest/googlemock/src/gmock-all.cc',
54 'googletest/googlemock/src/gmock_main.cc',
62 ('googletest/googletest', 'src/*.cc'),
63 ('googletest/googletest', 'src/*.h'),
64 ('googletest/googlemock', 'src/*.cc'),
65 ('googletest/googlemock', 'src/*.h'),
69 ('', ['-lpthread']),
/external/zstd/doc/
Dzstd_manual.html3 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4 <title>zstd 1.5.2 Manual</title>
7 <h1>zstd 1.5.2 Manual</h1>
18 <li><a href="#Chapter8">Streaming compression - HowTo</a></li>
19 <li><a href="#Chapter9">Streaming decompression - HowTo</a></li>
30 <li><a href="#Chapter20">Buffer-less and synchronous inner streaming functions</a></li>
31 <li><a href="#Chapter21">Buffer-less streaming compression (synchronous mode)</a></li>
32 <li><a href="#Chapter22">Buffer-less streaming decompression (synchronous mode)</a></li>
37 zstd, short for Zstandard, is a fast lossless compression algorithm, targeting
38 real-time compression scenarios at zlib-level and better compression ratios.
[all …]
/external/kmod/libkmod/
Dlibkmod-file.c2 * libkmod - interface to kernel module operations
4 * Copyright (C) 2011-2013 ProFUSION embedded systems
30 #include <zstd.h>
42 #include "libkmod-internal.h"
77 free((void *)input->src); in zstd_read_block()
78 input->src = malloc(block_size); in zstd_read_block()
79 if (input->src == NULL) { in zstd_read_block()
80 ret = -errno; in zstd_read_block()
81 ERR(file->ctx, "zstd: %m\n"); in zstd_read_block()
87 rdret = read(file->fd, (void *)input->src, block_size); in zstd_read_block()
[all …]
/external/oss-fuzz/projects/proxygen/
DDockerfile7 # http://www.apache.org/licenses/LICENSE-2.0
17 FROM gcr.io/oss-fuzz-base/base-builder
20 RUN apt-get update && \
21 apt-get install -y \
31 python-dev \
33 ninja-build
39 ./bootstrap.sh --with-toolset=clang && \
41 ./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" -j$(nproc) install && \
43 rm -rf boost_1_70_0
46 RUN sudo apt-get purge libgflags-dev
[all …]
/external/zstd/contrib/seekable_format/examples/
Dparallel_compression.c2 * Copyright (c) 2017-present, Facebook, Inc.
5 * This source code is licensed under both the BSD-style license (found in the
14 #include <zstd.h> // presumes zstd library is installed
26 #include "pool.h" // use zstd thread pool for demo
88 if (off != -1) return off; in ftell_orDie()
95 const void* src; member
110 job->checksum = XXH64(job->src, job->srcSize, 0); in compressFrame()
112 … size_t ret = ZSTD_compress(job->dst, job->dstSize, job->src, job->srcSize, job->compressionLevel); in compressFrame()
118 job->dstSize = ret; in compressFrame()
119 job->done = 1; in compressFrame()
[all …]
/external/zstd/lib/decompress/
Dzstd_decompress_block.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.
15 /*-*******************************************************
19 #include "../zstd.h" /* DCtx, and some public functions */
26 /* note: prototypes already published within `zstd.h` :
43 * decompress block, starting at `src`,
50 … const void* src, size_t srcSize, const int frame, const streaming_operation streaming);
57 * The workspace must be 4-byte aligned and at least ZSTD_BUILD_FSE_TABLE_WKSP_SIZE bytes, which is

123456