Mike Welsh
9cd6849772
core: Append EOI marker to JPEG data when missing
...
Fixes #4209 .
2023-01-16 03:03:28 +01:00
Mike Welsh
cceb18910b
core: Fix handling of invalid EOI+SOI marker in JPEG data ( fix #8775 )
...
Previously we were removing the first occurrence of the invalid
0xFFD9FFD8 byte sequence in JPEG data, but this would break the
JPEG if it happened to contain this byte sequence elsewhere (for
example, EXIF data). Instead, properly parse the JPEG markers
searching for the invalid marker sequence.
Fixes #8775 .
2023-01-16 03:03:28 +01:00
David Wendt
8592b6f3b5
chore: Remove dependabot config since we use renovate now
2023-01-16 02:39:51 +01:00
Nathan Adams
3279a920b4
wgpu: Use a temporary wgpu fork that increases push constants limit on webgl & speeds up start time
2023-01-15 18:19:11 +01:00
Aaron Hill
31fc94f0ee
video: Remove unnecessary clone of `frame.rgba`
2023-01-14 15:24:04 -05:00
nosamu
952aa2d5f9
avm2: Correct name of rollover event
2023-01-14 20:04:33 +01:00
Nathan Adams
1b42ad0ab4
wgpu: Keep globals cache across the buffer pool
2023-01-14 19:35:16 +01:00
Aaron Hill
3a6c8d9796
core: Use BitmapData instead of separate `initial_data` field
...
Now that a `Bitmap` always stores a `BitmapData`, we can read the pixels
directly from the `BitmapData`, instead of duplicating them in an
`initial_data` field
2023-01-14 01:28:22 -05:00
Aaron Hill
b5796f9016
core: Derive Default for FramePhase
2023-01-13 20:37:52 +01:00
Nathan Adams
2e7201334d
wgpu: Detect if buffers are unusable on web and fail to create wgpu renderer if so
2023-01-12 18:37:28 +01:00
Nathan Adams
8db8e4669a
wgpu: Implement Multiply blend mode as a trivial blend
2023-01-12 10:54:03 -05:00
Nathan Adams
09608c2abc
wgpu: Implement Screen blend mode as a trivial blend
2023-01-12 10:54:03 -05:00
dependabot[bot]
b7986406a8
build(deps): bump regex from 1.7.0 to 1.7.1
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.7.0...1.7.1 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 14:27:19 +02:00
Calvin304
6c71f5b2a6
avm2: Naive DefineButtonSound impl for Avm2Button
2023-01-11 17:45:39 -05:00
Nathan Adams
9cd850d30e
render: Make render_offscreen return a sync handle which can be used to get the texture at a later time
2023-01-11 16:53:33 -05:00
Aaron Hill
0c430e0bfc
Run 'sudo apt-get update' before installing deps
2023-01-11 16:40:19 -05:00
Nathan Adams
133044b06b
avm2: Fix start_drag with negative width or height
2023-01-11 00:09:01 +01:00
Nathan Adams
047bfc5700
desktop: Don't allow -p for --player_version as it conflicts with --power
2023-01-10 22:24:48 +01:00
MrCheeze
d1b01c9db7
tests: Update AVM2 currentLabels test for case insensitivity
2023-01-10 11:28:56 -05:00
MrCheeze
0597ae56e6
core: Make AVM2 frame labels case sensitive
2023-01-10 11:28:56 -05:00
renovate[bot]
630558a936
fix(deps): update rust dependencies
2023-01-10 16:37:40 +01:00
Nathan Adams
42cbd72e3a
chore(deps): Update base64 from 0.20.0 to 0.21.0
2023-01-10 16:06:10 +01:00
Nathan Adams
3c2cc25e25
deps: Ignore tracing-tracy for now, it needs to match whatever wgpu uses
2023-01-10 15:50:53 +01:00
Moulins
3b1c981d25
Clears the AVM1 stack after executing bytecode
...
AVM1 bytecode may leave the operand stack unbalanced, and this will
cause a slow memory leak if the stack is never cleared.
2023-01-10 14:14:17 +01:00
CUB3D
c6bd431864
avm1: Deduplicate threshold operations
2023-01-10 13:59:06 +01:00
CUB3D
ea6ea8074a
tests: Add tests for BitmapData.threshold, fix issues found as a result
2023-01-10 13:59:06 +01:00
CUB3D
70f071b347
avm1: Implement Bitmapdata.threshold
2023-01-10 13:59:06 +01:00
nosamu
21c65252f5
web: Warn about root movie fetch over file protocol
2023-01-10 13:34:06 +01:00
CUB3D
7254d3c110
chore: Fmt
2023-01-10 13:13:30 +01:00
CUB3D
11982c6d7d
web: Allow specifying player version
2023-01-10 13:13:30 +01:00
CUB3D
8db909a7d4
desktop: Allow specifying player version
2023-01-10 13:13:30 +01:00
MrCheeze
c2ad376e2c
tests: Add test for AVM2 hitTestPoint (without shapeFlag) and hitTestObject.
...
This is a port of a similar regression test written for AVM1.
AVM1 also has a test for hitTestPoint with shapeFlag=true, but it can't
be ported for now, because the implementation of AVM2 hit testing is not
yet accurate enough for it.
2023-01-10 12:53:20 +01:00
MrCheeze
bf6342bd4b
avm2: Fix hitTestPoint not transforming coordinates to world space
...
This behaviour is essentially copied from avm1 movie_clip.rs's hit_test.
Seems to fix several flashes that had broken collision until now.
2023-01-10 12:53:20 +01:00
Nathan Adams
f5a587ce61
render: Better error message when points is empty
2023-01-10 11:10:46 +01:00
Nathan Adams
e7dd3cc0f8
render: Add better expect messages for as_bitmap_data impls
2023-01-10 11:10:46 +01:00
Nathan Adams
3ead9aede9
webgl: Disallow unwrap() and unwrap_err() in webgl crate
2023-01-10 11:10:46 +01:00
Nathan Adams
0f5765d5cc
webgl: Removed all unwraps and replaced with actual errors or expects
2023-01-10 11:10:46 +01:00
Nathan Adams
052ac06d85
canvas: Disallow unwrap() and unwrap_err() in canvas crate
2023-01-10 11:10:46 +01:00
Nathan Adams
312c23c4eb
canvas: Removed unwraps and replaced with either warns, ignores or expects
2023-01-10 11:10:46 +01:00
Nathan Adams
5ae569983b
render: Disallow unwrap() and unwrap_err() in render crate
2023-01-10 11:10:46 +01:00
Nathan Adams
85f0c9dde9
render: Replaced unwrap with expect in shape_utils
2023-01-10 11:10:46 +01:00
Nathan Adams
8f684d6943
render: Removed unwrap/panic when working with empty shapes
2023-01-10 11:10:46 +01:00
Nathan Adams
7addbbf686
video: Disallow unwrap() and unwrap_err() in video crate
2023-01-10 11:10:46 +01:00
Nathan Adams
1f7a5f44f9
desktop: Disallow unwrap() and unwrap_err() in desktop crate
2023-01-10 11:10:46 +01:00
Nathan Adams
073da83568
web: Disallow unwrap() and unwrap_err() in web crate
2023-01-10 11:10:46 +01:00
Nathan Adams
9d3adfd170
web: Removed unwraps in navigator backend
2023-01-10 11:10:46 +01:00
Nathan Adams
9e16a9f75c
web: Removed unwraps in audio backend
2023-01-10 11:10:46 +01:00
Nathan Adams
72a7b2a34d
web: Removed unwraps in safari extension
2023-01-10 11:10:46 +01:00
Nathan Adams
817f51c18e
desktop: Removed unwraps in build.rs
2023-01-10 11:10:46 +01:00
Nathan Adams
fbe1630a4b
desktop: Removed unwraps in ui backend
2023-01-10 11:10:46 +01:00