Timofey Solomko
|
096ca22d0a
|
fatalError in HuffmanTree replaced with precondition.
|
2017-05-01 20:21:13 +03:00 |
|
Timofey Solomko
|
d1bde66cea
|
Swiftlinted.
|
2017-04-15 21:13:10 +03:00 |
|
Timofey Solomko
|
55f4fadf31
|
HTNode.branch now uses Set instead of Array.
|
2017-03-05 22:29:19 +03:00 |
|
Timofey Solomko
|
85a4c2e733
|
HuffmanTree now writes to BitToByteWriter during coding.
|
2017-03-05 22:17:30 +03:00 |
|
Timofey Solomko
|
6a603168eb
|
Old tree finally replaced with the new one.
|
2017-02-25 15:34:00 +03:00 |
|
Timofey Solomko
|
22a1db9d6d
|
code(…) now uses new tree.
|
2017-02-25 15:31:49 +03:00 |
|
Timofey Solomko
|
b0904702c5
|
Added populating newTree with branch nodes.
|
2017-02-25 15:30:59 +03:00 |
|
Timofey Solomko
|
aee09c93ec
|
findNextSymbol now uses new tree array.
|
2017-02-25 15:04:52 +03:00 |
|
Timofey Solomko
|
c03f1943fb
|
Added new struct for HuffmanTree nodes and a new array property with these nodes.
|
2017-02-25 15:04:30 +03:00 |
|
Timofey Solomko
|
7a99a7972f
|
Added option to HuffmanTree which enables/disables coding.
|
2017-02-25 14:58:12 +03:00 |
|
Timofey Solomko
|
861b51ba56
|
Moved constants from HuffmanTree to Deflate.
|
2017-02-24 22:49:28 +03:00 |
|
Timofey Solomko
|
9d1139f927
|
HuffmanTree now stores bitsCounts for symbols, redone code() function with the use of it.
|
2017-02-09 16:40:25 +03:00 |
|
Timofey Solomko
|
af0281d19f
|
Completed static huffman encoding.
|
2017-02-04 00:00:15 +03:00 |
|
Timofey Solomko
|
b61d37e373
|
Added code function to huffman tree.
|
2017-02-03 21:54:21 +03:00 |
|
Timofey Solomko
|
d877adf962
|
Updated copyright year.
|
2017-01-05 23:09:53 +03:00 |
|
Timofey Solomko
|
0ed89edf3d
|
Small cleanup.
|
2016-12-25 22:30:52 +03:00 |
|
Timofey Solomko
|
d1574786b2
|
HuffmanTree is no longer CustomStringConvertible.
|
2016-12-25 22:07:41 +03:00 |
|
Timofey Solomko
|
c8a5813730
|
Removed append(contentsOf:) where possible and performed small cleanup.
|
2016-12-24 22:26:55 +03:00 |
|
Timofey Solomko
|
04106bfa8a
|
Some changes to make deflate/bzip2 faster.
|
2016-12-24 18:42:56 +03:00 |
|
Timofey Solomko
|
85d2c0f7a4
|
Replaced pow() with bit shift operations.
|
2016-12-16 21:33:10 +03:00 |
|
Timofey Solomko
|
66a4632dd0
|
findNextSymbol no longer returns optional.
|
2016-12-11 14:00:06 +03:00 |
|
Timofey Solomko
|
4b26aa5c1f
|
Removed optionals from huffmantree.
|
2016-12-11 13:33:46 +03:00 |
|
Timofey Solomko
|
5828570bed
|
Swiftlinted.
|
2016-12-09 01:12:22 +03:00 |
|
Timofey Solomko
|
95c5221f49
|
HuffmanLength is no longer used.
|
2016-12-08 08:25:00 +03:00 |
|
Timofey Solomko
|
4db6e7ec44
|
Removed remains of huffmantable.
|
2016-12-05 19:47:25 +03:00 |
|
Timofey Solomko
|
52cc370607
|
Swiftlinted.
|
2016-12-05 19:46:09 +03:00 |
|
Timofey Solomko
|
c4f54e8198
|
United two cycles through lengths array. Thus, there is no need for symbol property in HuffmanLength. Also added dots to the end of comments.
|
2016-12-04 22:25:19 +03:00 |
|
Timofey Solomko
|
6215d68aa5
|
tree property of HuffmanTree now stores only codes. findNextSymbol now returns Int instead of HuffmanLengths.
|
2016-12-04 19:58:41 +03:00 |
|
Timofey Solomko
|
875a015043
|
HuffmanTable renamed to HuffmanTree. Its properties are now private.
|
2016-12-04 19:49:53 +03:00 |
|