Skip to content

Commit

Permalink
Windows: update static libs to gifski 1.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 4, 2024
1 parent 9f887f9 commit 2d8074b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
matrix:
config:
- {os: windows-latest, r: '4.1'}
- {os: windows-latest, r: '4.1', FORCE_STATIC_GIFSKI: 'static'}
- {os: windows-latest, r: '4.2', FORCE_STATIC_GIFSKI: 'static'}
- {os: windows-latest, r: '4.3', FORCE_STATIC_GIFSKI: 'static'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'release', FORCE_STATIC_GIFSKI: 'static'}
- {os: macOS-13, r: 'release'}
Expand Down
6 changes: 6 additions & 0 deletions src/myrustlib/gifski.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ GifskiError gifski_set_extra_effort(gifski *handle, bool extra);
*
* The first frame should have PTS=0. If the first frame has PTS > 0, it'll be used as a delay after the last frame.
*
* This function may block and wait until the frame is processed. Make sure to call `gifski_set_write_callback` or `gifski_set_file_output` first to avoid a deadlock.
*
* Returns 0 (`GIFSKI_OK`) on success, and non-0 `GIFSKI_*` constant on error.
*/
GifskiError gifski_add_frame_png_file(gifski *handle,
Expand All @@ -177,6 +179,8 @@ GifskiError gifski_add_frame_png_file(gifski *handle,
*
* `frame_number` orders frames (consecutive numbers starting from 0).
* You can add frames in any order, and they will be sorted by their `frame_number`.
* However, out-of-order frames are buffered in RAM, and will cause high memory usage
* if there are gaps in the frame numbers.
*
* Presentation timestamp (PTS) is time in seconds, since start of the file, when this frame is to be displayed.
* For a 20fps video it could be `frame_number/20.0`. First frame must have PTS=0.
Expand All @@ -186,6 +190,8 @@ GifskiError gifski_add_frame_png_file(gifski *handle,
*
* Colors are in sRGB, uncorrelated RGBA, with alpha byte last.
*
* This function may block and wait until the frame is processed. Make sure to call `gifski_set_write_callback` or `gifski_set_file_output` first to avoid a deadlock.
*
* Returns 0 (`GIFSKI_OK`) on success, and non-0 `GIFSKI_*` constant on error.
*/
GifskiError gifski_add_frame_rgba(gifski *handle,
Expand Down
6 changes: 3 additions & 3 deletions tools/winlibs.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
if(!file.exists("../windows/libgifski/lib")){
unlink("../windows", recursive = TRUE)
url <- if(grepl("aarch", R.version$platform)){
"https://github.com/r-windows/bundles/releases/download/gifski-1.12.2/gifski-1.12.2-clang-aarch64.tar.xz"
"https://github.com/r-windows/bundles/releases/download/gifski-1.32.0/gifski-1.32.0-clang-aarch64.tar.xz"
} else if(grepl("clang", Sys.getenv('R_COMPILED_BY'))){
"https://github.com/r-windows/bundles/releases/download/gifski-1.12.2/gifski-1.12.2-clang-x86_64.tar.xz"
"https://github.com/r-windows/bundles/releases/download/gifski-1.32.0/gifski-1.32.0-clang-x86_64.tar.xz"
} else if(getRversion() >= "4.2") {
"https://github.com/r-windows/bundles/releases/download/gifski-1.12.2/gifski-1.12.2-ucrt-x86_64.tar.xz"
"https://github.com/r-windows/bundles/releases/download/gifski-1.32.0/gifski-1.32.0-ucrt-x86_64.tar.xz"
} else {
"https://github.com/r-windows/bundles/releases/download/gifski-1.12.2/gifski-1.12.0-msvcrt.tar.xz"
}
Expand Down

0 comments on commit 2d8074b

Please sign in to comment.