ReactOS 0.4.16-dev-237-gd6eebaa
hist.h
Go to the documentation of this file.
1/* ******************************************************************
2 * hist : Histogram functions
3 * part of Finite State Entropy project
4 * Copyright (c) 2013-2020, Yann Collet, Facebook, Inc.
5 *
6 * You can contact the author at :
7 * - FSE source repository : https://github.com/Cyan4973/FiniteStateEntropy
8 * - Public forum : https://groups.google.com/forum/#!forum/lz4c
9 *
10 * This source code is licensed under both the BSD-style license (found in the
11 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
12 * in the COPYING file in the root directory of this source tree).
13 * You may select, at your option, one of the above-listed licenses.
14****************************************************************** */
15
16/* --- dependencies --- */
17#include <stddef.h> /* size_t */
18
19
20/* --- simple histogram functions --- */
21
30size_t HIST_count(unsigned* count, unsigned* maxSymbolValuePtr,
31 const void* src, size_t srcSize);
32
33unsigned HIST_isError(size_t code);
36/* --- advanced histogram functions --- */
37
38#define HIST_WKSP_SIZE_U32 1024
39#define HIST_WKSP_SIZE (HIST_WKSP_SIZE_U32 * sizeof(unsigned))
46size_t HIST_count_wksp(unsigned* count, unsigned* maxSymbolValuePtr,
47 const void* src, size_t srcSize,
48 void* workSpace, size_t workSpaceSize);
49
54size_t HIST_countFast(unsigned* count, unsigned* maxSymbolValuePtr,
55 const void* src, size_t srcSize);
56
62size_t HIST_countFast_wksp(unsigned* count, unsigned* maxSymbolValuePtr,
63 const void* src, size_t srcSize,
64 void* workSpace, size_t workSpaceSize);
65
74unsigned HIST_count_simple(unsigned* count, unsigned* maxSymbolValuePtr,
75 const void* src, size_t srcSize);
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLenum src
Definition: glext.h:6340
size_t HIST_count_wksp(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize, void *workSpace, size_t workSpaceSize)
Definition: hist.c:166
size_t HIST_count(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize)
Definition: hist.c:178
size_t HIST_countFast(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize)
Definition: hist.c:156
unsigned HIST_isError(size_t code)
Definition: hist.c:24
size_t HIST_countFast_wksp(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize, void *workSpace, size_t workSpaceSize)
Definition: hist.c:144
unsigned HIST_count_simple(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize)
Definition: hist.c:29
Definition: inflate.c:139