Skip to content

Commit

Permalink
Fix build on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-asriyan committed May 26, 2024
1 parent 2b9a4bf commit 81dafab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ include(FetchContent)

FetchContent_Declare(
rlottie
GIT_REPOSITORY https://github.com/Samsung/rlottie.git
GIT_TAG "d40008707addacb636ff435236d31c694ce2b6cf"
GIT_REPOSITORY https://github.com/gilzoide/rlottie.git
GIT_TAG "24a99042591293a23ee26ead0f2130bc88f08139"
)
FetchContent_MakeAvailable(rlottie)

Expand Down
29 changes: 0 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,35 +108,6 @@ Results will be saved next to each source file in the same directory.
```commandline
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release
```
<details>
<summary>M1 troubleshooting</summary>
Run the following command and try again:

echo '#if defined(__ARM_NEON__)

#include "vdrawhelper.h"

void memfill32(uint32_t *dest, uint32_t value, int length)
{
memset(dest, value, length);
}

static void color_SourceOver(uint32_t *dest, int length, uint32_t color, uint32_t alpha)
{
int ialpha, i;

if (alpha != 255) color = BYTE_MUL(color, alpha);
ialpha = 255 - vAlpha(color);
for (i = 0; i < length; ++i) dest[i] = color + BYTE_MUL(dest[i], ialpha);
}

void RenderFuncTable::neon()
{
updateColor(BlendMode::Src , color_SourceOver);
}
#endif
' > _deps/rlottie-src/src/vector/vdrawhelper_neon.cpp
</details>
4. Convert!
- To convert to GIF:
```commandline
Expand Down

0 comments on commit 81dafab

Please sign in to comment.