aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/huffman/huffmandecoder.nim (renamed from src/huffmandecoder.nim)3
-rw-r--r--src/huffman/huffmanencoder.nim (renamed from src/huffmanencoder.nim)3
-rw-r--r--src/huffman/huffmantree.nim (renamed from src/huffmantree.nim)2
-rw-r--r--src/huffman/huffmantreebuilder.nim (renamed from src/huffmantreebuilder.nim)2
-rw-r--r--src/lzsschain.nim2
5 files changed, 7 insertions, 5 deletions
diff --git a/src/huffmandecoder.nim b/src/huffman/huffmandecoder.nim
index 5cf4ca5..9a58b55 100644
--- a/src/huffmandecoder.nim
+++ b/src/huffman/huffmandecoder.nim
@@ -14,7 +14,8 @@
14# You should have received a copy of the GNU Affero General Public License 14# You should have received a copy of the GNU Affero General Public License
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import huffmantree, bitio/bitreader 17import ../bitio/bitreader
18import huffmantree
18 19
19type HuffmanDecoder*[T: SomeUnsignedInt] = object 20type HuffmanDecoder*[T: SomeUnsignedInt] = object
20 tree: HuffmanTreeNode[T] 21 tree: HuffmanTreeNode[T]
diff --git a/src/huffmanencoder.nim b/src/huffman/huffmanencoder.nim
index 05ed64f..3ed41ec 100644
--- a/src/huffmanencoder.nim
+++ b/src/huffman/huffmanencoder.nim
@@ -15,7 +15,8 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import tables 17import tables
18import integers, huffmantree, bitio/bitwriter 18import ../integers, ../bitio/bitwriter
19import huffmantree
19 20
20type HuffmanEncoder*[T, U: SomeUnsignedInt] = object 21type HuffmanEncoder*[T, U: SomeUnsignedInt] = object
21 codebook: TableRef[T, U] 22 codebook: TableRef[T, U]
diff --git a/src/huffmantree.nim b/src/huffman/huffmantree.nim
index 6208ecf..1140694 100644
--- a/src/huffmantree.nim
+++ b/src/huffman/huffmantree.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import tables, heapqueue 17import tables, heapqueue
18import integers, bitio/bitreader, bitio/bitwriter 18import ../integers, ../bitio/bitreader, ../bitio/bitwriter
19 19
20const valueLengthFieldBitLength* = 6 # 64 20const valueLengthFieldBitLength* = 6 # 64
21 21
diff --git a/src/huffmantreebuilder.nim b/src/huffman/huffmantreebuilder.nim
index 5b33d34..4169099 100644
--- a/src/huffmantreebuilder.nim
+++ b/src/huffman/huffmantreebuilder.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import tables, heapqueue 17import tables, heapqueue
18import huffmantree, lzssencoder 18import huffmantree
19 19
20type WeighedHuffmanTreeNode[T] = ref object 20type WeighedHuffmanTreeNode[T] = ref object
21 weight: int 21 weight: int
diff --git a/src/lzsschain.nim b/src/lzsschain.nim
index 073aa5e..44200f2 100644
--- a/src/lzsschain.nim
+++ b/src/lzsschain.nim
@@ -15,7 +15,7 @@
15# along with this program. If not, see <https://www.gnu.org/licenses/>. 15# along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17import lists, tables, sugar 17import lists, tables, sugar
18import polyfill, integers, lzssnode, huffmantree 18import polyfill, integers, lzssnode, huffman/huffmantree
19 19
20const maxChainByteLength = 32_000 * wordBitLength 20const maxChainByteLength = 32_000 * wordBitLength
21 21