We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2531be3 commit abc6e8dCopy full SHA for abc6e8d
common.py
@@ -49,7 +49,12 @@ def get_sizes(song_or_key):
49
return (raw, comp)
50
51
def get_inf_sizes(song_or_key):
52
- """Compression ratio calculated using infgen"""
+ """Return raw/compressed sizes used when calculating the infgen-based
53
+ compression ratio. Raw size will be the same as above (i.e. just the
54
+ number you'd get from `wc -c` on the text file).
55
+ The compressed size will be an approximation of the size of the LZ-77
56
+ compressed data *before* Huffman coding. Assumes 1 byte per literal, 3
57
+ bytes per match."""
58
if isinstance(song_or_key, basestring):
59
k = song_or_key
60
else:
0 commit comments