"Fossies" - the Fresh Open Source Software Archive

Member "pigz-2.8/zopfli/src/zopfli/symbols.h" (28 Dec 2017, 1794 Bytes) of package /linux/privat/pigz-2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "symbols.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 Copyright 2016 Google Inc. All Rights Reserved.
    3 
    4 Licensed under the Apache License, Version 2.0 (the "License");
    5 you may not use this file except in compliance with the License.
    6 You may obtain a copy of the License at
    7 
    8     http://www.apache.org/licenses/LICENSE-2.0
    9 
   10 Unless required by applicable law or agreed to in writing, software
   11 distributed under the License is distributed on an "AS IS" BASIS,
   12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13 See the License for the specific language governing permissions and
   14 limitations under the License.
   15 
   16 Author: lode.vandevenne@gmail.com (Lode Vandevenne)
   17 Author: jyrki.alakuijala@gmail.com (Jyrki Alakuijala)
   18 */
   19 
   20 /*
   21 Utilities for using the lz77 symbols of the deflate spec.
   22 */
   23 
   24 #ifndef ZOPFLI_SYMBOLS_H_
   25 #define ZOPFLI_SYMBOLS_H_
   26 
   27 /* Gets the amount of extra bits for the given dist, cfr. the DEFLATE spec. */
   28 int ZopfliGetDistExtraBits(int dist);
   29 
   30 /* Gets value of the extra bits for the given dist, cfr. the DEFLATE spec. */
   31 int ZopfliGetDistExtraBitsValue(int dist);
   32 
   33 /* Gets the symbol for the given dist, cfr. the DEFLATE spec. */
   34 int ZopfliGetDistSymbol(int dist);
   35 
   36 /* Gets the amount of extra bits for the given length, cfr. the DEFLATE spec. */
   37 int ZopfliGetLengthExtraBits(int l);
   38 
   39 /* Gets value of the extra bits for the given length, cfr. the DEFLATE spec. */
   40 int ZopfliGetLengthExtraBitsValue(int l);
   41 
   42 /*
   43 Gets the symbol for the given length, cfr. the DEFLATE spec.
   44 Returns the symbol in the range [257-285] (inclusive)
   45 */
   46 int ZopfliGetLengthSymbol(int l);
   47 
   48 /* Gets the amount of extra bits for the given length symbol. */
   49 int ZopfliGetLengthSymbolExtraBits(int s);
   50 
   51 /* Gets the amount of extra bits for the given distance symbol. */
   52 int ZopfliGetDistSymbolExtraBits(int s);
   53 
   54 #endif  /* ZOPFLI_SYMBOLS_H_ */