ReactOS  0.4.15-dev-439-g292f67a
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-present, Yann Collet.
5 
6  BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions are
10  met:
11 
12  * Redistributions of source code must retain the above copyright
13  notice, this list of conditions and the following disclaimer.
14  * Redistributions in binary form must reproduce the above
15  copyright notice, this list of conditions and the following disclaimer
16  in the documentation and/or other materials provided with the
17  distribution.
18 
19  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31  You can contact the author at :
32  - FSE source repository : https://github.com/Cyan4973/FiniteStateEntropy
33  - Public forum : https://groups.google.com/forum/#!forum/lz4c
34 ****************************************************************** */
35 
36 /* --- dependencies --- */
37 #include <stddef.h> /* size_t */
38 
39 
40 /* --- simple histogram functions --- */
41 
50 size_t HIST_count(unsigned* count, unsigned* maxSymbolValuePtr,
51  const void* src, size_t srcSize);
52 
53 unsigned HIST_isError(size_t code);
56 /* --- advanced histogram functions --- */
57 
58 #define HIST_WKSP_SIZE_U32 1024
59 
64 size_t HIST_count_wksp(unsigned* count, unsigned* maxSymbolValuePtr,
65  const void* src, size_t srcSize,
66  unsigned* workSpace);
67 
72 size_t HIST_countFast(unsigned* count, unsigned* maxSymbolValuePtr,
73  const void* src, size_t srcSize);
74 
79 size_t HIST_countFast_wksp(unsigned* count, unsigned* maxSymbolValuePtr,
80  const void* src, size_t srcSize,
81  unsigned* workSpace);
82 
91 unsigned HIST_count_simple(unsigned* count, unsigned* maxSymbolValuePtr,
92  const void* src, size_t srcSize);
GLuint GLuint GLsizei count
Definition: gl.h:1545
size_t HIST_count(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize)
Definition: hist.c:202
size_t HIST_countFast(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize)
Definition: hist.c:174
GLenum src
Definition: glext.h:6340
unsigned HIST_count_simple(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize)
Definition: hist.c:52
unsigned HIST_isError(size_t code)
Definition: hist.c:47
size_t HIST_count_wksp(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize, unsigned *workSpace)
Definition: hist.c:193
size_t HIST_countFast_wksp(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize, unsigned *workSpace)
Definition: hist.c:164