tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bit_cost.h (896B)


      1 /* Copyright 2013 Google Inc. All Rights Reserved.
      2 
      3   Distributed under MIT license.
      4   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
      5 */
      6 
      7 /* Functions to estimate the bit cost of Huffman trees. */
      8 
      9 #ifndef BROTLI_ENC_BIT_COST_H_
     10 #define BROTLI_ENC_BIT_COST_H_
     11 
     12 #include "../common/platform.h"
     13 #include "histogram.h"
     14 
     15 #if defined(__cplusplus) || defined(c_plusplus)
     16 extern "C" {
     17 #endif
     18 
     19 BROTLI_INTERNAL double BrotliBitsEntropy(
     20    const uint32_t* population, size_t size);
     21 BROTLI_INTERNAL double BrotliPopulationCostLiteral(
     22    const HistogramLiteral* histogram);
     23 BROTLI_INTERNAL double BrotliPopulationCostCommand(
     24    const HistogramCommand* histogram);
     25 BROTLI_INTERNAL double BrotliPopulationCostDistance(
     26    const HistogramDistance* histogram);
     27 
     28 #if defined(__cplusplus) || defined(c_plusplus)
     29 }  /* extern "C" */
     30 #endif
     31 
     32 #endif  /* BROTLI_ENC_BIT_COST_H_ */