Skip to content

Commit 6799ccb

Browse files
authored
Merge pull request #48 from LebedevRI/develop
Source tree reorg
2 parents acc0815 + a8a96b1 commit 6799ccb

File tree

69 files changed

+150
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+150
-153
lines changed

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
resolver = "3"
33
members = [
44
"src",
5+
"src/bitstream/bitstream/decoder",
6+
"src/bitstream/bitstream/encoder",
7+
"src/bitstream/bitstreamcache",
8+
"src/bitstream/bitstreams",
9+
"src/bitstream/bytestream/decoder",
10+
"src/bitstream/bytestream/encoder",
11+
"src/codecs/packed/decoder",
12+
"src/codecs/packed/encoder",
513
"src/common",
614
"src/memory",
715
"src/memory/endianness",
8-
"src/memory/bitstream",
9-
"src/memory/bitvacuumer",
10-
"src/memory/bitstreamcache",
11-
"src/memory/bitstreamer",
12-
"src/memory/variable_length_load",
1316
"src/memory/fixed_length_load",
14-
"src/memory/bytevacuumer",
15-
"src/memory/bytestreamer",
17+
"src/memory/variable_length_load",
1618
"src/misc/md5",
1719
"src/std",
1820
"src/std/ndslice",
19-
"src/codecs/packed/encoder",
20-
"src/codecs/packed/decoder",
2121
]
2222

2323
[workspace.package]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[package]
2+
name = "rawspeed-bitstream-bitstream-decoder"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
rust-version.workspace = true
7+
documentation.workspace = true
8+
homepage.workspace = true
9+
repository.workspace = true
10+
license.workspace = true
11+
12+
[lints]
13+
workspace = true
14+
15+
[dependencies]
16+
rawspeed-bitstream-bitstreamcache = { path = "../../bitstreamcache" }
17+
rawspeed-bitstream-bitstreams = { path = "../../bitstreams" }
18+
rawspeed-common = { path = "../../../common" }
19+
rawspeed-memory-endianness = { path = "../../../memory/endianness" }
20+
rawspeed-memory-fixed_length_load = { path = "../../../memory/fixed_length_load" }
21+
rawspeed-memory-variable_length_load = { path = "../../../memory/variable_length_load" }
22+
23+
[lib]
24+
path = "mod.rs"

src/memory/bitstreamer/bitstreamer/jpeg/mod.rs renamed to src/bitstream/bitstream/decoder/bitstreamer/jpeg/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ use super::CopyFromSlice;
55
use super::FromNeBytes;
66
use super::LoadFromSlice;
77

8+
use rawspeed_bitstream_bitstreamcache::bitstreamcache::BitStreamCache;
9+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrder;
10+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrderJPEG;
11+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrderTrait;
12+
use rawspeed_bitstream_bitstreams::bitstreams::BitStreamTraits;
813
use rawspeed_common::common::Bitwidth;
9-
use rawspeed_memory_bitstream::bitstream::BitOrder;
10-
use rawspeed_memory_bitstream::bitstream::BitOrderJPEG;
11-
use rawspeed_memory_bitstream::bitstream::BitOrderTrait;
12-
use rawspeed_memory_bitstream::bitstream::BitStreamTraits;
13-
use rawspeed_memory_bitstreamcache::bitstreamcache::BitStreamCache;
1414
use rawspeed_memory_endianness::endianness::SwapBytes;
1515
use rawspeed_memory_endianness::endianness::get_host_endianness;
1616
use rawspeed_memory_variable_length_load::variable_length_load::VariableLengthLoad;

src/memory/bitstreamer/bitstreamer/lsb/mod.rs renamed to src/bitstream/bitstream/decoder/bitstreamer/lsb/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use super::BitStreamerBase;
22
use super::BitStreamerTraits;
33
use super::BitStreamerUseDefaultCacheFillImpl;
44

5-
use rawspeed_memory_bitstream::bitstream::BitOrder;
6-
use rawspeed_memory_bitstream::bitstream::BitOrderLSB;
5+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrder;
6+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrderLSB;
77

88
impl BitStreamerTraits for BitOrderLSB {
99
const TAG: BitOrder = BitOrder::LSB;

src/memory/bitstreamer/bitstreamer/mod.rs renamed to src/bitstream/bitstream/decoder/bitstreamer/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use core::marker::PhantomData;
22
use core::ops::RangeFull;
3+
use rawspeed_bitstream_bitstreamcache::bitstreamcache::BitStreamCache;
4+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrder;
5+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrderTrait;
6+
use rawspeed_bitstream_bitstreams::bitstreams::BitStreamTraits;
37
use rawspeed_common::bit_transmutation::FromNeBytes;
48
use rawspeed_common::common::Bitwidth;
5-
use rawspeed_memory_bitstream::bitstream::BitOrder;
6-
use rawspeed_memory_bitstream::bitstream::BitOrderTrait;
7-
use rawspeed_memory_bitstream::bitstream::BitStreamTraits;
8-
use rawspeed_memory_bitstreamcache::bitstreamcache::BitStreamCache;
99
use rawspeed_memory_endianness::endianness::SwapBytes;
1010
use rawspeed_memory_endianness::endianness::get_host_endianness;
1111
use rawspeed_memory_fixed_length_load::fixed_length_load::CopyFromSlice;

src/memory/bitstreamer/bitstreamer/msb/mod.rs renamed to src/bitstream/bitstream/decoder/bitstreamer/msb/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use super::BitStreamerBase;
22
use super::BitStreamerTraits;
33
use super::BitStreamerUseDefaultCacheFillImpl;
44

5-
use rawspeed_memory_bitstream::bitstream::BitOrder;
6-
use rawspeed_memory_bitstream::bitstream::BitOrderMSB;
5+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrder;
6+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrderMSB;
77

88
impl BitStreamerTraits for BitOrderMSB {
99
const TAG: BitOrder = BitOrder::MSB;

src/memory/bitstreamer/bitstreamer/msb16/mod.rs renamed to src/bitstream/bitstream/decoder/bitstreamer/msb16/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use super::BitStreamerBase;
22
use super::BitStreamerTraits;
33
use super::BitStreamerUseDefaultCacheFillImpl;
44

5-
use rawspeed_memory_bitstream::bitstream::BitOrder;
6-
use rawspeed_memory_bitstream::bitstream::BitOrderMSB16;
5+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrder;
6+
use rawspeed_bitstream_bitstreams::bitstreams::BitOrderMSB16;
77

88
impl BitStreamerTraits for BitOrderMSB16 {
99
const TAG: BitOrder = BitOrder::MSB16;

0 commit comments

Comments
 (0)