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
d0413da381
web: Set preserveAspectRatio to none on SVGs
...
Firefox would fudge with the dimensions of the SVG when we tried
to draw a scaled SVG to the canvas. Disabling preserveAspectRatio
prevents that. Fixes part of #24 .
2019-08-18 13:44:44 -07:00
Mike Welsh
fecb981b13
web: Fix color transforms in Firefox
...
Firefox required the color matrix filter to be inside and <svg>
tag. Also, set color-interpolation-filters to sRGB to ensure
color transforms match Flash's output.
2019-08-18 13:18:22 -07:00
David Pendray
cca9c8e6f3
Update README.md
...
Fix links to licences
2019-08-18 08:13:16 -07:00
Mike Welsh
39f1853440
core: Bump swf-rs revision to support ProductInfo
...
swf-rs now reads ProductInfo and DebugId SWF tags. These are not
documented by SWF19.
See: http://wahlers.com.br/claus/blog/undocumented-swf-tags-written-by-mxmlc/
Fixes #20 .
2019-08-16 10:03:16 -07: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
2535ef3635
ci: Roll back Rust image to 1.36
2019-08-15 14:01:04 -07:00
Mike Welsh
483dea2370
ci: Bump Rust to 1.37
2019-08-15 13:54:20 -07:00
Mike Welsh
4666d211a7
core: Add dyn to fix Rust 1.37 warnings
...
Omitting dyn on trait objects now emits a warning, so add missing
dyn where necessary.
2019-08-15 13:54:20 -07:00
Mike Welsh
72307e981f
web: Update demo style
2019-08-15 07:15:37 -07:00
Mike Welsh
b9995a6456
Merge branch 'master' of https://github.com/ruffle-rs/ruffle
2019-08-15 07:06:16 -07:00
Mike Welsh
8fe22d09c3
docs: README.md grammar
2019-08-15 05:58:18 -07:00
Mike Welsh
e8c4aa95c3
docs: Update README.md
...
Add discord links and project status.
2019-08-15 05:57:26 -07:00
Mike Welsh
4c6395bd83
core: Use latest git branch for jpeg-decoder
...
The current version of jpeg-decoder on crates.io (0.1.15) panics
when encountering a valid JPEG marker of length 2. Some SWF files
contained JPEGs with a COM segment of length 2. This is fixed
on the master branch of jpeg-decoder.
2019-08-14 23:19:10 -07:00
Mike Welsh
746b9d8518
core: Support for DefineBitsJPEG3/4
...
TODO: Pull out all JPEG decoding into core, remove jpeg-decoder
dependency from backend crates.
2019-08-12 16:44:49 -07:00
Mike Welsh
a3998b657b
core: Remove invalid JPEG data from DefineBitsJPEG
...
DefineBitsJPEG tags can have some extraneous bytes inside the
stream. Splice these out when decoding the JPEG.
TODO: Docs say this should only happen for SWF versions before 8?
2019-08-12 15:45:40 -07:00
Mike Welsh
23db688e6f
core: Add DefineBitsLossless decoding function
...
Pulled out the code for decoding DefinieBitsLossless tags into
backend::render::define_bits_lossless_to_rgba. Switch to libflate
for zlib decoding.
2019-08-12 15:45:40 -07:00
Mike Welsh
f3a746de21
core: Improve morph shape
...
Morph shapes where move_to was not in a matching pair would crash.
Now the previous pen position is used to generate the matching
move_to.
The ratio was backwards, causing the shape tween to run in
reverse. Morph shapes should now animate in the proper direction.
2019-08-11 23:58:06 -07:00
Mike Welsh
f1cc436544
web: Update demo page w/ black background
2019-08-11 21:02:38 -07:00
Mike Welsh
1177388413
web: Dynamically resize and letterbox movie
2019-08-11 20:50:31 -07:00
Mike Welsh
2bfc8767d0
desktop: Add letterbox to viewport
...
Add getters to Player to allow access to the type Renderer.
Letter/pillarboxes added as window resized.
2019-08-11 18:07:02 -07:00
Mike Welsh
af2287a658
desktop: Add letterbox to viewport
...
Add getters to Player to allow access to the type Renderer.
Letter/pillarboxes added as window resized.
2019-08-10 10:18:32 -07:00
Mike Welsh
24fc403e06
core: Make player generic over backend
2019-08-09 22:34:15 -07:00
Mike Welsh
2accd5bdd4
core: Remove audio struct
2019-08-09 16:03:13 -07:00
Mike Welsh
3edc3c3d3e
web: Disable auto-play, add click-to-play
2019-08-09 14:50:20 -07:00
Mike Welsh
a2b95eb12a
Fix color transforms on web
...
The color matrix filter was not being applied to the vector art.
2019-08-08 15:59:32 -07:00
Mike Welsh
e64e306137
Rework audio to allow for streaming decoding
2019-08-08 15:59:32 -07:00
Mike Welsh
725cdae6c5
Begin AVM1 cleanup
2019-08-08 15:58:45 -07:00
Mike Welsh
24b25e66da
Update lodash
2019-08-08 15:57:10 -07:00
Mike Welsh
ce5faefe1f
Work
2019-08-08 15:57:10 -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
3d81ba5eb6
Update lyon to 0.13.3
2019-07-10 21:04:59 -07:00
Mike Welsh
fd8f58c6c2
Work
2019-07-10 21:04:59 -07:00
Lucas Baizer
1521fb0bc1
Allow gradients with more than 8 colors
2019-06-28 10:14:09 -07:00
Mike Welsh
812e79595c
Add website and demo links to README.md
...
Center header image and links
2019-06-26 18:14:52 -07:00
Mike Welsh
006a072a31
Add CircleCI badge to README
2019-06-25 17:12:02 -07:00
Mike Welsh
14ec5d0d10
Update circleci config
2019-06-25 16:59:09 -07:00
Mike Welsh
1460ece3dc
Use commit id for swf-rs cargo dependency
2019-06-25 16:48:16 -07:00
Mike Welsh
738a7a8278
Add logo to README
2019-06-25 16:30:43 -07:00
Mike Welsh
5610001eae
Remove listbox from demo page (for now)
2019-06-25 16:30:35 -07:00
Mike Welsh
3263255e60
Add color filter SVG as child of canvas element
...
Avoid adding to body, which can affect document layout.
2019-06-25 15:50:22 -07:00