Mike Welsh
1f85a779ac
Bitmap smoothing is only an option in SWFv8+
2019-08-29 14:01:59 -07:00
Nathan Adams
89fee4c580
Ints are signed in avm1
2019-08-26 18:25:32 -05:00
Mike Welsh
e788381200
Update cargo.toml to point to new repo URL
2019-08-18 16:34:44 -07:00
Mike Welsh
e11a8d416e
Merge branch 'ruffle'
2019-08-18 16:30:58 -07:00
Mike Welsh
937acf018e
Merge pull request #5 from OmarShehata/master
...
Add runnable examples, and fix zlib writing with libflate
2019-08-18 16:24:30 -07:00
Omar Shehata
f4d79b7b35
Fix indentation
2019-08-18 17:46:57 -04:00
Omar Shehata
27a0368897
Add runnable examples for reading & writing
2019-08-18 17:44:32 -04:00
Omar Shehata
418b46ebbc
Make sure Zlib finishes encoding before returning
2019-08-18 17:40:51 -04:00
Mike Welsh
07eb5bb8e8
Implement DebugId tag
2019-08-16 09:56:49 -07:00
Mike Welsh
874759b84a
Implement ProductInfo tag
2019-08-16 09:50:54 -07:00
Mike Welsh
cc2a0c01d7
Use explicit tag length when reading PlaceObject
2019-08-15 17:39:47 -07:00
Mike Welsh
876d4956fe
Fix inclusive range warnings in Rust 1.37
2019-08-15 16:44:54 -07:00
Mike Welsh
1d558d8604
Fix dyn warnings in Rust 1.37
2019-08-15 16:42:53 -07:00
Mike Welsh
50a37ee148
Make read_frame_label public
2019-08-15 16:39:24 -07:00
Mike Welsh
44c9262089
Make various read methods public
...
Made various Reader methods public for use in Ruffle, and use
structs for Tag enum variants to make the API consistent.
2019-07-22 18:29:39 -07:00
Mike Welsh
a908935809
Add inherent TagCode::from_u16
2019-07-22 10:31:37 -07:00
Mike Welsh
ef31433735
Bump version
2019-06-17 03:25:09 -07:00
Mike Welsh
5e4e6099a4
Add Tag::End
...
Tag::End added to the Tag enum, and read_tag and write_tag will
use this variant. The End tag is still implicit when reading
tag lists (still unsure, this may change in the future).
2019-06-17 03:23:29 -07:00
Mike Welsh
afbf8fdea5
Make Reader::new public
2019-06-17 02:53:18 -07:00
Mike Welsh
7c41bedbcb
Bump Cargo.toml to 0.1.1
2019-06-17 02:11:53 -07:00
Mike Welsh
88d88ebab5
Update naming convention for AVM2 SWFs
2019-06-17 02:04:48 -07:00
Mike Welsh
fd2c68e1ef
Update naming convention for test SWFs
2019-06-17 01:58:24 -07:00
Mike Welsh
d20a7c1123
Make read_ubits and read_sbits private
2019-06-17 01:52:13 -07:00
Mike Welsh
d64ec2e133
read_swf decompresses SWF all at once
2019-06-17 01:51:21 -07:00
Mike Welsh
bd46c273ee
Update doc test filenames
2019-06-17 00:56:26 -07:00
Mike Welsh
8697457e05
Merge branch 'master' into ruffle
2019-06-17 00:52:31 -07:00
Mike Welsh
eeca4275d4
clippy: cyclomatic_complexity -> computational_complexity
2019-06-17 00:50:09 -07:00
Mike Welsh
608f090501
Clean up test naming
2019-06-17 00:33:58 -07:00
Mike Welsh
6ab8c4a7d1
Export TagCode
2019-06-16 23:41:27 -07:00
Mike Welsh
dc856dfd55
Update README examples
2019-06-16 23:03:48 -07:00
Mike Welsh
f23b678ea8
clippy: cyclomatic_complexity -> cognitive_complexity
2019-06-16 22:55:29 -07:00
Mike Welsh
9d1f21eaa4
Add some documentation and clean up reader
2019-06-16 21:23:31 -07:00
Mike Welsh
eadc1da798
Keep Twips as integers
...
Add Twips wrapper type around i32. Keep Twips coordinates as i32.
Add conversion methods to convert to/from pixels.
2019-05-17 13:07:42 -07:00
Mike Welsh
d8a8f4da60
Make read_ubits public
2019-05-08 11:54:43 -07:00
Mike Welsh
76393136ca
Fluster work
2019-04-25 20:28:02 -07:00
Mike Welsh
a868c56eb4
Remove mod.rs for Rust 2018 edition
2019-04-24 14:10:55 -07:00
Mike Welsh
4edbdc91ec
Fix reading Protect tag with no password
...
swf::read was not handling when an SWF was protected without a
password. Fixed and added a test case.
2019-04-24 13:34:04 -07:00
Mike Welsh
5bd4bdb5ad
Merge branch 'master' of https://github.com/Herschel/swf-rs
2019-04-24 12:38:50 -07:00
Mike Welsh
76c5c2bbc4
Rustfmt pass
2019-04-23 00:31:12 -07:00
Mike Welsh
64dd94b1db
Fix clippy warnings
2019-04-23 00:24:33 -07:00
Mike Welsh
2461db8076
Update clippy lints
2019-04-22 23:39:01 -07:00
Mike Welsh
cc3327f26e
Remove try! calls for Rust 2018
2019-04-22 23:22:19 -07:00
Mike Welsh
d23a489886
Update import paths for Rust 2018
...
Add crate:: where appropriate to fix paths
2019-04-22 23:09:06 -07:00
Mike Welsh
a84c32d08a
Switch to Rust 2018 edition
2019-04-22 22:49:05 -07:00
Mike Welsh
6a37d348e6
TEST
2018-07-30 10:51:53 -07:00
Mike Welsh
ee534374c9
Switch to libflate by default
...
Switch from flate2 to libflate by default for WebAssembly support.
flate2 can still be enabled using the "flate2" feature.
2018-06-10 12:51:17 -07:00
Mike Welsh
0983c262c5
chore: remove clippy plugin lints
2018-06-10 12:13:15 -07:00
Mike Welsh
c67f7dad42
style: uncompressed_length -> _uncompressed_length
2018-06-10 12:01:08 -07:00
Mike Welsh
5a0e7a8fd3
refactor: make LZMA support an optional feature
2018-06-10 11:59:26 -07:00
Mike Welsh
120f94711a
chore: switch to num-derive crate
2018-06-10 11:37:40 -07:00