This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The most significant changes involve the refactoring of the `RecordFX…
…` class and the modification of the `ExporterController` class. In `RecordFX`, the `savePool` has been changed from a `LinkedBlockingQueue` of `Runnable` to an `ArrayBlockingQueue` of `Runnable`. The `Record` method now adds a new `Task` to the `savePool` instead of a `Runnable`. The `Exit` method now also clears the `savePool` and resets the `counter` to 0. The `encodeFX` method has been changed to use an `ArrayBlockingQueue` of `Thread` instead of an `ArrayList`. The `savePNG` method has been split into `toPixmap` and `writePNG` methods. In `ExporterController`, the `RB_Sequence` method now sets `Main.sequence` to `Byte.MAX_VALUE` instead of `Deflater.BEST_COMPRESSION`. List of changes: 1. The version number in both the English and Chinese README files has been updated from 2.0.0 to 2.1.0. 2. In `RecordFX.java`, the import statement for `java.util.ArrayList` has been removed and replaced with `java.util.concurrent.ArrayBlockingQueue` and `java.util.zip.Deflater`. 3. The `RecordFX` class has been significantly refactored. The `savePool` has been changed from a `LinkedBlockingQueue` of `Runnable` to an `ArrayBlockingQueue` of `Runnable`. The `Record` method now adds a new `Task` to the `savePool` instead of a `Runnable`. The `Exit` method now also clears the `savePool` and resets the `counter` to 0. 4. The `encodeFX` method in `RecordFX` has been changed to use an `ArrayBlockingQueue` of `Thread` instead of an `ArrayList`. The method now polls from the `savePool` and `threads` instead of iterating over them. 5. The `savePNG` method in `RecordFX` has been split into `toPixmap` and `writePNG` methods. The `toPixmap` method creates a `Pixmap` from a `PixelReader`, and the `writePNG` method writes the `Pixmap` to a file and disposes of it. A new `Task` class has been added that implements `Runnable` and uses the `toPixmap` and `writePNG` methods. 6. In `ExporterController.java`, the import statement for `java.util.zip.Deflater` has been removed. The `RB_Sequence` method now sets `Main.sequence` to `Byte.MAX_VALUE` instead of `Deflater.BEST_COMPRESSION`.
- Loading branch information
Showing
5 changed files
with
68 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ A tool to load and export Spine animations | |
**Java 21** required | ||
Pixel Buffers support required | ||
Exporting MOV requires FFmpeg | ||
Current version: 2.0.0 | ||
Current version: 2.1.0 | ||
|
||
 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
需要 **Java 21 21 21** | ||
需要 像素缓冲区支持 | ||
导出 MOV 需要 FFmpeg | ||
当前版本:2.0.0 | ||
当前版本:2.1.0 | ||
|
||
 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters