diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bitio/bitreader.nim (renamed from src/bitreader.nim) | 2 | ||||
-rw-r--r-- | src/bitio/bitwriter.nim (renamed from src/bitwriter.nim) | 2 | ||||
-rw-r--r-- | src/huffmandecoder.nim | 2 | ||||
-rw-r--r-- | src/huffmanencoder.nim | 2 | ||||
-rw-r--r-- | src/huffmantree.nim | 2 | ||||
-rw-r--r-- | src/lzssblock.nim | 2 | ||||
-rw-r--r-- | src/main.nim | 2 | ||||
-rw-r--r-- | src/rawblock.nim | 2 | ||||
-rw-r--r-- | src/streamblock.nim | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/src/bitreader.nim b/src/bitio/bitreader.nim index baa8bf8..e4ad225 100644 --- a/src/bitreader.nim +++ b/src/bitio/bitreader.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 | ||
17 | import streams | 17 | import streams |
18 | import integers | 18 | import ../integers |
19 | 19 | ||
20 | type BitReader* = ref object | 20 | type BitReader* = ref object |
21 | stream: Stream | 21 | stream: Stream |
diff --git a/src/bitwriter.nim b/src/bitio/bitwriter.nim index 4fe499a..f1b44ca 100644 --- a/src/bitwriter.nim +++ b/src/bitio/bitwriter.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 | ||
17 | import streams | 17 | import streams |
18 | import integers | 18 | import ../integers |
19 | 19 | ||
20 | type BitWriter* = ref object | 20 | type BitWriter* = ref object |
21 | stream: Stream | 21 | stream: Stream |
diff --git a/src/huffmandecoder.nim b/src/huffmandecoder.nim index 4df712a..5cf4ca5 100644 --- a/src/huffmandecoder.nim +++ b/src/huffmandecoder.nim | |||
@@ -14,7 +14,7 @@ | |||
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 | ||
17 | import huffmantree, bitreader | 17 | import huffmantree, bitio/bitreader |
18 | 18 | ||
19 | type HuffmanDecoder*[T: SomeUnsignedInt] = object | 19 | type HuffmanDecoder*[T: SomeUnsignedInt] = object |
20 | tree: HuffmanTreeNode[T] | 20 | tree: HuffmanTreeNode[T] |
diff --git a/src/huffmanencoder.nim b/src/huffmanencoder.nim index 60c3d46..05ed64f 100644 --- a/src/huffmanencoder.nim +++ b/src/huffmanencoder.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 | ||
17 | import tables | 17 | import tables |
18 | import integers, huffmantree, bitwriter | 18 | import integers, huffmantree, bitio/bitwriter |
19 | 19 | ||
20 | type HuffmanEncoder*[T, U: SomeUnsignedInt] = object | 20 | type HuffmanEncoder*[T, U: SomeUnsignedInt] = object |
21 | codebook: TableRef[T, U] | 21 | codebook: TableRef[T, U] |
diff --git a/src/huffmantree.nim b/src/huffmantree.nim index 0266dfb..6208ecf 100644 --- a/src/huffmantree.nim +++ b/src/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 | ||
17 | import tables, heapqueue | 17 | import tables, heapqueue |
18 | import integers, bitreader, bitwriter | 18 | import integers, bitio/bitreader, bitio/bitwriter |
19 | 19 | ||
20 | const valueLengthFieldBitLength* = 6 # 64 | 20 | const valueLengthFieldBitLength* = 6 # 64 |
21 | 21 | ||
diff --git a/src/lzssblock.nim b/src/lzssblock.nim index be8c4f0..317e768 100644 --- a/src/lzssblock.nim +++ b/src/lzssblock.nim | |||
@@ -14,7 +14,7 @@ | |||
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 | ||
17 | import bitreader, bitwriter | 17 | import bitio/bitreader, bitio/bitwriter |
18 | 18 | ||
19 | type LzssBlock* = object | 19 | type LzssBlock* = object |
20 | discard | 20 | discard |
diff --git a/src/main.nim b/src/main.nim index 4fc137f..450f52d 100644 --- a/src/main.nim +++ b/src/main.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 | ||
17 | import os, streams, sugar | 17 | import os, streams, sugar |
18 | import bitreader, bitwriter, streamblock | 18 | import bitio/bitreader, bitio/bitwriter, streamblock |
19 | 19 | ||
20 | proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) = | 20 | proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) = |
21 | let inputStream = openFileStream(input, fmRead) | 21 | let inputStream = openFileStream(input, fmRead) |
diff --git a/src/rawblock.nim b/src/rawblock.nim index 4a83b1d..b9a1e63 100644 --- a/src/rawblock.nim +++ b/src/rawblock.nim | |||
@@ -14,7 +14,7 @@ | |||
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 | ||
17 | import integers, bitreader, bitwriter | 17 | import integers, bitio/bitreader, bitio/bitwriter |
18 | 18 | ||
19 | const maxDataBitLength = high(uint16).int | 19 | const maxDataBitLength = high(uint16).int |
20 | const bitLengthFieldBitLength = 2 * wordBitLength | 20 | const bitLengthFieldBitLength = 2 * wordBitLength |
diff --git a/src/streamblock.nim b/src/streamblock.nim index 403687e..ff649b1 100644 --- a/src/streamblock.nim +++ b/src/streamblock.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 | ||
17 | import sequtils | 17 | import sequtils |
18 | import integers, bitreader, bitwriter | 18 | import integers, bitio/bitreader, bitio/bitwriter |
19 | import rawblock, lzssblock | 19 | import rawblock, lzssblock |
20 | 20 | ||
21 | type BlockKind* = enum | 21 | type BlockKind* = enum |