relrelb
f92926af54
avm1: Correct `Math.{min,max}`
...
Don't use `abstract_lt` because it compares strings alphabetically,
unlike `Math.min` and `Math.max` that coerce to a number before comparing.
2021-09-16 02:38:34 -07:00
Chris Midgley
384d04536f
dev: optimize file sizes for pngs and svgs
...
Run pngs through optipng and svgs through svgo.
2021-09-16 02:37:11 -07:00
relrelb
2e8a177bef
web: Indent using spaces in tsconfig.json
2021-09-15 00:42:17 +03:00
Daniel Jacobs
56e8dd1b0e
demo: Add visual indicator to file picker for dragging and dropping
2021-09-15 00:08:16 +03:00
Seedgou
5933107fd7
docs: vectorize logo image
2021-09-14 23:43:45 +03:00
Mike Welsh
a882f85d14
chore: Bump TypeScript config to es2017
2021-09-13 14:54:17 -07:00
dependabot[bot]
76f4b0d8cd
build(deps): bump flate2 from 1.0.21 to 1.0.22
...
Bumps [flate2](https://github.com/rust-lang/flate2-rs ) from 1.0.21 to 1.0.22.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.21...1.0.22 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 14:27:26 -07:00
dependabot[bot]
74a08ce459
build(deps): bump embed-resource from 1.6.3 to 1.6.4
...
Bumps [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource ) from 1.6.3 to 1.6.4.
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases )
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v1.6.3...v1.6.4 )
---
updated-dependencies:
- dependency-name: embed-resource
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 14:27:02 -07:00
Moulins
73bce495c2
chore: move core::avm1::string::AvmString to core::string::AvmString
2021-09-13 03:30:17 -07:00
Moulins
87e8b44fe9
chore: move core::string_utils to core::string::utils
...
Also move case tables to a separate file.
2021-09-13 03:30:17 -07:00
Tal Hayon
72a811ae2c
web: support no trailing slash in base parameter
2021-09-12 16:02:29 -07:00
Toad06
cee85cb057
chore: Improve the issue template
...
Use YAML syntax.
2021-09-12 12:50:57 -07:00
Mike Welsh
d84f65874e
chore: Appease clippy
...
Debug/Clone dervies no longer squelch dead code warnings, see:
See https://github.com/rust-lang/rust/pull/85200
2021-09-11 21:50:52 -07:00
Mike Welsh
e3c05a021e
core: De-duplicate enums between Avm1Button and Avm2Button
...
Needed to appease clippy.
2021-09-11 21:50:52 -07:00
Chris Midgley
2abea5aeba
web: don't panic if failing to create an audio buffer
2021-09-11 15:48:30 -07:00
Ray Redondo
167b5a45de
avm2: move flash.display.IBitmapDrawable init
2021-09-11 15:47:20 -07:00
Ray Redondo
40d53cda59
avm2: make BitmapData and DisplayObject impl IBitmapDrawable
2021-09-11 15:47:20 -07:00
Ray Redondo
7f895473cb
avm2: IBitmapDrawable stub
2021-09-11 15:47:20 -07:00
Daniel Jacobs
2213e7d012
web: Menu embed/object attribute true value is case-insensitive
2021-09-11 14:25:52 -07:00
David Wendt
1e0d259075
avm2: Allow nulling `Bitmap.bitmapData`.
...
One of the two tests in this PR relies upon the backend storing bitmap data, but the test rendering backend does not yet do this.
2021-09-11 12:11:35 -07:00
David Wendt
bfb6f03d62
avm2: Impl `Bitmap.smoothing`
...
Also, `smoothing` should be set at construction time even if we're setting up a timeline bitmap.
2021-09-11 12:11:35 -07:00
David Wendt
2ba0e12b7e
avm2: Stub `Bitmap.pixelSmoothing`
2021-09-11 12:11:35 -07:00
David Wendt
8ae669b96c
avm2: `BitmapData` should be traceable
2021-09-11 12:11:35 -07:00
David Wendt
31e3741982
avm2: Allow access to the `BitmapData` of a `Bitmap`.
2021-09-11 12:11:35 -07:00
David Wendt
7c5dc568f1
avm2: Impl `BitmapData.getPixel`.
...
This also changes the `bitmapdata_constr` test slightly to use a different starting value. Our premultiplied alpha calculations generate slightly different values from Flash Player which trips the test.
2021-09-11 12:11:35 -07:00
David Wendt
4c9bd0a6fe
avm2: Impl `BitmapData.transparent`
2021-09-11 12:11:35 -07:00
David Wendt
e18caa2fbf
core: Silence error relating to `Bitmap` symbol class associations
2021-09-11 12:11:35 -07:00
David Wendt
dca473fc2a
avm2: Impl `BitmapData.width` and `BitmapData.height`
2021-09-11 12:11:35 -07:00
David Wendt
723b8b6756
tests: Add tests for `BitmapData`'s constructor, in both fresh and embedded bitmap contexts.
2021-09-11 12:11:35 -07:00
David Wendt
335aec5be0
avm2: Implement `BitmapData`'s constructor.
...
This includes support for both embedded bitmap data (resolved via the SymbolClass mechanism) as well as empty bitmaps configured via arguments.
2021-09-11 12:11:35 -07:00
David Wendt
e5151d147d
core: When constructing a `Bitmap`, do not attempt to cache it's associated `BitmapData`'s handle.
...
Attempting to do so results in borrow-mut panics. Furthermore, it's unnecessary; the handle provided to this function is already derived from the bitmap data in this way.
2021-09-11 12:11:35 -07:00
David Wendt
54740d6093
core: Allow `BitmapData` to hold an AVM2 side.
2021-09-11 12:11:35 -07:00
David Wendt
10b98f72f5
core: Allow `Bitmap` to be reassociated with new `BitmapData`
2021-09-11 12:11:35 -07:00
David Wendt
a807cf7623
avm2: Stub `flash.display.BitmapData` & storage object
2021-09-11 12:11:35 -07:00
David Wendt
fbccd75e23
tests: Add bitmap timeline test
2021-09-11 12:11:35 -07:00
David Wendt
609b97cfb9
core: Allow `Bitmap`s to hold an AVM2 representation
2021-09-11 12:11:35 -07:00
David Wendt
3c229e462a
scanner: For some reason, analysis reports get cut off if I don't add another newline
2021-09-11 09:52:40 -07:00
David Wendt
a180aba613
scanner: Don't reset progress when the iterator has yet to complete
2021-09-11 09:52:40 -07:00
David Wendt
400938180b
scanner: Remove duplicate CSV header
2021-09-11 09:52:40 -07:00
David Wendt
f7a4593ab4
scanner: Add post-scan progress analysis
2021-09-11 09:52:40 -07:00
David Wendt
d08d2ec783
Actually copy all the file results field from the child into the parent
2021-09-11 09:52:40 -07:00
David Wendt
9bb5229e14
scanner: Report compressed and uncompressed file size of each SWF
2021-09-11 09:52:40 -07:00
David Wendt
37f084e3e0
scanner: Include other SWF header information in the scanner output.
2021-09-11 09:52:40 -07:00
David Wendt
c55bc96993
scanner: Clean up and document the `FileResults` type a bit
2021-09-11 09:52:40 -07:00
David Wendt
5e3eaba5f8
scanner: Include SHA256 hash in scan results
2021-09-11 09:52:40 -07:00
David Wendt
d084cb116f
scanner: Remove 16MB stacks, as they are no longer needed now that we are using multiple processes
2021-09-11 09:52:40 -07:00
David Wendt
3294ef17e4
scanner: Break the scanner up into multiple modules
2021-09-11 09:52:40 -07:00
David Wendt
7a71cce028
scanner: Break each movie out into a separate process.
...
Since forking isn't an option in Rust (and is generally unsafe, incompatible with threads, and more or less not UNIX's best design idea) we instead grab the current binary path and run it again with a different subcommand.
This should allow us to grab all the panics, including uncatchable ones.
Note: this also requires that we introduce an IPC mechanism. I currently decided to have it spit out CSV rows, same as the main `scan` command. This also makes the psuedo-fork subcommand arguably useful on it's own as it will dump timing metrics for each step.
2021-09-11 09:52:40 -07:00
David Wendt
263c1133c8
scanner: Add a `scan` subcommand
2021-09-11 09:52:40 -07:00
David Wendt
75f1b40925
scanner: Deduplicate repeated log messages
2021-09-11 09:52:40 -07:00